emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#7155: closed ([md5sum] does not accept)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#7155: closed ([md5sum] does not accept)
Date: Fri, 16 Sep 2011 13:00:04 +0000

Your message dated Fri, 16 Sep 2011 13:54:17 +0100
with message-id <address@hidden>
and subject line Re: bug#7155: [md5sum] does not accept
has caused the debbugs.gnu.org bug report #7155,
regarding [md5sum] does not accept
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
7155: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7155
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [md5sum] does not accept Date: Sun, 03 Oct 2010 22:24:31 +0300 User-agent: Mozilla/5.0 (X11; Linux i686; rv:2.0b7pre) Gecko/20100930 Thunderbird/3.3a1pre
Hi,

I have a little problem with md5sum.

A FreeBSD box generates an md5 sum of a file, which I'm later trying to
check on a Linux box. The problem is that what FreeBSD's md5 outputs is
slightly different from what Linux's md5sum expects, which makes md5sum
complain. The difference is really trivial: md5 outputs one space
between the sum and the file name, and md5sum outputs/expects two:

address@hidden:~/Pootle/tmp$ md5sum -c  catkeys.zip
md5sum: catkeys.zip: no properly formatted MD5 checksum lines found

address@hidden:~/Pootle/tmp$ md5sum -c  catkeys.zip.md5
md5sum: catkeys.zip.md5: no properly formatted MD5 checksum lines found

address@hidden:~/Pootle/tmp$ md5sum catkeys.zip
f653761af3137c8a631284b390bae102  catkeys.zip

address@hidden:~/Pootle/tmp$ cat catkeys.zip.md5
f653761af3137c8a631284b390bae102 catkeys.zip

I don't know which format is the "right" one, but could md5sum perhaps
be fixed to support md5's checksum files too?

Thanks!
Rimas Kudelis



--- End Message ---
--- Begin Message --- Subject: Re: bug#7155: [md5sum] does not accept Date: Fri, 16 Sep 2011 13:54:17 +0100 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0
On 09/14/2011 11:43 PM, Rimas Kudelis wrote:
> 2011.09.14 17:12, Jim Meyering rašė:
>> Good point. I don't see a way to make GNU md5sum handle this automatically 
>> and safely. However, that's not a big deal: it's easy to convert from one 
>> format to the other using sed or perl. I'd be inclined to mark this 
>> "wontfix" (because we cannot) or simply to close it. 
> 
> 
> I think you could also implement this as a commandline switch, right?

Right. But that complicates the interface unnecessarily I think.

I'm going to apply the attached to give automatic support,
with the aforementioned caveat that BSD -r format checksums
where the _first_ file starts with a ' ' or '*' are not supported.
In that very unlikely case, one can always preprocess with sed 's/ /  /'

cheers,
Pádraig.

Attachment: md5sum-bsd.diff
Description: Text document


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]