Files
coreutils/src
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-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-04-22 19:12:44 -07:00
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
…
2026-01-21 13:51:58 +00:00
2026-04-02 18:54:35 -07:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-02-28 19:13:42 -08:00
2026-02-17 18:45:33 -08:00
…
2026-02-19 21:40:44 -08:00
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-02-27 16:18:32 -08:00
2026-01-01 10:56:16 -08:00
2026-01-18 15:55:38 +00:00
2026-02-19 20:36:47 -08:00
2025-05-12 01:28:48 -07:00
2026-03-09 13:14:54 +00:00
2026-02-19 20:36:40 -08:00
2026-03-25 17:46:37 +00:00
2026-02-06 13:37:58 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-02-19 20:53:20 -08:00
2026-03-06 20:39:38 -08:00
2025-07-09 17:12:40 -07:00
2026-04-16 22:05:13 +01:00
2026-04-09 21:36:43 +01:00
2026-02-27 16:50:36 -08:00
2026-01-01 10:56:16 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-04-30 14:51:23 +01:00
2026-04-08 22:34:13 -07:00
2026-02-19 20:35:19 -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
2026-02-19 21:11:27 -08:00