After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 660484 - NetworkManager creates ifcfg scripts with spaces in them
NetworkManager creates ifcfg scripts with spaces in them
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
git master
Other Linux
: Normal major
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2011-09-29 14:55 UTC by Paolo Bonzini
Modified: 2011-10-03 11:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paolo Bonzini 2011-09-29 14:55:01 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);
Comment 1 Paolo Bonzini 2011-10-03 11:49:10 UTC
Fixed by commit dce6a071a84b1907b8ae4aea0bd5322b8176d607.