Date: Fri, 12 Dec 2003 04:20:17 -0800 (PST) From: dada@sbox.tugraz.at To: freebsd-bugs@FreeBSD.org Subject: Re: bin/60079: realpath(3) accepts zero size symbolic links Message-ID: <200312121220.hBCCKHBk086390@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/60079; it has been noted by GNATS. From: dada@sbox.tugraz.at To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> Cc: Subject: Re: bin/60079: realpath(3) accepts zero size symbolic links Date: Fri, 12 Dec 2003 13:15:01 +0100 Zitat von Garrett Wollman <wollman@khavrinen.lcs.mit.edu>: > If namei(9) doesn't accept such a path it is broken. POSIX clearly > (well, actually, murkily but definitively) specifies the (very > unintuitive) meaning of such a symbolic link. I=B4m surprised. I didn=B4t consider that standards could specify such stran= ge semantics. However realpath(3) and namei(9) do not match here. Zero size symbolic links make the kernel return ENOENT. (Verified on -stable.) Fixing namei(9) is a different subject and - if desirable at all - should go into a PR of its own. I therefore withdraw this PR because it is apparently = not POSIX conformant. Please someone close it! (MFC of the realpath.3 manpage should be done however. It is out of sync with the code in -stable.) P.S.: BTW Linux=B4s symlink(2) doesn=B4t even create such a strange symbolic= link.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312121220.hBCCKHBk086390>
