Opened 8 years ago
Closed 8 years ago
#116 closed defect (fixed)
md5sum: md5sum from coreutils-8.25-2.oc00.pentium4 cannot read its own .md5 files
Reported by: | Lewis Rosenthal | Owned by: | Silvan Scherrer |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | coreutils | Version: | |
Severity: | medium | Keywords: | |
Cc: |
Description
Creating an md5 checksum via:
[j:\]md5sum bluelion-0.0-en.iso > bluelion-0.0-en.md5
yields the following upon attempting to read the file:
[j:\]md5sum -c bluelion-0.0-en.md5 md5sum.exe: 'bluelion-0.0-en.iso'$'\r': No such file or directory : FAILED open or read md5sum.exe: WARNING: 1 listed file could not be read
We don't like the end of the file.
Change History (5)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
this has nothing to do with it's own md5 files. as redirecting is out of scope of md5sum. It has to do that it should treat inputfiles with crlf and cr the same.
This is just a note to myself, as the original description is not 100% accurate.
comment:4 by , 8 years ago
Agreed that the description is not fully accurate. The issue is with not (properly) ignoring DOS line endings, as you say, Silvan.
I suspect that this is not the only ported app which will behave this way. Whether the fix lies in kLIBC I do not know. I do know, however, that it should not be necessary to run yet another utility to strip the line endings.
I tested this under dash, and got the same result when redirecting the output as I did under 4OS2.
For now, the workaround is to pipe such redirection through dos2unix first, and then save the resulting file, as in:
[j:\]md5sum bluelion-0.0-en.iso | dos2unix > bluelion-0.0-en.md5
comment:5 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
this issue is fixed with latest coreutils. I hope the change will not break too many other coreutils binaries. But then we have to fix one by one.
Obviously, running dos2unix against the file makes it usable for md5sum.