1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

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
This commit is contained in:
Pádraig Brady
2023-07-11 12:46:50 +01:00
parent 0b2ff7637f
commit a03c00023a
3 changed files with 10 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ head -z -n-1 /dev/zero
# TODO: join -a 1 -z /dev/zero /dev/null
# TODO: nl --version; yes | nl
# TODO: numfmt --version; yes 1 | numfmt
# TODO: od -v /dev/zero
od -v /dev/zero
paste /dev/zero
# TODO: pr /dev/zero
seq inf