hurd: Fix O_NOFOLLOW
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 29 Nov 2017 03:00:21 +0000 (03:00 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Wed, 29 Nov 2017 03:00:21 +0000 (03:00 +0000)
commitc4007037c3a8776cdc80d782a02c4aa96272e03c
tree324e659b1bc494be1c0de384c6062333915ec223
parentbe422ad6e49b2727d4dd9feb244fd9aad516c788
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