projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1cfafb
)
(read_utmp): Ignore the return value from utmpname.
author
Jim Meyering
<jim@meyering.net>
Mon, 3 May 1999 02:38:50 +0000
(
02:38
+0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 3 May 1999 02:38:50 +0000
(
02:38
+0000)
lib/readutmp.c
patch
|
blob
|
history
diff --git
a/lib/readutmp.c
b/lib/readutmp.c
index f2fd7f9336f16fd045d819a1a1e0df492a07837a..9fb4442c3018d2f363934cdd68a943b2dbd94eb5 100644
(file)
--- 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 ();