From mi@aldan.algebra.com  Thu Jan 14 04:40:48 2010
Return-Path: <mi@aldan.algebra.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B79E81065679
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Jan 2010 04:40:48 +0000 (UTC)
	(envelope-from mi@aldan.algebra.com)
Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224])
	by mx1.freebsd.org (Postfix) with ESMTP id 078D78FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Jan 2010 04:40:47 +0000 (UTC)
Received: from aldan.algebra.com (localhost [127.0.0.1])
	by aldan.algebra.com (8.14.3/8.14.3) with ESMTP id o0E4ej93002489
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Jan 2010 23:40:46 -0500 (EST)
	(envelope-from mi@aldan.algebra.com)
Received: (from mi@localhost)
	by aldan.algebra.com (8.14.3/8.14.3/Submit) id o0E4ej5x002488;
	Wed, 13 Jan 2010 23:40:45 -0500 (EST)
	(envelope-from mi)
Message-Id: <201001140440.o0E4ej5x002488@aldan.algebra.com>
Date: Wed, 13 Jan 2010 23:40:45 -0500 (EST)
From: "Mikhail T." <mi@aldan.algebra.com>
Reply-To: "Mikhail T." <mi@aldan.algebra.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: add beginning and end offset options to md5(1)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         142814
>Category:       bin
>Synopsis:       [patch] add beginning and end offset options to md5(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 14 04:50:03 UTC 2010
>Closed-Date:    
>Last-Modified:  Thu Jan 14 04:52:41 UTC 2010
>Originator:     Mikhail T.
>Release:        FreeBSD 7.2-STABLE amd64
>Organization:
Virtual Estates, Inc. http://sybpipe.com/
>Environment:

>Description:

	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.

>How-To-Repeat:

>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.
>Release-Note:
>Audit-Trail:
>Unformatted:
