Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 identical files error in fileutils

open
nobody
None
5
2002-11-18
2002-11-18
Bernd Eilers
No

Fileutilities like cp sometimes complain about two files
being identical altough they are not.

This is caused by the 'fake inode' routine in the downhill
library ( dh_file.c , Downhill_File_Stat, line 159 ) where a
hash code is used as the inode number for a file. A hash
code can occassionally be identically for two non
identical filenames. To fix this I would suggest to use a
real hash table using the filename as the key and
counter generated numbers as inode values.

PS: the bug has been encountered while building
OpenOffice.org (www.openoffice.org) on Windows

Discussion