Date: Fri, 18 Nov 2016 19:01:06 +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@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214633 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@FreeBSD.org Reporter: lantw44@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 wri= ting (bug 212572). --=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>