]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum: promptly diagnose write errors
authorCollin Funk <collin.funk1@gmail.com>
Sat, 10 Jan 2026 05:17:26 +0000 (21:17 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 10 Jan 2026 20:42:13 +0000 (12:42 -0800)
commit3621ad2f71efeeefa5801707e49e319b84c4672c
treefa77f03c1df7dfe53fa4cf08973bf589281a4565
parenta9aad49f26116a48b0d42427c7562401c5b4bd14
cksum: promptly diagnose write errors

* src/cksum.c (output_file, digest_check): Check if standard output has
it's error flag set after printing.
* tests/misc/write-errors.sh: Add a test case that would previously run
forever.
* NEWS: Mention the improvement. Reorder alphabetically.
NEWS
src/cksum.c
tests/misc/write-errors.sh