ref: e614cdf02fc49cc11a3adca160d9a8cfe9b8acf8
parent: f948c402d865bdd07a5d24b9340ff3290fc1da5a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Dec 2 23:54:34 EST 2017
auth/login: add missing quotefmtinstall(), quote dom attribute
--- a/sys/src/cmd/auth/login.c
+++ b/sys/src/cmd/auth/login.c
@@ -111,8 +111,8 @@
fd = open("/mnt/factotum/ctl", ORDWR);
if(fd < 0)
sysfatal("opening factotum: %r");
- fprint(fd, "key proto=dp9ik dom=%s user=%q !password=%q\n", getauthdom(), user, password);
- fprint(fd, "key proto=p9sk1 dom=%s user=%q !password=%q\n", getauthdom(), user, password);
+ fprint(fd, "key proto=dp9ik dom=%q user=%q !password=%q\n", getauthdom(), user, password);
+ fprint(fd, "key proto=p9sk1 dom=%q user=%q !password=%q\n", getauthdom(), user, password);
close(fd);
}
@@ -131,6 +131,8 @@
char srvname[2*ANAMELEN];
char *user, *pass, *sysname, *tz, *cputype, *service;
AuthInfo *ai;
+
+ quotefmtinstall();
ARGBEGIN{
case 'a':