summaryrefslogtreecommitdiffstats
path: root/src/stat.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-05-29 15:01:08 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-05-29 15:03:25 -0400
commit976945aa0451cbf24f9579900234df54af50c573 (patch)
treec25fbe299eed4476157a07a6ccd00c29b724e2eb /src/stat.c
parent5e0b0675b014ba04dd969d9bd7be2d8ea83aa7c0 (diff)
downloadbfs-976945aa0451cbf24f9579900234df54af50c573.tar.xz
stat: Don't pass AT_NO_AUTOMOUNT on GNU Hurd before glibc 2.35
Link: https://buildd.debian.org/status/fetch.php?pkg=bfs&arch=hurd-i386&ver=2.6-1&stamp=1653764526 Link: https://sourceware.org/git/?p=glibc.git;a=commit;h=13710e7e6af6c8965cc9a63a0660cb4ce1966557
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stat.c b/src/stat.c
index ad57e65..b67ad0e 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -310,7 +310,7 @@ int bfs_stat(int at_fd, const char *at_path, enum bfs_stat_flags flags, struct b
at_flags |= AT_SYMLINK_NOFOLLOW;
}
-#ifdef AT_NO_AUTOMOUNT
+#if defined(AT_NO_AUTOMOUNT) && (!__GNU__ || BFS_GLIBC_PREREQ(2, 35))
at_flags |= AT_NO_AUTOMOUNT;
#endif