hashdeep icon indicating copy to clipboard operation
hashdeep copied to clipboard

hashdeep - verify fails if checking Windows hashes on Linux

Open simsong opened this issue 12 years ago • 4 comments

Converted from SourceForge issue 3021612, submitted by nobody

If you generate hashes recursively on a Windows (-c md5 -r -l *), it will have the Windows separator which is different from the Linux separator. So if you check these hashes from a Linux system, it will fail to verify saying the file has been moved.

simsong avatar Dec 07 '12 12:12 simsong

Submitted by jessekornblum

I have been able to reproduce the problem using Win 7 x64 and Mac OS X. Although I'm accepting it as a bug, I'm not sure what to do about it.

simsong avatar Dec 07 '12 12:12 simsong

I'm running into this problem as well. First I hoped it might help to generate with the -l flag (store relative paths), but it still results in the file has moved error.

It seems to me that making the output of the tool OS independent is a worthwhile goal. Since on Windows forward-slashes are interpreted as a path separator, I would propose to (optionally) use forward slashes on all platforms for the output of this tool.

brenthuisman avatar Jul 11 '16 15:07 brenthuisman

Works for me.

jessek avatar Jul 11 '16 21:07 jessek

Unlikely, because the tool does no conversion of path separators whatsoever.

brenthuisman avatar Jul 12 '16 08:07 brenthuisman