public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Linux: add ST_NOSYMFOLLOW
@ 2023-10-02 13:57 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2023-10-02 13:57 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9e4e896f0f5a19a16c1a77567463b013a0f4952d

commit 9e4e896f0f5a19a16c1a77567463b013a0f4952d
Author: Kir Kolyshkin <kolyshkin@gmail.com>
Date:   Wed Sep 27 15:37:12 2023 -0700

    Linux: add ST_NOSYMFOLLOW
    
    Linux v5.10 added a mount option MS_NOSYMFOLLOW, which was added to
    glibc in commit 0ca21427d950755b.
    
    Add the corresponding statfs/statvfs flag bit, ST_NOSYMFOLLOW.
    
    Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
    Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

Diff:
---
 sysdeps/unix/sysv/linux/bits/statvfs.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sysdeps/unix/sysv/linux/bits/statvfs.h b/sysdeps/unix/sysv/linux/bits/statvfs.h
index cf98460e00..ed965f287f 100644
--- a/sysdeps/unix/sysv/linux/bits/statvfs.h
+++ b/sysdeps/unix/sysv/linux/bits/statvfs.h
@@ -105,7 +105,9 @@ enum
 # define ST_NOATIME	ST_NOATIME
   ST_NODIRATIME = 2048,		/* Do not update directory access times.  */
 # define ST_NODIRATIME	ST_NODIRATIME
-  ST_RELATIME = 4096		/* Update atime relative to mtime/ctime.  */
+  ST_RELATIME = 4096,		/* Update atime relative to mtime/ctime.  */
 # define ST_RELATIME	ST_RELATIME
+  ST_NOSYMFOLLOW = 8192		/* Do not follow symlinks.  */
+# define ST_NOSYMFOLLOW	ST_NOSYMFOLLOW
 #endif	/* Use GNU.  */
 };

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

only message in thread, other threads:[~2023-10-02 13:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-02 13:57 [glibc] Linux: add ST_NOSYMFOLLOW Adhemerval Zanella

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).