hurd: Fix O_NOFOLLOW
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 16 Jan 2017 17:43:37 +0000 (17:43 +0000)
committerAurelien Jarno <aurel32@debian.org>
Mon, 16 Jan 2017 17:43:37 +0000 (17:43 +0000)
commitdff403cb2c99f84b38f95b2a0c5602f89bd2d251
tree0f8651152fba1cbd53e582642d771180b229b344
parent13a5404868c99477fb3a9fcc548a708026230efa
hurd: Fix O_NOFOLLOW

The error code documented by POSIX for opening a symlink with O_NOFOLLOW
is ELOOP.

Also, if the translator does not expose symlink as a symlink translator but
as a S_IFLNK file, O_NOFOLLOW needs to return ELOOP too.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-NOFOLLOW.diff
hurd/lookup-retry.c