Hard links to directories: why not?
Andrew Hume
andrew at alice.UUCP
Fri Jul 20 15:27:58 AEST 1990
as everyone has said, you don't want hard links to dirs
because the tree'ness of the file system gets buggered.
on the other hand, links to files already do that to some extent.
and symbolic links do it completely as you can symlink to directories.
allowing hard links to dirs makes the problem no worse, really.
and in fact, it may help because maybe then all the tree traversal code
everyone implements on their own will get buggered enough that everyone
will use the one routine (say ftw) which can do it right (as best it can, anyway).
the hard program to write and define semantics for has always been pwd.
some unixes remember how you got to a directory and use that knowledge
to interpret .. while most look up the file system. it all depends on what you want.
More information about the Comp.unix.wizards
mailing list