summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mount.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-12-19 18:02:37 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-12-19 18:02:37 +0100
commiteb1dfed9abb054e4708fcb13ac6d8d537914ac77 (patch)
tree268c17a0a6758485989c4ffe71a092563936259a /sys/src/cmd/mount.c
parentfc5070c60057b6e02490e83f5d675786e8b8d83c (diff)
libauth: change programs to use the new procsetuser() function
Diffstat (limited to 'sys/src/cmd/mount.c')
-rw-r--r--sys/src/cmd/mount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/mount.c b/sys/src/cmd/mount.c
index 2c8371911..3d30269aa 100644
--- a/sys/src/cmd/mount.c
+++ b/sys/src/cmd/mount.c
@@ -83,8 +83,7 @@ main(int argc, char *argv[])
}
if(asnone){
- rv = open("#c/user", OWRITE);
- if(rv < 0 || write(rv, "none", 4) != 4){
+ if(procsetuser("none") < 0){
if(qflag)
exits(0);
fprint(2, "%s: can't become none: %r\n", argv0);