]> git.ipfire.org Git - thirdparty/coreutils.git/commit
date: promptly diagnose write errors with --file
authorPádraig Brady <P@draigBrady.com>
Mon, 3 Nov 2025 12:44:07 +0000 (12:44 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 3 Nov 2025 12:51:04 +0000 (12:51 +0000)
commit7d17e1d36c4f0df71e9ff8d0a20a07f9c35bbb61
tree04be64dd60e9bb203bc928b5648e0bc50fe3156d
parent170509d41ff3d586c13d0236b16d2ad639d276da
date: promptly diagnose write errors with --file

* src/date.c (batch_convert): Check error state of stdout
after each date is processed.
* tests/misc/write-errors.sh: Add a test case.
src/date.c
tests/misc/write-errors.sh