* src/cksum.c (digest_check): Reset the detection flag per file. * tests/cksum/cksum-c.sh: Add a test case. * tests/cksum/md5sum-bsd.sh: Likwise. * NEWS: Mention the fix.