NetworkManager/clients/cli
Thomas Haller b789ce01e9 cli: fix handling modifier in nmc_read_connection_properties() for aliases
Various cleanups:

  - after detecting the modifier, remove it from the string right away.
    It's redundant and confusing to do it later.

  - rename variables and move to inner scope.

  - don't use g_str_split() to split the property name at the
    first dot. strchr() is sufficient.

Also, now that we strip the modifier from option early, they start also
working for aliases. There is no need to not support (or behave
differently) w.r.t. whether aliases support modifiers or not.

This fixes:

  $ nmcli connection modify r +ip4 192.168.5.2/24
  Error: invalid <setting>.<property> 'ip4'.
2019-08-16 08:16:02 +02:00
..
agent.c clients/secret-agent: allow suppressing prompting the entry-id when requesting secrets 2019-02-14 08:00:29 +01:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: tab complete only full D-Bus paths if there is no prefix 2019-04-15 20:50:50 +02:00
common.h cli: add nmc_complete_strv() which takes a string array for completion that may contain NULL 2019-03-07 22:22:39 +01:00
connections.c cli: fix handling modifier in nmc_read_connection_properties() for aliases 2019-08-16 08:16:02 +02:00
connections.h cli/connections: export nmc_active_connection_cmp() 2018-11-21 11:46:21 +01:00
devices.c cli: use cleanup macro for freeing AddAndActivateInfo 2019-08-05 10:11:01 +02:00
devices.h cli: rework printing of "wired" and "wifi" device details 2018-07-09 15:43:55 +02:00
general.c shared: build helper "libnm-libnm-core-{intern|aux}.la" library for libnm-core 2019-04-18 18:59:09 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
meson.build build/meson: rename "nm_core_dep" to "libnm_core_dep" 2019-04-18 18:59:09 +02:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: drop GValue transform functions for strdict and implement it in _get_fcn_gobject_impl() 2019-04-25 08:20:03 +02:00
nmcli.h cli: drop NMC_RETURN 2019-07-30 18:38:59 +02:00
polkit-agent.c all: drop unnecessary includes of <errno.h> and <string.h> 2019-02-12 08:50:28 +01:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c cli: add NMMetaAccessorModifier enum instead of using "char" type 2019-08-16 08:16:02 +02:00
settings.h cli: add NMMetaAccessorModifier enum instead of using "char" type 2019-08-16 08:16:02 +02:00
utils.c cli: drop unnecessary NULL sentinel from nmc_complete_strings() 2019-04-15 20:50:50 +02:00
utils.h clients: Wi-Fi Mesh support 2019-07-29 11:00:24 +02:00