wpa: fix quoting for essid with spaces
This commit is contained in:
parent
73eea8402b
commit
2310258d57
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue