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 <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lnussel@novell.com Status|NEEDINFO |ASSIGNED Info Provider|mt@novell.com | --- Comment #3 from Marius Tomaschewski <mt@novell.com> 2008-10-13 01:48:11 MDT --- When you provide input via stdin to netconfig modify, use explicit single quotes (the quote character ' is not allowed inside of the value an can't be quoted) even when there are no spaces in the value. The netconfig modify arguments without additional quotes around the value, for example: SERVICE='NetworkManager' INTERFACE='eth0' DNSSERVERS='192.168.0.1 192.168.0.2' { echo "INTERFACE='$INTERFACE' echo "DNSSERVERS='$DNSSERVERS'" } | /sbin/netconfig modify -s "$SERVICE" -i "$INTERFACE" or /sbin/netconfig modify -s "$SERVICE" -i "$INTERFACE" <<-EOF INTERFACE='$INTERFACE' DNSSERVERS='$DNSSERVERS' EOF This means, the argruments have to contain the bare string values: ... argv[] = { "/sbin/netconfig", "-s", "NetworkManager", "-i", "eth0", NULL}; The expected input format is dhcpcd complatible key='value string'; see also the "dhcpcd -T eth0" output, e.g.: INTERFACE='eth0' DNSSERVERS='192.168.0.1 192.168.0.2' I'm adding some code to netconfig rejecting invalid args & input. The keys have to be compatible with shell identifiers + a single quoted value: /^[[:space:]]*[a-z_][a-z0-9_]*='[^']*'[[:space:]]*$/ && !/^[[:space:]]*_+=/ We don't allow unquoted values to go away a misinterpretation as a bash reserved word, ... and keep it simple. -- 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.