GNU bug report logs - #10043
md5sum improvment suggestion

Previous Next

Package: coreutils;

Reported by: Castet JR <castet01 <at> yahoo.fr>

Date: Mon, 14 Nov 2011 09:01:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10043 in the body.
You can then email your comments to 10043 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#10043; Package coreutils. (Mon, 14 Nov 2011 09:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Castet JR <castet01 <at> yahoo.fr>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 14 Nov 2011 09:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Castet JR <castet01 <at> yahoo.fr>
To: bug-coreutils <at> gnu.org
Subject: md5sum improvment suggestion
Date: Mon, 14 Nov 2011 08:56:15 +0000 (GMT)
[Message part 1 (text/plain, inline)]
md5sum improvment suggestion

Let assume this:

  find /lib -type f -name '*dll' |head -n5 >a0.a

  cat a0.a

/lib/aspell-0.60/context-filter.dll
/lib/aspell-0.60/email-filter.dll
/lib/aspell-0.60/nroff-filter.dll
/lib/aspell-0.60/sgml-filter.dll
/lib/aspell-0.60/tex-filter.dll


md5sum checks file integrity based on the md5 crc, of an single file.
  md5sum /lib/aspell-0.60/tex-filter.dll
  0



md5sum checks file integrity based on the md5 crc, of an list of files .
  md5sum -c a0.md5
  0



md5sum apparently does not make an a0.md5 signature file from a list of files:
  find /lib -type f -name '*dll' |head -n5 |while read f; do md5sum $f; done >>a0.md

  -nasty-  :-(

therefore, should it be a good idea to improve md5sum with this option:
  md5sum -f a0.md5 

to achive
  find /lib -type f -name '*dll' |head -n5 |while read f; do md5sum $f; done >>a0.md

spontaneously ? :-)


Thx

' nice day

pc

[Message part 2 (text/html, inline)]

Reply sent to Pádraig Brady <P <at> draigBrady.com>:
You have taken responsibility. (Mon, 14 Nov 2011 10:28:01 GMT) Full text and rfc822 format available.

Notification sent to Castet JR <castet01 <at> yahoo.fr>:
bug acknowledged by developer. (Mon, 14 Nov 2011 10:28:02 GMT) Full text and rfc822 format available.

Message #10 received at 10043-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Castet JR <castet01 <at> yahoo.fr>
Cc: 10043-done <at> debbugs.gnu.org
Subject: Re: bug#10043: md5sum improvment suggestion
Date: Mon, 14 Nov 2011 10:27:02 +0000
tags 10043 notabug

On 11/14/2011 08:56 AM, Castet JR wrote:
> md5sum improvment suggestion
> 
> Let assume this:
> 
>   find /lib -type f -name '*dll' |head -n5 >a0.a
> 
>   cat a0.a
> 
> /lib/aspell-0.60/context-filter.dll
> /lib/aspell-0.60/email-filter.dll
> /lib/aspell-0.60/nroff-filter.dll
> /lib/aspell-0.60/sgml-filter.dll
> /lib/aspell-0.60/tex-filter.dll
> 
> 
> md5sum checks file integrity based on the md5 crc, of an single file.
>   md5sum /lib/aspell-0.60/tex-filter.dll
>   0

That's not what happens with coreutils md5sum.
Can you give the output of md5sum --version.
I'm closing the bug for the moment.

> md5sum checks file integrity based on the md5 crc, of an list of files .
>   md5sum -c a0.md5
>   0
> 
> 
> 
> md5sum apparently does not make an a0.md5 signature file from a list of files:
>   find /lib -type f -name '*dll' |head -n5 |while read f; do md5sum $f; done >>a0.md
> 
>   -nasty-  :-(

BTW the above would start an md5sum process for each file,
as well as using shell loops which are slow.
The preferred idiom for this is:

find /lib -type f -name '*dll' | xargs md5sum >a0.md5

cheers,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#10043; Package coreutils. (Mon, 14 Nov 2011 10:38:02 GMT) Full text and rfc822 format available.

Message #13 received at 10043 <at> debbugs.gnu.org (full text, mbox):

From: Castet JR <castet01 <at> yahoo.fr>
To: 10043 <at> debbugs.gnu.org
Subject: Re : bug#10043: ... md5sum ... : many thansk for a so quick answer !
	:-)
Date: Mon, 14 Nov 2011 10:36:22 +0000 (GMT)
[Message part 1 (text/plain, inline)]
Re : bug#10043: ... md5sum ... : 

  many thansk for a so quick answer ! :-)


Have a nice day

pc

--- En date de : Lun 14.11.11, GNU bug Tracking System <help-debbugs <at> gnu.org> a écrit :

De: GNU bug Tracking System <help-debbugs <at> gnu.org>
Objet: bug#10043: closed (Re: bug#10043: md5sum improvment suggestion)
À: "Castet JR" <castet01 <at> yahoo.fr>
Date: Lundi 14 novembre 2011, 11h28

Your bug report

#10043: md5sum improvment suggestion

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 10043 <at> debbugs.gnu.org.

-- 
10043: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10043
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 12 Dec 2011 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 195 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.