NetBSD-Bugs archive

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

Re: standards/43154: wrong errno from open( , O_NOFOLLOW, )



On Fri, Apr 16, 2010 at 11:20:06PM +0000, Mark Davies wrote:
 >>>    open ("symlink", O_NOFOLLOW, ) returns an errno of EMLINK.
 >>>    POSIX1.2008 says it should return ELOOP
 >>>    (http://www.opengroup.org/onlinepubs/9699919799/)
 >> 
 >>  EMLINK would be quite wrong here, since EMLINK normally means "too
 >>  many hard links to this object".
 >> 
 >>  The problem is, I can't find any instances of EMLINK in the kernel
 >>  that could be generating this. What fs are you seeing it on?
 >  
 > Whoops, sorry EMLINK is the incorrect value that FreeBSD apparently
 > returns for this. EFTYPE is what NetBSD returns in this case -
 > which is still not ELOOP.
 >  
 >  http://marc.info/?l=netatalk-devel&m=127114602331214&w=2

Ok, I see... EFTYPE at least makes sense, but so does ELOOP I guess
and EFTYPE isn't standard.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index