[Bug 214633] Open symlink with O_NOFOLLOW should fail with ELOOP, not EMLINK
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Nov 19 21:42:00 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214633
Jilles Tjoelker <jilles at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jilles at FreeBSD.org
--- Comment #1 from Jilles Tjoelker <jilles at FreeBSD.org> ---
This question has come up before in
https://lists.freebsd.org/pipermail/freebsd-fs/2011-March/010952.html. The
error for O_NOFOLLOW is [EMLINK] because that allows distinguishing a symlink
loop in the non-final components of the path from a symlink in the final
component of the path. The implementation of cmp(1) (-h option) depends on this
and contrib/xz takes advantage of it to avoid a race condition.
Perhaps an Austin group bug should be opened about this.
By the way, NetBSD returns [EFTYPE] in this case.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list