[arch-projects] [netcfg] [PATCH 1/2] [scripts/wifi-menu]: Quote a text passphrase
Thomas Bächler
thomas at archlinux.org
Tue Aug 7 16:11:48 EDT 2012
Text passphrases may contain spaces and should be quoted in the netcfg profile
---
scripts/wifi-menu | 2 +-
1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)
diff --git a/scripts/wifi-menu b/scripts/wifi-menu
index 10353f8..4b1db24 100755
--- a/scripts/wifi-menu
+++ b/scripts/wifi-menu
@@ -117,7 +117,7 @@ create_profile()
key=$(wpa_passphrase "$1" "$key" | grep -m 1 "^[[:space:]]*psk=")
key="KEY=${key#*psk=}"
else
- key="KEY=$(printf "%q" "$key")"
+ key="KEY='$(printf "%q" "$key")'"
fi
fi
cat << EOF > "$PROFILE_DIR/$PROFILE"
--
1.7.11.4
More information about the arch-projects
mailing list