mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 02:30:08 +01:00
keyfile: fix reading unmanaged-devices for interface name
[keyfile] unmanaged-devices=interface-name:eth0
This commit is contained in:
parent
f36c7301f0
commit
df1a1bf69e
2 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue