]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum: fix --check with untagged base64 format with tag matches
authorPádraig Brady <P@draigBrady.com>
Mon, 6 Oct 2025 18:41:24 +0000 (19:41 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 7 Oct 2025 14:58:36 +0000 (15:58 +0100)
commit463925761048ec9ccb5742479ef7963f378b7f05
tree09526aa7ee27edbd9ced99c007b10688ad81ef3b
parente661c7a52568710a3cedf8fbb3a683805f1caff2
cksum: fix --check with untagged base64 format with tag matches

* src/digest.c (split_3): Fallback to untagged matching in the
case where -a is specified and we have matched a TAG in
the possibly base64 data.  This might happen in 1 in every 64K files.
Note we remove the modification of string S (and redundant streq) in
the tag matching, as that was not needed since v8.32-223-g217cd278e.
* tests/cksum/cksum-c.sh: Add a test case.
* NEWS: Mention the bug fix.
NEWS
src/digest.c
tests/cksum/cksum-c.sh