wpa: fix quoting for essid with spaces

This commit is contained in:
cinap_lenrek 2014-11-17 00:12:55 +01:00
parent 73eea8402b
commit 2310258d57

View file

@ -600,7 +600,7 @@ main(int argc, char *argv[])
sysfatal("dial: %r");
if(essid[0] != 0){
if(fprint(cfd, "essid %s", essid) < 0)
if(fprint(cfd, "essid %q", essid) < 0)
sysfatal("write essid: %r");
} else {
getessid();