]> git.ipfire.org Git - thirdparty/coreutils.git/commit
od: promptly diagnose write errors
authorPádraig Brady <P@draigBrady.com>
Tue, 11 Jul 2023 11:46:50 +0000 (12:46 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 17 Jul 2023 10:28:36 +0000 (11:28 +0100)
commita03c00023a700386453b91142116279bb79fb59d
tree3a2c43959a0f69bb14cf8adf70dfac1e122fdd84
parent0b2ff7637f1eabba48e461f9f6e3aec956bed7d1
od: promptly diagnose write errors

* src/od.c (dump): Check for write errors after each block written,
to exit early even with large / unbounded inputs.
* tests/misc/write-errors.sh: enable od check.
* NEWS: Mention the improvement.
Fixes https://bugs.gnu.org/64540
NEWS
src/od.c
tests/misc/write-errors.sh