diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-03 11:11:27 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-03 11:11:27 +0000 |
commit | 810ad656d66dacbb2c84c9fe80d22f60d96dbc4d (patch) | |
tree | 037729c745dc447bc624222d6df0b57602be67e1 | |
parent | 1a3a5605bf95b74665eb8c28cc834e2e6bb9db89 (diff) |
Richard June <rjune@bravegnuworld.com> noticed that setutent
was only opening utmp readonly. Oops.
-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; } } |