summaryrefslogtreecommitdiffstats
path: root/src/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stat.c b/src/stat.c
index 36222cb..2f2743b 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -253,9 +253,7 @@ static int bfs_stat_explicit(int at_fd, const char *at_path, int at_flags, struc
if (load(&has_statx, relaxed)) {
int ret = bfs_statx_impl(at_fd, at_path, at_flags, buf);
- // EPERM is commonly returned in a seccomp() sandbox that does
- // not allow statx()
- if (ret != 0 && (errno == ENOSYS || errno == EPERM)) {
+ if (ret != 0 && errno_is_like(ENOSYS)) {
store(&has_statx, false, relaxed);
} else {
return ret;