diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-10 17:16:54 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-10 17:16:54 +0200 |
commit | 13710e7e6af6c8965cc9a63a0660cb4ce1966557 (patch) | |
tree | b2086b4274e82a160f4ad68941419d50e480341b /hurd | |
parent | a5db6a5cae6a92d1675c013e5c8d972768721576 (diff) | |
download | glibc-13710e7e6af6c8965cc9a63a0660cb4ce1966557.zip glibc-13710e7e6af6c8965cc9a63a0660cb4ce1966557.tar.gz glibc-13710e7e6af6c8965cc9a63a0660cb4ce1966557.tar.bz2 |
hurd: Add support for AT_NO_AUTOMOUNT
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/hurd/fd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hurd/hurd/fd.h b/hurd/hurd/fd.h index 7165a8f..111f680 100644 --- a/hurd/hurd/fd.h +++ b/hurd/hurd/fd.h @@ -295,9 +295,15 @@ __hurd_at_flags (int *at_flags, int *flags) *flags |= (*at_flags & AT_SYMLINK_NOFOLLOW) ? O_NOLINK : 0; *at_flags &= ~AT_SYMLINK_NOFOLLOW; + if (*at_flags & AT_SYMLINK_FOLLOW) *flags &= ~O_NOLINK; *at_flags &= ~AT_SYMLINK_FOLLOW; + + if (*at_flags & AT_NO_AUTOMOUNT) + *flags |= O_NOTRANS; + *at_flags &= ~AT_NO_AUTOMOUNT; + if (*at_flags != 0) return EINVAL; |