mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 16:30:23 +01:00
ifcfg-rh: handle BOOTPROTO errors better
This commit is contained in:
parent
a2c1256215
commit
dbe2816c4c
1 changed files with 5 additions and 0 deletions
|
|
@ -668,6 +668,11 @@ make_ip4_setting (shvarFile *ifcfg,
|
|||
NM_SETTING_IP4_CONFIG_NEVER_DEFAULT, never_default,
|
||||
NULL);
|
||||
return NM_SETTING (s_ip4);
|
||||
} else if (strlen (value)) {
|
||||
g_set_error (error, ifcfg_plugin_error_quark (), 0,
|
||||
"Unknown BOOTPROTO '%s'", value);
|
||||
g_free (value);
|
||||
goto error;
|
||||
}
|
||||
g_free (value);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue