diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-05-12 14:52:52 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-05-12 15:54:25 -0400 |
commit | 956895430edd4a4ea2963798c3485ab227ea525c (patch) | |
tree | 27ad3d9d39c616854de0c3eef29ab0ada9d9fd0d /src | |
parent | 2c67e0676ed27055cb622a9da9508defbafc2488 (diff) | |
download | bfs-956895430edd4a4ea2963798c3485ab227ea525c.tar.xz |
stat: Pass AT_NO_AUTOMOUNT if possible
Previously bfs would trigger automounts even when it didn't descend into
the mount directory, while GNU find does not.
Diffstat (limited to 'src')
-rw-r--r-- | src/stat.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -310,6 +310,10 @@ 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 + at_flags |= AT_NO_AUTOMOUNT; +#endif + int x_flags = 0; #ifdef AT_STATX_DONT_SYNC if (flags & BFS_STAT_NOSYNC) { |