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

Bug#77487: md5sum.txt file for disks-i386 doesn't match files on server



Adam Di Carlo <adam@onshore.com> writes:

> I cannot reproduce this problem:

Dang!

> <aph@auric:current> /bin/pwd
> /org/ftp.debian.org/ftp/dists/potato/main/disks-i386/2.2.17-2000-11-11
> <aph@auric:current> md5sum -c md5sum.txt 
> <aph@auric:current> echo $?
> 0
> <aph@auric:current> grep README.txt md5sum.txt 
> 927867784500d50707de22435da7f101  ./README.txt
> 194304eee103ab6e05ea733c08121ca8  ./images-2.88/udma66/README.txt
> 25b8c189c34da19bbe2eb92d970cc4dd  ./images-2.88/idepci/README.txt
> 
> What's the beef?

Wish I knew.  Looks like my /usr/bin/md5sum is weird.

  olaf@bilbo:[...]/2.2.17-2000-11-11$ md5sum -cv md5sum.txt
    md5sum: can't open ./README.txt
   md5sum: can't open ./READ-pl.txt
   md5sum: can't open ./dosutils/setlang.bat
   md5sum: can't open ./dosutils/rawrite2.exe
   md5sum: can't open ./dosutils/rawrite2.txt
    md5sum: can't open ./dosutils/loadlin.exe
  [...]
  olaf@bilbo:[...]/2.2.17-2000-11-11$ ls -l ./READ* ./dosutils/
  -rw-r--r--    1 olaf     mirror       6366 Sep 30 17:23 ./READ-pl.txt
  -rw-r--r--    1 olaf     mirror       6163 Sep 30 17:23 ./README.txt

  ./dosutils/:
  total 60
  -rw-r--r--    1 olaf     mirror      32208 Sep 30 17:26 loadlin.exe
  -rw-r--r--    1 olaf     mirror      17863 Oct 31 09:40 rawrite2.exe
  -rw-r--r--    1 olaf     mirror       1671 Mar  7  1996 rawrite2.txt
  -rw-r--r--    1 olaf     mirror        928 Sep 30 17:26 setlang.bat
  olaf@bilbo:[...]/2.2.17-2000-11-11$ md5sum ./READ* ./dosutils/
  bb11aaadd6f882502a46b9e5009798dd  ./READ-pl.txt
  17eed5c36e647abf6ee9c9879e6e902a  ./README.txt
  81d0270ee44075a1afb88b0aedcd27fe  ./dosutils/loadlin.exe
  d8a0e813566f75d6208b7376c9d9fc18  ./dosutils/rawrite2.exe
  a9fd62a293f2385ae460050bc2fbede4  ./dosutils/rawrite2.txt
  b5a971f1d9d9001ea9c28edd9cc9e786  ./dosutils/setlang.bat
  olaf@bilbo:[...]/2.2.17-2000-11-11$ grep ./READ md5sum.txt
  927867784500d50707de22435da7f101  ./README.txt
  ddb842488ffa4b8f66e7a31ea199ef7e  ./READ-pl.txt
  [...]
  olaf@bilbo:[...]/2.2.17-2000-11-11$ grep ./dosutils/
  b5a971f1d9d9001ea9c28edd9cc9e786  ./dosutils/setlang.bat
  d8a0e813566f75d6208b7376c9d9fc18  ./dosutils/rawrite2.exe
  9eaa2b84c0e6e5fc6da673626cec9f06  ./dosutils/rawrite2.txt
  81d0270ee44075a1afb88b0aedcd27fe  ./dosutils/loadlin.exe

Looks like only *.txt files give the wrong checksums.  Still mistified
on why I get the can't open errors.  I have rw access on the files, so
what gives?  Running md5sum with a daily computed list of all files on
the system works fine (compensating for access permissions).  That in-
cludes 2.2.17-2000-11-11.

Hmmm, got a hunch here ... let's check ...

  olaf@bilbo:[...]/2.2.17-2000-11-11$ hexdump -c md5sum.txt 
  0000000   9   2   7   8   6   7   7   8   4   5   0   0   d   5   0   7
  0000010   0   7   d   e   2   2   4   3   5   d   a   7   f   1   0   1
> 0000020           .   /   R   E   A   D   M   E   .   t   x   t  \r  \n
  0000030   d   d   b   8   4   2   4   8   8   f   f   a   4   b   8   f
  0000040   6   6   e   7   a   3   1   e   a   1   9   9   e   f   7   e
  0000050           .   /   R   E   A   D   -   p   l   .   t   x   t  \r
  0000060  \n   b   5   a   9   7   1   f   1   d   9   d   9   0   0   1

See the end of that third line, \r\n, hmmm, that looks very DOSish and
is bound to trip up md5sum.  Same thing in README.txt.  Bet the other
text files have the same problem.  Oops, looks like I used an FTP URL
and got bitten by the infamous binary/ascii download no-no courtesy of
wget :-{

Sorry for the false alarm!

> Is this bug closable?

Yes.  And thanks for making me do my homework ;-)

-- 
Olaf Meeuwissen       Epson Kowa Corporation, Research and Development



Reply to: