1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-10-24 02:08:57 +03:00
Files
coreutils/tests
Collin Funk 2de1a28bcf sum,cksum: consistently emit detailed write errors
Previously the string from strerror would only be printed for some
algorithms:

    $ cksum -a sha2 -l 256 /dev/null > /dev/full
    cksum: write error: No space left on device
    $ cksum -a sysv /dev/null > /dev/full
    cksum: write error

This patch fixes it so that the error information is always printed:

    $ ./src/cksum -a sha2 -l 256 /dev/null > /dev/full
    cksum: write error: No space left on device
    $ ./src/cksum -a sysv /dev/null > /dev/full
    cksum: write error: No space left on device

* src/cksum.c (output_file): Don't check for a write error here.
(main): Check for it here instead.
* tests/misc/io-errors.sh: Add a 'cksum' invocation for each supported
algorithm.
https://github.com/coreutils/coreutils/issues/258
2026-04-30 17:59:38 -07:00
..
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-04-16 18:35:26 +01:00
2026-04-17 13:24:46 +01:00
2026-01-01 10:56:16 -08:00
2026-02-18 18:31:49 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-02-18 18:31:49 +00:00
2026-01-16 13:22:28 -08:00
2026-01-01 10:56:16 -08:00
2026-03-22 13:32:52 -07:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-04-29 13:16:43 +01:00
2026-04-28 11:25:41 -07:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00