mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 04:10:14 +01:00
ifcfg-rh: clear MACADDR before writing it in wired setting (bgo #672646)
Else it's not possible to delete Cloned MAC (e.g. in the editor).
This commit is contained in:
parent
8bb2789444
commit
fe3f010044
1 changed files with 1 additions and 0 deletions
|
|
@ -1030,6 +1030,7 @@ write_wired_setting (NMConnection *connection, shvarFile *ifcfg, GError **error)
|
|||
g_free (tmp);
|
||||
}
|
||||
|
||||
svSetValue (ifcfg, "MACADDR", NULL, FALSE);
|
||||
cloned_mac = nm_setting_wired_get_cloned_mac_address (s_wired);
|
||||
if (cloned_mac) {
|
||||
tmp = g_strdup_printf ("%02X:%02X:%02X:%02X:%02X:%02X",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue