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:
Jiří Klimeš
2012-04-03 14:57:31 +02:00
parent 8bb2789444
commit fe3f010044

View File

@@ -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",