]> git.ipfire.org Git - thirdparty/coreutils.git/commit
fold: exit promptly upon write errors
authorPádraig Brady <P@draigBrady.com>
Tue, 16 Sep 2025 12:07:35 +0000 (13:07 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 16 Sep 2025 13:10:31 +0000 (14:10 +0100)
commit10459ca7ed15456a6dbfebc7d718c8d713fbfe70
tree0fc4e1a167fa20b6ae6906030916d1d3db017b03
parenta6e9807eb9d93458e3bda2360b72a0a1fdec81a7
fold: exit promptly upon write errors

* NEWS: Mention the improvement.
* src/fold.c (fold_file): Check for write errors
after each buffer read from stdin.
* tests/misc/write-errors.sh: Add test cases.
NEWS
src/fold.c
tests/misc/write-errors.sh