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, )



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

From: Mark Davies <mark%ecs.vuw.ac.nz@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: standards/43154: wrong errno from open( , O_NOFOLLOW, )
Date: Sat, 17 Apr 2010 11:14:53 +1200

 On Thursday 15 April 2010 03:55:01 you wrote:
 >  On Mon, Apr 12, 2010 at 08:35:00PM +0000, mark%ecs.vuw.ac.nz@localhost 
 > 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
 
 cheers
 mark
 


Home | Main Index | Thread Index | Old Index