Explorar o código

Don't print an error if the utmp file doesn't exist, getutent will return
NULL as expected.

David McCullough %!s(int64=23) %!d(string=hai) anos
pai
achega
101799b51c
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      libc/misc/utmp/utent.c

+ 0 - 1
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;
 	}
 }