Date: Sat, 19 Nov 2016 21:42:00 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-standards@FreeBSD.org Subject: [Bug 214633] Open symlink with O_NOFOLLOW should fail with ELOOP, not EMLINK Message-ID: <bug-214633-15-AxMWe9PST8@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-214633-15@https.bugs.freebsd.org/bugzilla/> References: <bug-214633-15@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214633 Jilles Tjoelker <jilles@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jilles@FreeBSD.org --- Comment #1 from Jilles Tjoelker <jilles@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 symli= nk 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214633-15-AxMWe9PST8>