From 2310258d576c0ee688025ef8bd854640621a833e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 17 Nov 2014 00:12:55 +0100 Subject: [PATCH] wpa: fix quoting for essid with spaces --- sys/src/cmd/aux/wpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/aux/wpa.c b/sys/src/cmd/aux/wpa.c index e795c050b..42dfc31d4 100644 --- a/sys/src/cmd/aux/wpa.c +++ b/sys/src/cmd/aux/wpa.c @@ -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();