Bug 742273 - NetworkManager creates ifcfg scripts with spaces in them
Summary: NetworkManager creates ifcfg scripts with spaces in them
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 742276
TreeView+ depends on / blocked
 
Reported: 2011-09-29 14:54 UTC by Paolo Bonzini
Modified: 2011-12-06 01:00 UTC (History)
2 users (show)

Fixed In Version: NetworkManager-0.9.2-1.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 01:00:33 UTC
Type: ---


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 660484 0 None None None Never

Description Paolo Bonzini 2011-09-29 14:54:04 UTC
Description of problem:
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);

Version-Release number of selected component (if applicable):
0.9.1.90

Comment 1 Jirka Klimes 2011-10-03 08:40:59 UTC
Thanks.
Fixed upstream as dce6a071a84b1907b8ae4aea0bd5322b8176d607 (master).

Comment 2 Fedora Update System 2011-12-02 13:06:53 UTC
NetworkManager-0.9.2-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/NetworkManager-0.9.2-1.fc16

Comment 3 Fedora Update System 2011-12-04 02:22:58 UTC
Package NetworkManager-0.9.2-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing NetworkManager-0.9.2-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16664/NetworkManager-0.9.2-1.fc16
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-12-06 01:00:33 UTC
NetworkManager-0.9.2-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.