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-04-15 15:08:27 +01:00
2026-04-07 12:20:10 +01:00
2026-01-01 10:56:16 -08:00
2026-04-16 21:16:08 -07:00
2026-02-20 21:37:42 -08:00
2026-04-10 11:09:10 +01:00
2026-01-01 10:56:16 -08:00
2026-03-04 22:17:39 +00:00
2026-04-22 19:12:44 -07:00
2026-04-16 18:35:26 +01:00
2026-02-18 18:31:49 +00:00
2026-04-15 15:08:27 +01:00
2026-04-17 13:24:46 +01:00
2026-04-23 13:58:46 +01:00
2026-04-15 12:56:16 +01:00
2026-02-28 18:36:34 -08:00
2026-03-27 21:15:18 +00:00
2026-04-15 15:08:27 +01:00
2026-04-06 18:22:56 +01:00
2026-02-25 14:52:57 +00:00
2026-02-18 18:31:49 +00:00
2026-04-15 15:08:27 +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-03-04 18:42:48 -08:00
2026-01-01 10:56:16 -08:00
2026-04-06 17:29:24 +01:00
2026-04-06 16:29:15 +01:00
2026-04-30 17:59:38 -07:00
2026-02-18 18:31:49 +00:00
2026-04-16 20:05:36 -07:00
2026-02-18 18:31:49 +00:00
2026-02-25 15:00:46 +00:00
2026-03-20 19:46:04 -07:00
2026-01-28 11:25:36 -08:00
2026-04-16 21:41:40 +01:00
2026-04-06 17:16:05 +01:00
2026-01-16 13:22:28 -08:00
2026-04-15 15:08:27 +01:00
2026-01-01 10:56:16 -08:00
2026-02-07 22:02:43 +00:00
2026-03-22 13:32:52 -07:00
2026-01-24 12:47:51 +00:00
2026-04-10 11:09:10 +01: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-03-02 11:59:25 +00:00
2026-04-29 13:16:21 +01:00
2026-04-06 17:53:45 +01:00
2026-04-16 21:28:44 +01:00
2026-01-24 12:49:52 +00:00
2026-03-04 17:57:54 +00:00
2026-04-24 14:20:42 +01:00
2026-04-10 11:09:10 +01:00
2026-01-21 13:51:39 +00:00
2026-03-13 20:37:10 -07:00
2026-04-10 11:09:10 +01:00
2026-03-23 12:11:35 +00:00
2026-03-24 19:02:21 -07:00
2026-04-09 21:25:27 +01:00
2026-04-29 13:16:43 +01:00
2026-04-28 11:25:41 -07:00
2026-02-28 18:36:34 -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
2015-11-06 16:40:42 +00:00
2026-01-01 10:56:16 -08:00
2011-04-13 11:18:48 +01:00
2012-09-14 10:20:03 +02:00
2006-08-16 20:11:42 +00:00
2026-04-29 13:16:21 +01:00
2015-11-10 13:03:33 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 20:50:59 -08:00
2021-05-12 22:14:11 +01:00