[Bug 433780] New: NetworkManager quotes arguments twice, netconfig does not reject them
https://bugzilla.novell.com/show_bug.cgi?id=433780 User mt@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=433780#c429772 Summary: NetworkManager quotes arguments twice, netconfig does not reject them Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mt@novell.com QAContact: qa@suse.de CC: tambet@novell.com, milisav.radmanic@novell.com, mc@novell.com, mt@novell.com Depends on: 429772 Found By: Development +++ This bug was initially created as a clone of Bug #429772 +++ See attachment https://bugzilla.novell.com/attachment.cgi?id=244121 Here a find & cat on the data from the attachment showing the problem: $ find var/ var/ var/run var/run/netconfig var/run/netconfig/air var/run/netconfig/ppp0 var/run/netconfig/ppp0/netconfig0 var/run/netconfig/NetworkManager.netconfig var/run/netconfig/'air' var/run/netconfig/'cable' var/run/netconfig/'cable'/netconfig0 var/run/netconfig/'cable'/netconfig1 ^^^^^^^ $ cat var/run/netconfig/\'cable\'/netconfig0 SERVICE='dhclient' INTERFACE='cable' ^^^^^^^ NISDOMAIN='' NISSERVERS='' CREATETIME='1223398933' $ cat var/run/netconfig/\'cable\'/netconfig1 SERVICE='NetworkManager' INTERFACE='cable' CREATETIME='1223419459' NetworkManager & "NM-dhclient" seem to quote arguments twice netconfig modify -i "'cable'" There is no /sys/class/net/'cable' interface directory, so the config provided this way will be never used. That netconfig does not reject this, is also a bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=433780
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=433780
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=433780
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433780#c1
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=433780
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433780#c2
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=433780
JP Rosevear
https://bugzilla.novell.com/show_bug.cgi?id=433780
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433780#c3
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=433780
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433780#c4
--- Comment #4 from Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=433780
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433780#c5
--- Comment #5 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=433780
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=433780
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433780#c6
Marius Tomaschewski
Hmm, in that case, I don't see any bugs in NM at all, NM does always use a single quote (') around each value. This is a sample from NM log:
Spawning '/sbin/netconfig modify --service NetworkManager' Writing to netconfig: INTERFACE='eth0' Writing to netconfig: DNSSEARCH='lan' Writing to netconfig: DNSSERVERS='192.168.0.3'
There's no shell involved, so these are the exact values netconfig gets. NM never uses "-i" command line argument, the interface is always passed over stdin.
Ah... I've found the bug. You're right - it didn't came via -i but via stdin: if [ "x$val1" = "xINTERFACE" ]; then _INTERFACE="$val2" fi The $val2 contained "'ethX'" at this time.... means it's my bug :-) Anyway, the above patch should fix both possibilities in netconfig. Going to submit all fixes to STABLE in few minutes... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=433780
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433780#c7
--- Comment #7 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=433780
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433780#c8
--- Comment #8 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=433780
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433780#c9
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=433780
User mc@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433780#c10
Michael Calmer
participants (1)
-
bugzilla_noreply@novell.com