]> git.ipfire.org Git - thirdparty/coreutils.git/commit
uniq: promptly diagnose write errors
authorPádraig Brady <P@draigBrady.com>
Sat, 15 Jul 2023 20:10:38 +0000 (21:10 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 17 Jul 2023 10:28:36 +0000 (11:28 +0100)
commitca7711456f8cedbf40bec00ced04e7d6d9fc85be
tree835c2cfab8a43238f2d9b0c591db3936a826d077
parenta03c00023a700386453b91142116279bb79fb59d
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.
NEWS
src/uniq.c
tests/misc/write-errors.sh