summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-03-19 13:52:52 +0100
committerThomas Haller <thaller@redhat.com>2019-03-25 09:12:33 +0100
commite3fa570c1bcfec695db12194c472a6ee9a3cce48 (patch)
treec045d76644b3d43099ac554282143397fe4cc28c /clients
parentb91f21aa237d180b1859db2dbbf14ec06681f4d8 (diff)
downloadNetworkManager-e3fa570c1bcfec695db12194c472a6ee9a3cce48.tar.gz
shared: add "strip" argument to _nm_utils_unescape_spaces()
It's usually not necessary, because _nm_utils_unescape_spaces() gets called after nm_utils_strsplit_set(), which already removes the non-escaped spaces. Still, for completeness, this should be here. Also, because with this the function is useful for individual options (not delimiter separate list values), to support automatically dropping leading or trailing whitespace, but also support escaping them.
Diffstat (limited to 'clients')
-rw-r--r--clients/common/nm-meta-setting-desc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c
index 664d596733..1009908ba4 100644
--- a/clients/common/nm-meta-setting-desc.c
+++ b/clients/common/nm-meta-setting-desc.c
@@ -3229,7 +3229,7 @@ _set_fcn_match_interface_name (ARGS_SET_FCN)
if (strv) {
for (i = 0; strv[i]; i++) {
nm_setting_match_add_interface_name (NM_SETTING_MATCH (setting),
- _nm_utils_unescape_spaces ((char *) strv[i]));
+ _nm_utils_unescape_spaces ((char *) strv[i], TRUE));
}
}
return TRUE;