NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
standards/43154: wrong errno from open( , O_NOFOLLOW, )
>Number: 43154
>Category: standards
>Synopsis: wrong errno from open( , O_NOFOLLOW, )
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: standards-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 12 20:35:00 +0000 2010
>Originator: Mark Davies
>Release: NetBSD 5.0_STABLE
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
System: NetBSD turakirae.ecs.vuw.ac.nz 5.0_STABLE NetBSD 5.0_STABLE
(ECS_WORKSTATION) #7: Sun Feb 28 09:13:18 NZDT 2010
mark%turakirae.ecs.vuw.ac.nz@localhost:/local/SAVE/build.obj/src/work/5/src/sys/arch/i386/compile/ECS_WORKSTATION
i386
Architecture: i386
Machine: i386
>Description:
open ("symlink", O_NOFOLLOW, ) returns an errno of EMLINK.
POSIX1.2008 says it should return ELOOP
(http://www.opengroup.org/onlinepubs/9699919799/)
Also the open manual page says that O_NOFOLLOW is a non-standard
extension,
seems that it is a standard now.
>How-To-Repeat:
Build and run the netatalk 2.1 beta release or try the following test
program.
#include <errno.h>
#include <fcntl.h>
main ()
{
int i = open("foo", O_NOFOLLOW, 0 );
printf ("error %d", errno);
}
>Fix:
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index