Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176673 - preferred_aps fails to handle ESSIDs containing spaces
Summary: preferred_aps fails to handle ESSIDs containing spaces
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 178001 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-01 12:10 UTC by Jack Kelly
Modified: 2007-05-11 09:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Increase the quoting around the call to iwconfig (iwconfig.sh_more_quotes.patch,470 bytes, patch)
2007-05-01 12:15 UTC, Jack Kelly
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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