From: Paul Eggert Date: Wed, 22 Jun 2005 18:26:22 +0000 (+0000) Subject: (desirable_utmp_entry): Fix bug where "who -b" and "who -r" X-Git-Tag: CPPI-1_12~528 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=956daabfc622916858b9e11e6b724c5fc5c07d62;p=thirdparty%2Fcoreutils.git (desirable_utmp_entry): Fix bug where "who -b" and "who -r" failed to give output. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index d81d87552d..a5a50436fe 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-06-22 Paul Eggert + + * readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and + "who -r" failed to give output. Problem reported by Tim Waugh. + 2005-06-22 Jim Meyering * xmalloc.c: Update from gnulib. diff --git a/lib/readutmp.c b/lib/readutmp.c index ca4472c650..846ab3c6a2 100644 --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -68,6 +68,7 @@ static inline bool desirable_utmp_entry (STRUCT_UTMP const *u, int options) { return ! (options & READ_UTMP_CHECK_PIDS + && IS_USER_PROCESS (u) && (UT_PID (u) <= 0 || (kill (UT_PID (u), 0) < 0 && errno == ESRCH))); }