Bug 142814 - [patch] add beginning and end offset options to md5(1)
Summary: [patch] add beginning and end offset options to md5(1)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 7.2-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-01-14 04:50 UTC by Mikhail T.
Modified: 2022-10-17 12:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail T. 2010-01-14 04:50:03 UTC
	When copying a huge file over a slow link, I wanted to check,
	if the already downloaded part is correct by computing the
	digests on both sides. Doing so from command line is rather
	hard right now, and requires the use of split(1) on both ends,
	which is not always feasible due to file-sizes.

	If md5(1) already had the begin and end options, I could've
	simply used them to process only part of the initial portions
	of the file on each machine.

Fix: 

The patch -- against HEAD -- can be found at

		http://aldan.algebra.com/~mi/tmp/md5-offsets.patch

	It also corrects the utility to fail with an exit-code specified
	by sysexits(3), rather than with an arbitrary 1. Also, asking for
	help (with the -h option) causes it to print the usage message
	and then exit with 0.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:06 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
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:39:20 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>