Skip to contentSkip to conversation

cksum regression in coreutils-9.2

DISCUSSION Sam James 1 participant 1 message Mar 23, 2023

lore
Share & tools
lore

Sam James

author
#0 lore raw

Hi folks,

coreutils-9.2 introduced a regression to the cksum utility where it may incorrectly say a file is "OK" even when it's not.

Note that its *exit status* is accurate, but it prints the wrong message in 9.2.

Patch: https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=76f2fb627118a26c25003dbd98c22c153b7ee1d2
Patch mirror (savannah is slow/down for me right now): https://github.com/coreutils/coreutils/commit/76f2fb627118a26c25003dbd98c22c153b7ee1d2

See also:
- https://old.reddit.com/r/archlinux/comments/11zdecf/sha256sum_c_prints_ok_for_a_failed_checksum_when/
- https://bugs.archlinux.org/task/77969

best,
sam