Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: hardlink to symlink behaviour [was: Re: MKXORG=yes on Linux: nbmtree: existing entry for `libXaw.so', type `link' does not match type `file']



Digging a bit more into this, it's related to the difference in handling hardlink to symlinks. On NetBSD, it seems that you get a link to the target file these days[1], while on Linux you get a link to the symlink[2]. ISTR that NetBSD used to behave like Linux there - is this really intended?

FWIW, Solaris behaves the same way as Linux does.


Yes, both of them are "incorrect" (if you can use this term for not following all other unix systems). :)

See this for a vulnerability because of this misbehavior:
http://securitytracker.com/alerts/2008/Aug/1020700.html

A nicer explanation of the problem:
http://archives.neohapsis.com/archives/postfix/2008-08/0391.html


Home | Main Index | Thread Index | Old Index