ref: 6b6921dfff28f33a7918cadc5edd37aee3afcbf3
parent: 5fb672f3c0985622d493fc3195e2547533986511
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Feb 25 12:47:36 EST 2017
auth/asaudit: quote user and dom attributes in factotum key
--- a/sys/src/cmd/auth/asaudit.c
+++ b/sys/src/cmd/auth/asaudit.c
@@ -167,7 +167,7 @@
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);
--
⑨