Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92469 - /etc/conf.d/wireless does not escape characters when '\' is placed in front of the character in a variable name.
Summary: /etc/conf.d/wireless does not escape characters when '\' is placed in front o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-12 20:48 UTC by Luke Hoersten
Modified: 2005-05-25 03:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Hoersten 2005-05-12 20:48:09 UTC
In /etc/conf.d/wireless, I have 'key_ESS\-ID="XXXX-XXXX..."' for my wep key but the dash in the essid cannot be escaped and results in a bad syntax error.

Reproducible: Always
Steps to Reproduce:

Actual Results:  
A syntax error occures.

Expected Results:  
The wep key of my wireless device should be set.
Comment 1 SpanKY gentoo-dev 2005-05-12 21:19:35 UTC
i dont understand ... your ESSID is 'key_ESS\-ID' ?

the syntax is this:
key_ESSID2="aaaa-bbbb-cccc-dd"

not
key_ESS\-ID=...
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-05-12 23:05:55 UTC
key_ESS_ID="XXXX-XXXX..."

You don't escape variable names - change any character that's not in the a-z A-Z (english only) 0-9 range with a _

So the ESSID
Funky -ss'"'ss-

Would become

key_Funky__ss___ss_="XXXX-XXXX-XXXX"
preferred_aps=( "Funky -ss\'\"\'ss-" )
Comment 3 SpanKY gentoo-dev 2005-05-12 23:24:52 UTC
roy: care to update wireless.example with the example you've just shown ? :)

i read it and it wasnt obvious to me after a quick read ...
Comment 4 Luke Hoersten 2005-05-13 18:58:06 UTC
wireless.example should explicitly say:

"You don't escape variable names - change any character that's not in the alphanumaric with a '_'"
Comment 5 Luke Hoersten 2005-05-14 13:40:39 UTC
wireless.example just needs and example to stress that all non-alphanumaric characters in variable names should be replaced with underscores.
Comment 6 SpanKY gentoo-dev 2005-05-14 13:48:54 UTC
so lets close the bug *after* we update the example ;)
Comment 7 Roy Marples (RETIRED) gentoo-dev 2005-05-25 03:06:11 UTC
fixed in baselayout-1.11.12-r2