diff options
author | Jim Meyering <jim@meyering.net> | 2001-09-19 10:19:19 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-09-19 10:19:19 +0000 |
commit | 18b2abbf6c741f61f4a22c31e21462a27263b4cb (patch) | |
tree | ff3c21037f816205e6571c8d1c9a1571d85bfc51 /tests | |
parent | 7a33a0275595505d9fa8a89ec13c508a8729cae8 (diff) | |
download | coreutils-18b2abbf6c741f61f4a22c31e21462a27263b4cb.tar.xz |
When --read-bytes=N (-N N) is used, disable input buffering in
the standard I/O library. Otherwise, od would read more input
than requested. This could have caused problems when reading
from pipes, character devices, and open file descriptors inherited
from a parent process.
* src/od.c (open_next_file): New function, factored out of...
(skip): Adapt to use open_next_file.
(read_char): Likewise.
(read_block): Likewise.
(main): Likewise.
(dump): Fix an off-by-one error that could have made od fail to
report a read error when reading from a named file (not stdin).
(check_and_close): Account for the fact that in_stream may now be NULL.
(usage): Correct descriptions of -j and -N options.
Patch by Ian Bruce.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions