Two links to a directory?

Geoff Clare gwc at root.co.uk
Fri Jun 28 21:51:47 AEST 1991


tom at itc.univie.ac.at (Tom Kovar) writes:

>   The superuser may generate directory hard links (see
>link(2v)); if not, it would not be possible to have the . and .. entries
>in the directory :-)

Not true.  The links to . and .. can be created by a mkdir() system call,
in which case there is no need for link() to be able to link directories.
-- 
Geoff Clare <gwc at root.co.uk>  (Dumb American mailers: ...!uunet!root.co.uk!gwc)
UniSoft Limited, London, England.   Tel: +44 71 729 3773   Fax: +44 71 729 3273



More information about the Comp.unix.questions mailing list