hurd: Fix O_NOFOLLOW
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 2 Dec 2017 10:07:17 +0000 (10:07 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sat, 2 Dec 2017 10:07:17 +0000 (10:07 +0000)
commit9343bbc7e8ef6664fcde9b3ecd6026a18fa09726
treeb3445148fef21f0b43e4232cef35517b150c09ea
parent01fed2d33779143d6fc02cf90f3b11f4ec785c49
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