bug-coreutils
[Top][All Lists]
Advanced

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

md5sum is sensitive to line terminator of md5 file


From: John Blythe
Subject: md5sum is sensitive to line terminator of md5 file
Date: Tue, 22 Apr 2008 19:27:35 +0100
User-agent: Opera Mail/9.50 (Linux)

Hi, I have just noticed that checking md5 hashes in an correctly formated md5 file fails on linux if the file
has crlf line terminators.

It gives unhelpful and incorrectly formatted errors messages such as,

#line in checksums.md5
8a107f691b48ffe203938be1ed6cdbe7 *04 - Totnes Bickering Fair.mp3

#error message output
: No such file or directoryng Fair.mp3
: FAILED open or read Fair.mp3
: No such file or directory3


Changing line terminators with a utility such as dos2unix fixes the problem. I cannot say if the opposite problem exists on DOS based systems.

Wouldn't it be better to detect and take into account the
line terminators possiblly with a warning?

Cheers - John Blythe.

--

In girum imus nocte et consumimur igni.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]