public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: Add support for AT_NO_AUTOMOUNT
@ 2021-08-10 15:17 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2021-08-10 15:17 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=13710e7e6af6c8965cc9a63a0660cb4ce1966557

commit 13710e7e6af6c8965cc9a63a0660cb4ce1966557
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Tue Aug 10 17:16:54 2021 +0200

    hurd: Add support for AT_NO_AUTOMOUNT

Diff:
---
 hurd/hurd/fd.h | 6 ++++++
 1 file changed, 6 insertions(+)

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-10 15:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-10 15:17 [glibc] hurd: Add support for AT_NO_AUTOMOUNT Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).