From: Jim Meyering Date: Mon, 3 May 1999 02:38:50 +0000 (+0000) Subject: (read_utmp): Ignore the return value from utmpname. X-Git-Tag: SH-UTILS-1_16h~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f40ac7422749e474c0ce7489848d7f6d5afa260;p=thirdparty%2Fcoreutils.git (read_utmp): Ignore the return value from utmpname. --- diff --git a/lib/readutmp.c b/lib/readutmp.c index f2fd7f9336..9fb4442c30 100644 --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -66,8 +66,11 @@ read_utmp (const char *filename, int *n_entries, STRUCT_UTMP **utmp_buf) STRUCT_UTMP *u; STRUCT_UTMP *utmp = NULL; - if (utmpname (filename)) - return 1; + /* Ignore the return value for now. + Solaris' utmpname returns 1 upon success -- which is contrary + to what the GNU libc version does. In addition, older GNU libc + versions are actually void. */ + utmpname (filename); setutent ();