HomeFreeBSD

md5: fix *sum -c with missing files

Description

md5: fix *sum -c with missing files

If we fail to open one of the files in the file listing, we still need
to advance rec along with argv so that the checksum we're checking
against lines up with the file we're hashing.

Tests added both for the -c flag, as well as the -b and -t modes of
the *sum programs.

PR: 267722
Reviewed by: emaste (earlier version)

(cherry picked from commit 8d78a0d331ec2c168efe6cb85bbc2da86e9a6124)

Details

Provenance
kevansAuthored on Feb 13 2023, 6:32 AM
Parents
rGdfdc3b2e6541: patch: omit filename if the prompt was ignored
Branches
Unknown
Tags
Unknown