diff options
-rw-r--r-- | libc/misc/utmp/utent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/utmp/utent.c b/libc/misc/utmp/utent.c index 8d816c548..4635d67ba 100644 --- a/libc/misc/utmp/utent.c +++ b/libc/misc/utmp/utent.c @@ -32,7 +32,7 @@ void setutent(void) { if (ut_fd != -1) close(ut_fd); - if ((ut_fd = open(ut_name, O_RDONLY)) < 0) { + if ((ut_fd = open(ut_name, O_RDWR)) < 0) { ut_fd = -1; } } |