]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum: fix --check with non tagged format checksums
authorPádraig Brady <P@draigBrady.com>
Thu, 16 Sep 2021 10:40:51 +0000 (11:40 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 16 Sep 2021 11:20:24 +0000 (12:20 +0100)
commit73f8fd760d4c5e63e6290c65092063e855e68626
tree6ea2117773bea6a5dde5454a7a4c086888223c24
parent121f74dfc2e060a2ae174a636cd773f4d461a852
cksum: fix --check with non tagged format checksums

* src/digest.c: Always set the digest_length, so that
we check the correct number of hex digits when parsing
non tagged format checksums.
* tests/misc/cksum-a.sh: Add a test case.  Also fix
up this test which was ineffective due to fail=1
being set in a subshell and ignored.
src/digest.c
tests/misc/cksum-a.sh