[Bug 214633] Open symlink with O_NOFOLLOW should fail with ELOOP, not EMLINK

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 4 16:01:10 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214633

--- Comment #6 from commit-hook at freebsd.org ---
A commit references this bug:

Author: jilles
Date: Sun Dec  4 16:00:25 UTC 2016
New revision: 309536
URL: https://svnweb.freebsd.org/changeset/base/309536

Log:
  MFC r309026: open(2): Clarify non-POSIX error when opening a symlink with
  O_NOFOLLOW.

  We return [EMLINK] instead of [ELOOP] when trying to open a symlink with
  O_NOFOLLOW, so that the original case of [ELOOP] can be distinguished. Code
  like cmp -h and xz takes advantage of this.

  PR:           214633

Changes:
_U  stable/10/
  stable/10/lib/libc/sys/open.2

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-standards mailing list