HomeFreeBSD

sbin/md5: improve compatibility with coreutils -c option

Description

sbin/md5: improve compatibility with coreutils -c option

The -c option expects a digest file in either BSD or coreutils format.

The output for matched and mismatched files is identical to that
of the coreutils version.

The review of these changes included test cases that have already
been committed for the functionality that existed before.
Another test script is added to cover the coreutils compatible
extension implemented by this patch.

This commit contains a tests/Makefile that has been cleaned up
compared to the review version, using an implicit rule to apply the
TESTBASE path at build time (and the scripts have been renamed to
have an extension of .SH instead of .sh to trigger this rule).

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D30812

Details

Provenance
seAuthored on Jun 25 2021, 6:54 AM
Reviewer
imp
Differential Revision
D30812: Add support for -c option to sha256sum et.al.
Parents
rG884fc5527a3f: sbin/md5: add tests
Branches
Unknown
Tags
Unknown