hard links for directories ?

Greg 'groggy' Lehey grog at FreeBSD.org
Wed Aug 18 19:18:01 PDT 2004


[Format recovered--see http://www.lemis.com/email/email-format.html]

On Wednesday, 18 August 2004 at 21:11:52 -0500, David Kelly wrote:
> On Aug 17, 2004, at 6:14 PM, Greg 'groggy' Lehey wrote:
>>> Root is the only one allowed to make hard links to directories.
>>
>> This is not correct.  root has no special powers here.
>
> OK, I'm a bit out of date and stand corrected. IIRC fsck used link(2)
> to reconnect an inode as a directory sometimes. "man 2 link" says:
>
>> The link() system call traditionally allows the super-user to link
>> directories which corrupts the file system coherency.  This
>> implementation no longer permits it.

Ah, interesting.  I didn't know that.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
Note: I discard all HTML mail unseen.
Finger grog at FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040819/ff3b997f/attachment.bin


More information about the freebsd-questions mailing list