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