]> git.ipfire.org Git - thirdparty/coreutils.git/commit
comm: promptly diagnose write errors
authorPádraig Brady <P@draigBrady.com>
Sat, 15 Jul 2023 20:43:07 +0000 (21:43 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 17 Jul 2023 10:28:36 +0000 (11:28 +0100)
commitb1df1d557eb8e3c40778a01af9cd972c80a19d95
tree71e47344e0bc92e3500037a8e3b99b470179a98c
parente0a4a60af52e40e5ee5c7d5f1764150301d3dea9
comm: promptly diagnose write errors

* src/comm.c (writeline): Simplify by removing the unneeded STREAM
parameter.  Call write_error() upon ferror().
(compare_files): Adjust to simplified writeline().
* tests/misc/write-errors.sh: Enable comm test.
* NEWS: Mention the improvement.
NEWS
src/comm.c
tests/misc/write-errors.sh