jessek / hashdeep

Other
694 stars 130 forks source link

Option -0 does not work #354

Open guraga opened 8 years ago

guraga commented 8 years ago

Test case.


mkdir test
cd test
touch a b c
find . -type f -print0 > ../list_of_files

Command

xargs --null --arg-file=../list_of_files --max-args=1

will print content of file "../list_of_files":

./a
./b
./c

Command

md5deep -0 -f ../list_of_files

will print

d41d8cd98f00b204e9800998ecf8427e  ./a\0

where "\0" - NULL character. Program print hash of first file, but expected result is printing hashes of all files like:

d41d8cd98f00b204e9800998ecf8427e  ./a\0
d41d8cd98f00b204e9800998ecf8427e  ./b\0
d41d8cd98f00b204e9800998ecf8427e  ./c\0