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-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-06-03 09:03:19 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-11 07:29:53 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2005-05-14 07:58:31 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-06-08 20:13:37 +00:00
2006-05-06 15:52:56 +00:00
2006-05-13 08:41:02 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-28 12:11:35 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
1997-12-06 21:08:41 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-06-01 07:10:34 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2006-05-06 15:52:56 +00:00
2002-08-04 11:04:38 +00:00
1999-05-12 15:54:52 +00:00
2006-01-13 13:38:39 +00:00
2005-11-02 20:35:52 +00:00
2004-03-24 17:40:29 +00:00
2004-06-23 15:07:00 +00:00
2005-04-18 23:33:10 +00:00
2006-06-01 07:09:51 +00:00
2004-06-23 15:07:00 +00:00
2000-10-31 19:33:30 +00:00
2006-03-26 11:52:47 +00:00
2004-05-31 12:16:47 +00:00
2006-05-06 15:52:56 +00:00
2005-01-13 22:16:29 +00:00
2004-06-23 15:07:00 +00:00
2002-07-01 21:15:13 +00:00
2005-01-30 14:29:03 +00:00
2003-07-11 20:40:28 +00:00
2005-01-30 14:30:10 +00:00
2005-06-22 18:07:36 +00:00
2005-11-04 09:52:09 +00:00