1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

uniq: promptly diagnose write errors

* src/uniq.c (write_line): Check the output from fwrite() immediately.
(check_file): Likewise.
* tests/misc/write-errors.sh: Enable the test case.
* NEWS: Mention the improvement.
This commit is contained in:
Pádraig Brady
2023-07-15 21:10:38 +01:00
parent a03c00023a
commit ca7711456f
3 changed files with 8 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ tail -n+1 -z /dev/zero
tee < /dev/zero
tr . . < /dev/zero
unexpand /dev/zero
# TODO: uniq -z -D /dev/zero
uniq -z -D /dev/zero
yes
" |
sort -k 1b,1 > all_writers || framework_failure_