[Bug 214633] Open symlink with O_NOFOLLOW should fail with ELOOP, not EMLINK
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Nov 18 19:01:06 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214633
Bug ID: 214633
Summary: Open symlink with O_NOFOLLOW should fail with ELOOP,
not EMLINK
Product: Base System
Version: 11.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: standards
Assignee: freebsd-standards at FreeBSD.org
Reporter: lantw44 at gmail.com
According to POSIX standard
(http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html), open
function should fail to open a symlink with ELOOP when it is called with
O_NOFOLLOW flag. However, it returns EMLINK on FreeBSD.
It seems it was changed by this old commit:
https://svnweb.freebsd.org/changeset/base/35088
This problem causes programs using GIO API to fail to open symlinks for writing
(bug 212572).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list