From 28491941b0596ecc6f074f4976ce7093abf13328 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 25 Feb 2017 17:47:36 +0100 Subject: [PATCH] auth/asaudit: quote user and dom attributes in factotum key --- sys/src/cmd/auth/asaudit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/auth/asaudit.c b/sys/src/cmd/auth/asaudit.c index 3e52854e2..2ee12f649 100644 --- a/sys/src/cmd/auth/asaudit.c +++ b/sys/src/cmd/auth/asaudit.c @@ -167,7 +167,7 @@ trykey(int keyfs) rpc = auth_allocrpc(fd); if(rpc == nil){ print("auth_allocrpc: %r\n"); return -1; } - s = smprint("proto=dp9ik dom=%s user=%s role=server", nvr.authdom, nvr.authid); + s = smprint("proto=dp9ik dom=%q user=%q role=server", nvr.authdom, nvr.authid); if(auth_rpc(rpc, "start", s, strlen(s)) != ARok){ print("auth_rpc start: %r\n"); goto err; } free(s);