FS#8139 - netcfg doesn't work when $ESSID contains spaces

Attached to Project: Arch Linux
Opened by Alex Kritikos (akrito) - Thursday, 27 September 2007, 03:25 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 27 September 2007, 08:19 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Because $IWOPTS is not an array variable,

iwconfig $WIFI_INTERFACE $IWOPTS

where

$IWOPTS="mode managed essid $ESSID key $KEY"

will break $ESSID into multiple arguments if $ESSID contains spaces. Attached is a patch that allows $IWOPTS to be an array, so one can use

$IWOPTS=(mode managed essid "$ESSID" key "$KEY")

in a network profile, and netcfg will work correctly. Existing profiles where $IWOPTS is not an array will continue to work.

Additional info:
[my /etc/network-profiles/worldwireless]
...
ESSID='world wireless'
IWOPTS="mode managed essid $ESSID key $KEY"
...

[output of "netcfg worldwireless"]
...
iwconfig: unknown command "wireless"
...

Steps to reproduce:
1. In wireless network profile foo, set ESSID='spaced name'
2. netcfg foo
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Thursday, 27 September 2007, 08:19 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#2829 

Loading...