Files
coreutils/src
Jim Meyering 790892db65 Ensure that cat works with any of the options, -A -v -e -E -T,
when applied to files in /proc and /sys, even when the FIONREAD
ioctl produces nonsensical results.  Before this change, cat would
produce no output (or truncated output), for some linux kernels.

* src/cat.c (write_pending): New function, factored out of cat.
(cat): Also interpret a negative ioctl/FIONREAD count as indicating
that there are bytes to read.  Some versions of linux-2.6.16 do that.
Write any pending output before returning.
Reported by Dan Jacobson in <http://bugs.debian.org/370583>.
* NEWS: Mention this bug fix.
* tests/misc/cat-proc: New file.  Test for the above.
* tests/misc/Makefile.am (TESTS): Add cat-proc.
2006-06-08 20:13:37 +00:00
..
2006-02-27 11:03:31 +00:00
2006-05-07 17:20:49 +00:00
2006-05-20 17:27:07 +00:00
2006-01-17 17:26:15 +00:00
2005-05-14 07:58:31 +00:00
2005-05-14 07:58:31 +00:00
2005-06-02 05:17:24 +00:00
2005-06-02 05:17:24 +00:00
2005-06-02 05:17:24 +00:00
2003-03-08 10:14:33 +00:00
2005-05-14 07:58:31 +00:00
2005-05-14 07:58:31 +00:00
2005-07-18 07:52:37 +00:00
2005-05-14 07:58:31 +00:00
.
2005-09-21 16:43:17 +00:00
2005-05-14 07:58:31 +00:00
2006-02-21 02:55:31 +00:00
2005-05-14 07:58:31 +00:00
2003-07-06 06:08:40 +00:00
2005-05-14 07:58:31 +00:00
…
…
…
…
.
2006-05-06 15:52:56 +00:00
2006-01-02 06:37:36 +00:00
2006-01-02 06:38:33 +00:00
2006-01-02 06:39:06 +00:00
2005-05-14 07:58:31 +00:00
2005-05-14 07:58:31 +00:00
2005-07-03 08:46:05 +00:00
2006-02-20 12:48:11 +00:00
2006-05-25 16:47:43 +00:00
2005-07-11 18:25:23 +00:00
2005-05-14 07:58:31 +00:00
2006-04-12 20:15:08 +00:00
2006-04-11 00:52:01 +00:00
2005-07-18 07:53:05 +00:00
2005-05-14 07:58:31 +00:00
2005-06-02 05:17:24 +00:00
2005-05-14 07:58:31 +00:00
2005-08-13 22:47:48 +00:00
2005-05-14 07:58:31 +00:00
2005-05-14 07:58:31 +00:00