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 <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|tambet@novell.com |mt@novell.com Summary|NetworkManager quotes arguments twice, netconfig|Netconfig quotes INTERFACE argument twice and |does not reject them |does not reject crap --- Comment #6 from Marius Tomaschewski <mt@novell.com> 2008-10-13 08:24:35 MDT --- (In reply to comment #4 from Tambet Ingo)
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.