]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum: fix --check with --algorithm=sha2
authorPádraig Brady <P@draigBrady.com>
Mon, 6 Oct 2025 12:23:55 +0000 (13:23 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 7 Oct 2025 14:58:34 +0000 (15:58 +0100)
commitcd2a8edd84a6b6a17ba1b788a6b3930c5a4d590e
treebfbaa9d7bc9de34a1fdab9d1ee966d4e1eea4f75
parent311c04c0596a61761790b1c0a5fa99ec59796e14
cksum: fix --check with --algorithm=sha2

* src/digest.c (split_3): Look up the provided tag with -a sha2
because there is not a 1:1 mapping between them.
* tests/cksum/cksum-c.sh: Add a test case.
* NEWS: Mention the bug fix.
NEWS
src/digest.c
tests/cksum/cksum-c.sh