GNU bug report logs - #17552
Sometimes md5sum misses files

Previous Next

Package: coreutils;

Reported by: "Hamilton, Eric" <Eric.Hamilton <at> schneider-electric.com>

Date: Thu, 22 May 2014 17:24:01 UTC

Severity: normal

Tags: notabug

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 17552 in the body.
You can then email your comments to 17552 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#17552; Package coreutils. (Thu, 22 May 2014 17:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Hamilton, Eric" <Eric.Hamilton <at> schneider-electric.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 22 May 2014 17:24:02 GMT) Full text and rfc822 format available.

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

From: "Hamilton, Eric" <Eric.Hamilton <at> schneider-electric.com>
To: <bug-coreutils <at> gnu.org>
Subject: Sometimes md5sum misses files
Date: Thu, 22 May 2014 10:18:09 -0700
[Message part 1 (text/plain, inline)]
Hi

 

I just noticed that md5sum sometimes does not calculate a md5 checksum
on a file when using wild cards.

 

I am running Cygwin64 under Windows7 64-bit and am executing the program
within a Ms-Dos window.

 

My call is "md5sum *.h64"

 

md5sum "missed" doing a checksum on the lang.h64 file.

 

If I run md5sum directly on lang.h64, then I get a checksum.

 

The two included files are: md5.txt is the version data for md5sum.

In  md5test.zip are the six test files and the result of running md5sum.

 

The version data is all  in Linux end of line format.

In the test files some files have Linux end of lines and some have
Ms-Dos end of lines. 

 

I tried to make shorter test files and then the problem did not happen.

 

I can't think of anything else to try. My workaround is to just manually
do a md5sum on the lang.h64 file. 

 

Others may have the same problem and have not yet caught it yet.

________________________________________________________________________
_______
All men are created equal .... and then some become Marine Sargents
Eric Hamilton  |   Pelco by Schneider Electric   |  Buildings Business
|   United States  |   Senior Software Engineer 
Phone: 559-292-1981 ext. 3375  |   Toll Free: 800-289-9100 ext. 3375  |
Direct Phone:  559-388-3375
Email: Eric.Hamilton <at> schneider-electric.com <mailto:ehamilton <at> pelco.com>
|   Site: www.schneider-electric.com
<http://www.schneider-electric.com/>   |   Address: 3500 Pelco Way,
Clovis, California, 93612-5699 USA 

 

 

[Message part 2 (text/html, inline)]
[md5.txt (text/plain, attachment)]
[md5test.zip (application/x-zip-compressed, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#17552; Package coreutils. (Thu, 22 May 2014 17:36:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: "Hamilton, Eric" <Eric.Hamilton <at> schneider-electric.com>
Cc: 17552 <at> debbugs.gnu.org
Subject: Re: bug#17552: Sometimes md5sum misses files
Date: Thu, 22 May 2014 18:35:35 +0100
tag 17552 notabug
close 17552
stop

On 05/22/2014 06:18 PM, Hamilton, Eric wrote:
> Hi
> 
>  
> 
> I just noticed that md5sum sometimes does not calculate a md5 checksum
> on a file when using wild cards.
> 
>  
> 
> I am running Cygwin64 under Windows7 64-bit and am executing the program
> within a Ms-Dos window.
> 
>  
> 
> My call is "md5sum *.h64"
> 
> md5sum "missed" doing a checksum on the lang.h64 file.
> 
>  
> 
> If I run md5sum directly on lang.h64, then I get a checksum.

I see in the zip file that the file name is actually lang.H64
I.E. a capital 'H'. So I'm guessing that the glob done
by the shell is case insensitive, while the file system
is only case retentive and so maps the lang.h64 request to lang.H64?

In bash for example you can run the following to
glob case insensitively:

  shopt -s nocaseglob

I've no experience on such platforms so the above is just a guess,
and we can open the bug again if there is an issue.

thanks,
Pádraig.




Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Thu, 22 May 2014 17:36:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17552 <at> debbugs.gnu.org and "Hamilton, Eric" <Eric.Hamilton <at> schneider-electric.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Thu, 22 May 2014 17:36:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 20 Jun 2014 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 6 days ago.

Previous Next


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