]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Wed, 19 Sep 2001 10:34:47 +0000 (10:34 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 19 Sep 2001 10:34:47 +0000 (10:34 +0000)
old/textutils/ChangeLog

index 16efd122ec3fde9599c6303f0b3ac4a5c0feb59a..9b274c5f185826edfcf610bf3c982c5e6e8fd67d 100644 (file)
@@ -1,7 +1,29 @@
-2001-09-16  Jim Meyering  <meyering@lucent.com>
+2001-09-19  Jim Meyering  <meyering@lucent.com>
 
        * Version 2.0.15.
 
+       * src/od.c (open_next_file): Use SETVBUF, not setbuf.
+       (skip): Revert part of last change: use lseek, not fseek.
+
+       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, or 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.
+
+2001-09-16  Jim Meyering  <meyering@lucent.com>
+
        * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5.
 
        * man/Makefile.am: Revamp this file, as for fileutils.