Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 176673

Summary: preferred_aps fails to handle ESSIDs containing spaces
Product: Gentoo Linux Reporter: Jack Kelly <endgame.dos>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: marty.rosenberg
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Increase the quoting around the call to iwconfig

Description Jack Kelly 2007-05-01 12:10:16 UTC
Setting preferred_aps_eth1=( "ESSID with spaces" ) causes the call to iwconfig "${iface}" essid "${ESSID}" to fail because there isn't sufficient quoting

Reproducible: Always

Steps to Reproduce:
1. Install wireless-tools.
2. In /etc/conf.d/net, set preferred_aps_eth1=( "Some ESSID with spaces" )
3. eselect rc restart net.eth1

(Replace eth1 with wireless interface as appropriate)

Actual Results:  
(with preferred_aps_eth1=( "University of Leeds Wireless" ) )

 * Starting eth1
 *   Configuring wireless network for eth1
eth1      no wireless extensions.

iwconfig: unknown command "of"
 *   eth1 does not support setting ESSID to "University of Leeds Wireless"


Expected Results:  
 * Starting eth1
 *   Configuring wireless network for eth1
 *     eth1 connected to ESSID "University of Leeds Wireless" at 00:11:92:AD:8B:B1
 *     in managed mode on channel 3 (WEP disabled)
 *   Bringing up eth1
 *     dhcp
 *       Running dhcpcd ...                                               [ ok ]
 *       eth1 received address 129.11.63.64/22
Comment 1 Jack Kelly 2007-05-01 12:15:00 UTC
Created attachment 117838 [details, diff]
Increase the quoting around the call to iwconfig

I only looked in iwconfig_associate because setting the ESSID manually with essid_eth0="Some ESSID with spaces" in /etc/conf.d/net works,
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-05-04 15:42:40 UTC
Fixed in baselayout-2.0.0_alpha2
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-05-11 07:06:17 UTC
*** Bug 178001 has been marked as a duplicate of this bug. ***
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-05-11 09:38:45 UTC
Also fixed in 1.12.10-r4