Bug 145224 - Quote Mark Support in WPA Keys
Summary: Quote Mark Support in WPA Keys
Status: RESOLVED DUPLICATE of bug 118157
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Network (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Joachim Gleissner
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-24 16:19 UTC by Michael Pomraning
Modified: 2006-02-22 14:44 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Pomraning 2006-01-24 16:19:55 UTC
Quote marks in WPA PSKs aren't properly handled by ifup-wireless -- the 'SUFFIX' probing around line 515 chokes on the quotes (other uses of eval+echo are similarly brittle).  Command-line reproduction:
 
   $ SUFFIX=''
   $ WIRELESS_WPA_PSK="\"Why, Linux,\" I'd replied."
   $ L="`eval \$WIRELESS_WPA_PSK$SUFFIX`"
   bash: eval: line 1: unexpected EOF while looking for matching `''
   bash: eval: line 2: syntax error: unexpected end of file

A less legible command substitution/eval+printf can handle this, however:

   $ SUFFIX=''
   $ WIRELESS_WPA_PSK="\"Why, Linux,\" I'd replied."
   $ L=$(eval printf '%s' \"\$WIRELESS_WPA_PSK$SUFFIX\")
   $ echo $L
   "Why, Linux," I'd replied.

(Now, whether or not YaST can convey the quotes properly and whether wpa_supplicant files are correctly written is a different matter...)

Thanks,
Mike
Comment 1 Joachim Gleissner 2006-02-22 14:44:43 UTC
Should be fixed by the sysconfig update.

*** This bug has been marked as a duplicate of 118157 ***