diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2013-03-14 11:58:06 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2013-03-14 12:03:47 +0100 |
commit | df1a1bf69ed7a3fb25342fa370e6f718e9bc3459 (patch) | |
tree | 7e7fa3e883216881767acf81c3be00092d624214 /src | |
parent | f36c7301f03975aee71a2e861b144cbaf1ca6684 (diff) | |
download | NetworkManager-df1a1bf69ed7a3fb25342fa370e6f718e9bc3459.tar.gz |
keyfile: fix reading unmanaged-devices for interface name
[keyfile]
unmanaged-devices=interface-name:eth0
Diffstat (limited to 'src')
-rw-r--r-- | src/settings/plugins/example/plugin.c | 2 | ||||
-rw-r--r-- | src/settings/plugins/keyfile/plugin.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/settings/plugins/example/plugin.c b/src/settings/plugins/example/plugin.c index 9f99a4f449..f7700297a5 100644 --- a/src/settings/plugins/example/plugin.c +++ b/src/settings/plugins/example/plugin.c @@ -569,7 +569,7 @@ get_unmanaged_specs (NMSystemConfigInterface *config) } specs = g_slist_append (specs, ids[i]); - } else if (!strncmp (ids[i], "interface-name:", 10) && nm_utils_iface_valid_name (ids[i] + 10)) { + } else if (!strncmp (ids[i], "interface-name:", 15) && nm_utils_iface_valid_name (ids[i] + 15)) { specs = g_slist_append (specs, ids[i]); } else { g_warning ("Error in file '%s': invalid unmanaged-devices entry: '%s'", priv->conf_file, ids[i]); diff --git a/src/settings/plugins/keyfile/plugin.c b/src/settings/plugins/keyfile/plugin.c index 21ff114ff5..be3a48d032 100644 --- a/src/settings/plugins/keyfile/plugin.c +++ b/src/settings/plugins/keyfile/plugin.c @@ -466,7 +466,7 @@ get_unmanaged_specs (NMSystemConfigInterface *config) p++; } specs = g_slist_append (specs, udis[i]); - } else if (!strncmp (udis[i], "interface-name:", 10) && nm_utils_iface_valid_name (udis[i] + 10)) { + } else if (!strncmp (udis[i], "interface-name:", 15) && nm_utils_iface_valid_name (udis[i] + 15)) { specs = g_slist_append (specs, udis[i]); } else { g_warning ("Error in file '%s': invalid unmanaged-devices entry: '%s'", priv->conf_file, udis[i]); |