From da54271e9598c9739d9a735498c3daa8437e983e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 30 Mar 2005 07:40:17 +0000 Subject: [PATCH] * readutmp.c (read_utmp) [!defined UTMP_NAME_FUNCTION]: Don't assume utmp file is a regular file. --- lib/ChangeLog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.47.3