GNOME Bugzilla – Bug 660484
NetworkManager creates ifcfg scripts with spaces in them
Last modified: 2011-10-03 11:49:10 UTC
When the same SSID is used by two networks, one protected and one unprotected, ifcfg scripts created by NetworkManager are called "ifcfg-Auto_NAME" and "ifcfg-Auto_NAME 1". Init scripts do not like this. This is done on purpose in src/settings/plugins/ifcfg-rh/writer.c: if (g_file_test (ifcfg_name, G_FILE_TEST_EXISTS)) { guint32 idx = 0; g_free (ifcfg_name); while (idx++ < 500) { ifcfg_name = g_strdup_printf ("%s/ifcfg-%s %u", ifcfg_dir, escaped, idx); if (g_file_test (ifcfg_name, G_FILE_TEST_EXISTS) == FALSE) break; g_free (ifcfg_name); ifcfg_name = NULL; } } g_free (escaped);
Fixed by commit dce6a071a84b1907b8ae4aea0bd5322b8176d607.