]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r309026: open(2): Clarify non-POSIX error when opening a symlink with
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 4 Dec 2016 16:00:25 +0000 (16:00 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 4 Dec 2016 16:00:25 +0000 (16:00 +0000)
commit3c89430fb8e83678d8662e36789e2a7d35388a48
tree320b4d316927b6ce4fce8b3a16d51e1cfa17f259
parente4993fd8956bbdc323863a759d566b44cf5a5575
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@309536 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sys/open.2