diff options
-rw-r--r-- | sys/src/cmd/ip/tftpd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/src/cmd/ip/tftpd.c b/sys/src/cmd/ip/tftpd.c index ab6d91f70..aa69b3423 100644 --- a/sys/src/cmd/ip/tftpd.c +++ b/sys/src/cmd/ip/tftpd.c @@ -738,12 +738,8 @@ nak(int fd, int code, char *msg) void setuser(void) { - int fd; - - fd = open("#c/user", OWRITE); - if(fd < 0 || write(fd, "none", strlen("none")) < 0) + if(procsetuser("none") < 0) sysfatal("can't become none: %r"); - close(fd); if(newns("none", nil) < 0) sysfatal("can't build namespace: %r"); } |