split: fix reporting of read errors
commit758916b49e69836fcbd1e861e19edfced44e28ea
authorPádraig Brady <P@draigBrady.com>
Thu, 7 Oct 2010 12:12:36 +0000 (7 13:12 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 7 Oct 2010 19:08:16 +0000 (7 20:08 +0100)
treef1f3f1b4117e9efb4ea1f27bb1e9a0b5e4453579
parent6483f0e1bd4ae5b5b300512c96cc3028d643a58c
split: fix reporting of read errors

The bug was introduced with commit 23f6d41f, 19-02-2003.

* src/split.c (bytes_split, lines_split, line_bytes_split):
Correctly check the return from full_read().
* tests/misc/split-fail: Ensure split fails when
it can't read its input.
* NEWS: Mention the fix.
NEWS
src/split.c
tests/misc/split-fail