소스 검색

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

David McCullough 23 년 전
부모
커밋
101799b51c
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  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;
 	}
 }