bin/60079: realpath(3) accepts zero size symbolic links

dada at sbox.tugraz.at dada at sbox.tugraz.at
Fri Dec 12 04:20:19 PST 2003


The following reply was made to PR bin/60079; it has been noted by GNATS.

From: dada at sbox.tugraz.at
To: Garrett Wollman <wollman at 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 at 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.
 
 


More information about the freebsd-bugs mailing list