changeset 1823:93ecfb08bb9c

(read_utmp): Ignore the return value from utmpname.
author Jim Meyering <jim@meyering.net>
date Mon, 03 May 1999 02:38:50 +0000
parents b0ce344d4fda
children 65a18731c9ed
files lib/readutmp.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/readutmp.c
+++ b/lib/readutmp.c
@@ -66,8 +66,11 @@
   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 ();