]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Fix non-null-terminated-string bugs in who and uptime.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Jul 2004 08:03:40 +0000 (08:03 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Jul 2004 08:03:40 +0000 (08:03 +0000)
ChangeLog

index 26eeea6c898c362bd3f409d0797970b7e4131d8d..4adcfae39e655a036633e866b76f0e8a31c53d2e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-07-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * 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  <eggert@cs.ucla.edu>
 
        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  <eggert@cs.ucla.edu>