Bug#264195: "md5sum -c" barfs on invalid input lines
Package: dpkg
Version: 1.9.21
When fed with an md5sum list which has empty lines appended,
"md5sum -c" tries to check a garbage file.
To reproduce:
/tmp % echo hello > hello
/tmp % md5sum hello > sum
/tmp % echo "" >> sum
/tmp % echo "" >> sum
/tmp % md5sum -c < sum
md5sum: can't open hell
md5sum: can't open hel
[2] /tmp %
The same seems to happen with other garbage lines as well.
This is a Debian Woody system with all security updates,
AMD Athlon XP, Linux 2.6.7.
Package versions:
dpkg 1.9.21
libc6 2.2.5-11.5
libncurses5 5.2.20020112a-7
libstdc++2.10-glibc2.2 2.95.4-11woody1
Reply to: