summaryrefslogtreecommitdiff
path: root/src/settings
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 /src/settings
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 'src/settings')
-rw-r--r--src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c
index 03d2cb6330..7779319b7f 100644
--- a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c
+++ b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c
@@ -1449,7 +1449,7 @@ make_match_setting (shvarFile *ifcfg)
if (!s_match)
s_match = (NMSettingMatch *) nm_setting_match_new ();
nm_setting_match_add_interface_name (s_match,
- _nm_utils_unescape_spaces ((char *) strv[i]));
+ _nm_utils_unescape_spaces ((char *) strv[i], TRUE));
}
}