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: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: standards-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost, mark%ecs.vuw.ac.nz@localhost
Subject: Re: standards/43154: wrong errno from open( , O_NOFOLLOW, )
Date: Mon, 19 Apr 2010 04:41:35 +0000

 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