diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-19 18:02:37 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-19 18:02:37 +0100 |
commit | eb1dfed9abb054e4708fcb13ac6d8d537914ac77 (patch) | |
tree | 268c17a0a6758485989c4ffe71a092563936259a /sys/src/cmd/srv.c | |
parent | fc5070c60057b6e02490e83f5d675786e8b8d83c (diff) |
libauth: change programs to use the new procsetuser() function
Diffstat (limited to 'sys/src/cmd/srv.c')
-rw-r--r-- | sys/src/cmd/srv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/src/cmd/srv.c b/sys/src/cmd/srv.c index 0839c8393..fa7a6ad07 100644 --- a/sys/src/cmd/srv.c +++ b/sys/src/cmd/srv.c @@ -202,12 +202,11 @@ Mount: exits(0); if(asnone){ - try = open("#c/user", OWRITE); - if(try < 0 || write(try, "none", 4) != 4){ + if(procsetuser("none") < 0){ fprint(2, "srv %s: can't become none: %r\n", dest); exits("becomenone"); } - try = 0; + try = 0; /* no retry */ } if((!doauth && mount(fd, -1, mtpt, mountflag, "") == -1) |