Przeglądaj źródła

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

David McCullough 25 lat temu
rodzic
commit
101799b51c
1 zmienionych plików z 0 dodań i 1 usunięć
  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;
 	}
 }