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

Bug#199694: md5sum: gets confused by empty lines at end of digest

Package: dpkg
Version: 1.10.10
Severity: normal

You can reproduce a bug by entering the following command sequence:

# create some empty files
touch file1.dat
touch file2.dat
# create a md5sum digest
md5sum file1.dat file2.dat > digest.md5
# add 2 empty lines at the end of the digest
echo >> digest.md5
echo >> digest.md5
# check the digest
md5sum -c digest.md5

In this case, the erroneous output will be:
md5sum: can't open file2.da
md5sum: can't open file2.d

The number of errors depends on the number of empty lines
at the end of the digest.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux daniel 2.4.20 #1 Son Jan 26 16:34:02 CET 2003 i586
Locale: LANG=de_DE, LC_CTYPE=de_DE

Versions of packages dpkg depends on:
ii  dselect                       1.10.10    a user tool to manage Debian packa
ii  libc6                         2.3.1-16   GNU C Library: Shared libraries an

Reply to: