Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#13165 - netcfg creates bad wpa_supplicant config when using full hex key

Attached to Project: Arch Linux
Opened by Michael Kreitzer (mrgrim) - Sunday, 08 February 2009, 21:00 GMT
Last edited by James Rayner (iphitus) - Monday, 16 February 2009, 10:49 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To James Rayner (iphitus)
Architecture All
Severity High
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

netcfg 2.1.2 does not properly create a wpa config file when using a full hex key. The problem code is on line 174 of /usr/lib/network/wireless.subr. The offending code is:

echo -e 'network={ \nssid="$ESSID" \npsk=$KEY \n}'> $WPA_CONF

There are two problems here. First, the use of single quotes prevents the expansion of shell variables so $ESSID and $KEY get written as is. Second, the use of > over >> causes previous control file settings written to the temporary config file to be overwritten causing netcfg to be unable to confirm the association with wpa_check as wpa_supplicant will not create a control file. The proper line should be:

echo -e "network={ \nssid=\"$ESSID\" \npsk=$KEY \n}">> $WPA_CONF
This task depends upon

Closed by  James Rayner (iphitus)
Monday, 16 February 2009, 10:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  git

Loading...