summaryrefslogtreecommitdiff
path: root/src/cat.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-03-11 11:39:33 +0000
committerPádraig Brady <P@draigBrady.com>2009-03-11 14:27:39 +0000
commit1644e589050ddfce4bbd5ebbe10a4e041499e386 (patch)
tree0f3323489556bf303057f25b6ca87a5533873e4a /src/cat.c
parent55efc5f3ee485b3e31a91c331f07c89aeccc4e89 (diff)
downloadcoreutils-1644e589050ddfce4bbd5ebbe10a4e041499e386.tar.xz
cat: Fix immediate output of processed data
Introduced by commit 790892db, 2006-06-08 "Ensure that cat works ...". * NEWS: Mention the bugfix. * src/cat.c (cat): Fix the typo which stopped the writing of processed data before a blocking read() is done. * tests/misc/cat-buf: Add to ensure processed data is not buffered. * tests/Makefile.am: Reference the new test.
Diffstat (limited to 'src/cat.c')
-rw-r--r--src/cat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat.c b/src/cat.c
index 18fa1f150..bdc011017 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -333,7 +333,7 @@ cat (
input_pending = true;
#endif
- if (input_pending)
+ if (!input_pending)
write_pending (outbuf, &bpout);
/* Read more input into INBUF. */