emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54287: closed ([PATCH] Fix stat command triggering automount.)


From: GNU bug Tracking System
Subject: bug#54287: closed ([PATCH] Fix stat command triggering automount.)
Date: Mon, 07 Mar 2022 14:41:02 +0000

Your message dated Mon, 7 Mar 2022 14:40:25 +0000
with message-id <b372345c-6a97-7cb7-d93f-ee427f725c4a@draigBrady.com>
and subject line Re: bug#54287: [PATCH] Fix stat command triggering automount.
has caused the debbugs.gnu.org bug report #54287,
regarding [PATCH] Fix stat command triggering automount.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
54287: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=54287
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Fix stat command triggering automount. Date: Mon, 7 Mar 2022 13:25:26 +0530
Stat command now internally uses statx syscall.
AT_NO_AUTOMOUNT flag was not set when statx was called.
This triggered the mount of autofs shares.
Added AT_NO_AUTOMOUNT flag to fix this behavior.

Signed-off-by: Rohan Sable <rsable@redhat.com>
---
 src/stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stat.c b/src/stat.c
index edafd0285..d173d2f17 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -1386,7 +1386,7 @@ do_stat (char const *filename, char const *format, char 
const *format2)
     }
   else if (!follow_links)
     {
-      flags = AT_SYMLINK_NOFOLLOW;
+      flags = AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT;
     }
 
   if (dont_sync)
-- 
2.34.1




--- End Message ---
--- Begin Message --- Subject: Re: bug#54287: [PATCH] Fix stat command triggering automount. Date: Mon, 7 Mar 2022 14:40:25 +0000 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Thunderbird/97.0
New stat patch attached to apply AT_NO_AUTOMOUNT
unless --cached=never is specified.

See https://bugs.gnu.org/54286 for more general discussion.
Marking this as done.

cheers,
Pádraig

Attachment: stat-no-automount.patch
Description: Text Data


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]