]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cut: promptly diagnose write errors
authorPádraig Brady <P@draigBrady.com>
Sat, 15 Jul 2023 20:23:55 +0000 (21:23 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 17 Jul 2023 10:28:36 +0000 (11:28 +0100)
commite0a4a60af52e40e5ee5c7d5f1764150301d3dea9
treea0691d8f972db71e2819c63257c27343e08e4de5
parentca7711456f8cedbf40bec00ced04e7d6d9fc85be
cut: promptly diagnose write errors

* src/cut.c (cut_bytes): Diagnose errors from fwrite() and putchar().
(cut_fields): Likewise.
* tests/misc/write-errors.sh: Enable the test for cut,
and augment to cover both cut_bytes() and cut_fields().
* NEWS: Mention the improvement.
NEWS
src/cut.c
tests/misc/write-errors.sh