This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: rm -rf -> Circular directory structure
- To: gnu-win32 at cygnus dot com
- Subject: Re: rm -rf -> Circular directory structure
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- Date: Tue, 12 Aug 1997 17:33:58 +1000 (EST)
- References: <33EF7405.AADDD43E@crec.mipt.ru>
"Igor V. Kovalenko" <iko@crec.mipt.ru> writes:
>Looking at ...include/sys/types.h I found that ino_t is actually
>unsigned short, that is only 16 bit in size. Thus, we (in 'rm' etc..)
>do compare the lower 16 bits of prepared by hash_path_name()
>32-bit integer.
> I think this is a main cause for $subj$, though the hashing
>function itself is not as perfect as it could be (in theory).
The whole idea of using a hash function to compute inode numbers
is fundamentally broken. Perhaps it would be better to think
about a solution that works rather than making a fundamentally
broken one slightly less broken.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".