From: Paul Eggert Date: Wed, 30 Mar 2005 07:40:17 +0000 (+0000) Subject: * readutmp.c (read_utmp) [!defined UTMP_NAME_FUNCTION]: Don't assume X-Git-Tag: CPPI-1_12~1142 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da54271e9598c9739d9a735498c3daa8437e983e;p=thirdparty%2Fcoreutils.git * readutmp.c (read_utmp) [!defined UTMP_NAME_FUNCTION]: Don't assume utmp file is a regular file. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index c53b4f9dbf..df36eef2cb 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,4 +1,4 @@ -2005-03-29 Paul Eggert +2005-03-30 Paul Eggert * readutmp.h (read_utmp): New arg OPTIONS. All uses changed. * readutmp.c: Likewise. Include signal.h, stdbool.h. @@ -6,7 +6,7 @@ (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation using x2nrealloc, to simplify logic. (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in - size calculation. + size calculation. Do not assume utmp file is a regular file. * readutmp.h (UT_PID): Moved here from ../src/who.c. (READ_UTMP_CHECK_PIDS): New constant.