From 13710e7e6af6c8965cc9a63a0660cb4ce1966557 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 10 Aug 2021 17:16:54 +0200 Subject: [PATCH] hurd: Add support for AT_NO_AUTOMOUNT --- hurd/hurd/fd.h | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.7.4