summaryrefslogtreecommitdiff
path: root/libc/misc/utmp
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-01-17 04:22:57 +0000
committerDavid McCullough <davidm@snapgear.com>2002-01-17 04:22:57 +0000
commit101799b51c7dfe5ebc90ccbb017363b6e8fee522 (patch)
tree331abfc65ece768218b9cbe6c565f68afa0b0d1d /libc/misc/utmp
parent24241fcb809e65e608cd1691b186d5caa5e453a1 (diff)
Don't print an error if the utmp file doesn't exist, getutent will return
NULL as expected.
Diffstat (limited to 'libc/misc/utmp')
-rw-r--r--libc/misc/utmp/utent.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libc/misc/utmp/utent.c b/libc/misc/utmp/utent.c
index 220bd6db6..2746b0b35 100644
--- a/libc/misc/utmp/utent.c
+++ b/libc/misc/utmp/utent.c
@@ -33,7 +33,6 @@ void setutent(void)
if (ut_fd != -1)
close(ut_fd);
if ((ut_fd = open(ut_name, O_RDONLY)) < 0) {
- perror("setutent: Can't open utmp file");
ut_fd = -1;
}
}