Bug 170278 - [patch] [request] Add --check option to md5(1)
Summary: [patch] [request] Add --check option to md5(1)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2012-07-30 14:40 UTC by Chris Pepper
Modified: 2017-12-31 22:29 UTC (History)
0 users

See Also:

patch.txt (4.98 KB, text/plain; charset=US-ASCII)
2012-08-30 21:55 UTC, apyhalov
no flags Details
patch.txt (6.50 KB, text/plain; charset=US-ASCII)
2012-09-01 14:37 UTC, apyhalov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Pepper 2012-07-30 14:40:08 UTC
FreeBSD 'md5' should include the --check option. We use this frequently to verify the integrity of archives (we actually use a custom-built port of GNU 'md5sum').

Please add --check functionality for checking files against 'md5' (or 'md5sum') output.



Add --check capability, equivalent to GNU md5sum.
How-To-Repeat: luxisi-1# md5 --check xsq.md5
md5: illegal option -- -
usage: md5 [-pqrtx] [-s string] [files ...]
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2012-09-01 15:13:42 UTC
Responsible Changed
From-To: freebsd-bugs->eadler

I implemented this
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2012-09-01 19:27:38 UTC
State Changed
From-To: open->feedback

what about ''     -c string 
Compare files to this md5 string.'' ?
Comment 3 apyhalov 2012-09-02 17:47:16 UTC
"-c" option compares file with given checksum, suggested oatch allows
processing standard files with checksums similar to md5sum. It is rather
different functionality.
However, I'm not a bug reporter, let him present his opinion.
Best regards,
Alexander Pyhalov
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2012-09-15 21:28:19 UTC
State Changed
From-To: feedback->open

I agree, --check / -C is different than -c; I should have implemented 
this version originally. I will take a look and attempt to commit.
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2012-10-21 00:03:39 UTC
State Changed
From-To: open->feedback

please see the follow up mail I sent
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:16 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped