From: Kir Kolyshkin Date: Wed, 27 Sep 2023 22:37:12 +0000 (-0700) Subject: Linux: add ST_NOSYMFOLLOW X-Git-Tag: glibc-2.39~387 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e4e896f0f5a19a16c1a77567463b013a0f4952d;p=thirdparty%2Fglibc.git 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 Reviewed-by: Adhemerval Zanella --- diff --git a/sysdeps/unix/sysv/linux/bits/statvfs.h b/sysdeps/unix/sysv/linux/bits/statvfs.h index cf98460e00e..ed965f287fe 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. */ };