inconsistent checksums on copied directories

Gordon Messmer yinyang at eburg.com
Tue Nov 21 00:21:01 UTC 2006


charles f. zeitler wrote:
> 
> and check them both with
> tar cf - dir | sha1sum,
> i get different checksums
> although both dirs have 
> the same name and
> matching pairs of files
> have the same sha1sum.
> 
> am i doing something wrong?

It's hard to say, since you're not posting the actual commands that 
you're using.  I'm inclined to believe that you're using a different 
path in each "tar cf - <dir>" command, which would put different file 
names in each tar stream.  If I do what you're suggesting that you do, I 
don't get different sha1sums.




More information about the users mailing list