Crossfire,

I have the testing version of coreutils(=4.5.2-1).
(from man ln)
       -d, -F, --directory
              hard link directories (super-user only)

# ln /tmp /tmp2
ln: `/tmp': hard link not allowed for directory
# ln --directory /tmp /tmp2
ln: creating hard link `/tmp2' to `/tmp': Operation not permitted

unstable provides coreutils 4.5.7-1, in which it must have been
fixed.  Perhaps it's out of the manpage until they have finished
implementing it ;-)

--

On Wed, 26 Feb 2003, Crossfire wrote:

> Stalker, Doug was once rumoured to have said:
> >
> > How can I create a hardlink to a directory?  ln promises to do it if I use
> > '--directory' as root, but I get permissions errors.
>
> You don't.  For a start, --directory doesn't even exist in the ln on my
> Debian unstable box, which is a pretty good indicator that it doesn't exist.
>
> Secondly, Hardlinking directories is WRONG - to permit such an act would be
> insanely stupid due to the massive amount of damage that you could allow
> users to inadvertantly cause due to them not realising that the directory is
> a hardlink and trying to do something simple like a 'rm -rf' against it.
>
> Symlinks will suffice.
>
> Consult your friendly ln manpage for further (correct) information.
>
> C.
> --
> --==============================================--
>   Crossfire      | This email was brought to you
>   [EMAIL PROTECTED] | on 100% Recycled Electrons
> --==============================================--
> --

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to