tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: link(2) on a symlink to a directory fails
On Fri 29 Jul 2011 at 08:12:38 +0000, Emmanuel Dreyfus wrote:
> I was trying to track down a bug in glusterfs on NetBSD and encountered a
> behavior difference between NetBSD and Linux. NetBSD will refuse (EPERM)
> to link(2) on a symlink to a directory, while Linux is fine with such
> an operation (but fails to link(2) directly to a directory, just like
> NetBSD).
It seems that if you ln to a symlink, you actually link to the
destination of it. There is a -h option for not following symlinks but
it is for the target file, not the source file.
I'm not sure this makes sense, and I seem to recall vaguely that this
was changed in the last few years.
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- There's no point being grown-up if you
\X/ rhialto/at/xs4all.nl -- can't be childish sometimes. -The 4th Doctor
Home |
Main Index |
Thread Index |
Old Index