summaryrefslogtreecommitdiff
path: root/sys/src/cmd/auth/login.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-12-25 18:02:18 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-12-25 18:02:18 +0000
commit02d09919941c8f33f93f9e643a2aebb1fea14a91 (patch)
treec42b4ff8286765ee96fc3a32be6cb01d20cfc986 /sys/src/cmd/auth/login.c
parent5b032deb0cbe7e1b959e37950c160382fa55d7a8 (diff)
auth: use caphash and capuse under /dev instead of #¤
Diffstat (limited to 'sys/src/cmd/auth/login.c')
-rw-r--r--sys/src/cmd/auth/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/auth/login.c b/sys/src/cmd/auth/login.c
index 508def0a0..fb581bc77 100644
--- a/sys/src/cmd/auth/login.c
+++ b/sys/src/cmd/auth/login.c
@@ -30,7 +30,7 @@ chuid(AuthInfo *ai)
int rv, fd;
/* change uid */
- fd = open("#¤/capuse", OWRITE);
+ fd = open("/dev/capuse", OCEXEC|OWRITE);
if(fd < 0)
sysfatal("can't change uid: %r");
rv = write(fd, ai->cap, strlen(ai->cap));