Tim Waugh <[EMAIL PROTECTED]> writes: > I had a bug report that 'who -b' and 'who -r' fail to give output with > this patch. This fixes it:
Thanks for reporting that. IS_USER_PROCESS is already defined in readutmp.h, so I installed this simpler patch in both coreutils and gnulib. 2005-06-22 Paul Eggert <[EMAIL PROTECTED]> * readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and "who -r" failed to give output. Problem reported by Tim Waugh. --- readutmp.c.~1.27.~ 2005-06-01 16:46:04 -0700 +++ readutmp.c 2005-06-22 11:23:45 -0700 @@ -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))); } _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib