md5sum from coreutils 8.15 "--check" option
It seems that the latest md5sum from coreutils package (8.15)
behaves differently than it used to in previous versions. Invoking md5sum with "--check" option to check directory files against a text file containing computed md5sums gives no valid result. Restoring previous md5sum version from coreutils package 8.12 fixed this problem. |
I can not reproduce this on slackware64-current with "coreutils-8.15-x86_64-1" installed.
I tested on a random file: Code:
$ md5sum wine-1.3.37.tar.bz2 > MD5SUMS |
I'm having this problem on -Current (32 bit)
Code:
md5sum -c CHECKSUMS.md5 | less |
Seems like the newer md5sum has issues with a CHECKSUMS file containing more than just md5 checksums... if you delete the header lines from Slackware's CHECKSUMS.md5 and only leave the actual checksum lines, then the command "md5sum -c CHECKSUMS.md5" works.
Eric |
Quote:
it's a bug upstream, but i still haven't found any discussion on the coreutils list so far |
Quote:
Yes, deleting header infos from the beginning of the CHECKSUMS.md5 file fixed this. I am using 32-bit current Slack. Thanks. |
This happens because "md5sum" now detects "bsd reversed" format:
Code:
2c2 Quote:
I verified this by changing all lines in "CHECKSUMS.MD5" to "bsd reversed" format and all works well. Code:
sed 's/ / /' CHECKSUMS.md5 | md5sum --check |
I found the following in the "md5sum" source code:
Code:
/* Ignore comment lines, which begin with a '#' character. */ And here the latest source code http://git.savannah.gnu.org/cgit/cor...3f21431da#n509 |
Here's the commit code http://git.savannah.gnu.org/gitweb/?...0e9a35fd89da3b
|
All times are GMT -5. The time now is 06:14 PM. |