GNU bug report logs - #54286
[PATCH] Fix ls -l triggering automounts.

Previous Next

Package: coreutils;

Reported by: Rohan Sable <rsable <at> redhat.com>

Date: Mon, 7 Mar 2022 07:57:02 UTC

Severity: normal

Tags: patch

Full log


Message #11 received at 54286 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: bug-gnulib <at> gnu.org
Cc: 54286 <at> debbugs.gnu.org, Pádraig Brady <P <at> draigBrady.com>
Subject: [PATCH] fcntl-h: add AT_NO_AUTOMOUNT
Date: Mon,  7 Mar 2022 14:08:51 +0000
* lib/fcntl.in.h: Define AT_NO_AUTOMOUNT to 0 where not defined.
This is available on Linux since 2.6.38.
---
 ChangeLog      | 6 ++++++
 lib/fcntl.in.h | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index c5a80fd3f3..e3f0ed216c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-03-07  Pádraig Brady  <P <at> draigBrady.com>
+
+	fcntl-h: add AT_NO_AUTOMOUNT
+	* lib/fcntl.in.h: Define AT_NO_AUTOMOUNT to 0 where not defined.
+	This is available on Linux since 2.6.38.
+
 2022-03-01  Paul Eggert  <eggert <at> cs.ucla.edu>
 
 	Create lib/Makefile.am after gnulib-comp.m4
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index 3e0c302af3..9270ced897 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -435,6 +435,10 @@ _GL_WARN_ON_USE (openat, "openat is not portable - "
 # define AT_EACCESS 4
 #endif
 
+/* Ignore this flag if not supported.  */
+#ifndef AT_NO_AUTOMOUNT
+# define AT_NO_AUTOMOUNT 0
+#endif
 
 #endif /* _ <at> GUARD_PREFIX <at> _FCNTL_H */
 #endif /* _ <at> GUARD_PREFIX <at> _FCNTL_H */
-- 
2.26.2





This bug report was last modified 3 years and 105 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.