summaryrefslogtreecommitdiff
path: root/libc/misc/utmp/utent.c
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-01-17 04:22:57 (GMT)
committerDavid McCullough <davidm@snapgear.com>2002-01-17 04:22:57 (GMT)
commit101799b51c7dfe5ebc90ccbb017363b6e8fee522 (patch)
tree331abfc65ece768218b9cbe6c565f68afa0b0d1d /libc/misc/utmp/utent.c
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/utent.c')
-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 220bd6d..2746b0b 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;
}
}