about summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-10 17:16:54 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-10 17:16:54 +0200
commit13710e7e6af6c8965cc9a63a0660cb4ce1966557 (patch)
treeb2086b4274e82a160f4ad68941419d50e480341b /hurd
parenta5db6a5cae6a92d1675c013e5c8d972768721576 (diff)
downloadglibc-13710e7e6af6c8965cc9a63a0660cb4ce1966557.tar.gz
glibc-13710e7e6af6c8965cc9a63a0660cb4ce1966557.tar.xz
glibc-13710e7e6af6c8965cc9a63a0660cb4ce1966557.zip
hurd: Add support for AT_NO_AUTOMOUNT
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd/fd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hurd/hurd/fd.h b/hurd/hurd/fd.h
index 7165a8f1fc..111f680670 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;