Re: Hard links to directories
Re: Hard links to directories
- Subject: Re: Hard links to directories
- From: Chris Idou <email@hidden>
- Date: Wed, 1 Oct 2008 20:00:56 -0700 (PDT)
A couple more questions:
1) How do permissions work? I notice that the system seems to stop you doing dangerous things like hardlinking /System to somewhere, even as root, but its not clear why this case is different.
2) I notice that once a directory has been hardlinked, it is forever tainted in some fashion. If I hardlink a directory somewhere, then unlink the 2nd link, then the original directory can never be trashed in the Finder for example. Such an attempt will fail, even though it is apparently no different to any other directory. Can anyone enlighten me about this?
--- On Wed, 10/1/08, Chris Idou <email@hidden> wrote:
> From: Chris Idou <email@hidden>
> Subject: Hard links to directories
> To: email@hidden
> Date: Wednesday, October 1, 2008, 7:25 PM
> OS-X 10.5 now allows you to hard link directories.
>
> However the link count of the directory seems to behave in
> the conventional unix way. i.e. it is the number of
> directories contained in that directory + 2 for
> "." and "..".
>
> Is there a way to find out the link count for directories,
> or to otherwise discover if a particular directory has hard
> links?
>
>
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Darwin-kernel mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden