From 3949476b4664bb9f4599cdadfdbfccb2aa713374 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 24 Jul 2004 08:03:40 +0000 Subject: [PATCH] Fix non-null-terminated-string bugs in who and uptime. --- ChangeLog | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 26eeea6c89..4adcfae39e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-07-24 Paul Eggert + + * src/uptime.c (print_uptime) [defined BOOT_MSG]: + Don't assume ut_line is null-terminated. + * src/who.c (print_line): New arguments USERLEN and LINELEN, + since USER and LINE might not be null terminated. All callers + changed. + 2004-07-23 Paul Eggert Fix bug with "tail -f" reported by Rob Holland in @@ -10,8 +18,6 @@ * NEWS: Document this, plus yesterday's patch. * doc/coreutils.texi (tail invocation): "size has remained the same" -> "file has not changed", which is more accurate for fifos. - * lib/Makefile.am (libfetish_a_SOURCES): Add fcntl-safer.h, - open-safer.c. * src/tail.c: Include fcntl-safer.h. (COPY_TO_EOF): Set to UINTMAX_MAX, not OFF_T_MAX (which was wrong). (COPY_A_BUFFER): New macro. @@ -39,7 +45,6 @@ files. (tail_forever, main): Redo fflush strategy to work even when input is nonblocking. Don't use unbuffered output; just flush when needed. - * lib/fcntl-safer.h, open-safer.c: New files. 2004-07-22 Paul Eggert -- 2.47.2