From 101799b51c7dfe5ebc90ccbb017363b6e8fee522 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 17 Jan 2002 04:22:57 +0000 Subject: Don't print an error if the utmp file doesn't exist, getutent will return NULL as expected. --- libc/misc/utmp/utent.c | 1 - 1 file changed, 1 deletion(-) 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; } } -- cgit v1.2.3