mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-22 08:03:40 +08:00
Fix non-null-terminated-string bugs in who and uptime.
This commit is contained in:
parent
a6411b5d54
commit
3949476b46
11
ChangeLog
11
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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user