diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-24 08:03:40 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-24 08:03:40 +0000 |
commit | 3949476b4664bb9f4599cdadfdbfccb2aa713374 (patch) | |
tree | c512d637950a711dafa996d179e94d960d09a307 | |
parent | a6411b5d5415e69ec647cd41c03e9cdec9b8034f (diff) | |
download | coreutils-3949476b4664bb9f4599cdadfdbfccb2aa713374.tar.xz |
Fix non-null-terminated-string bugs in who and uptime.
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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> |