summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bftw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bftw.c b/bftw.c
index 5a38066..fd48d4f 100644
--- a/bftw.c
+++ b/bftw.c
@@ -385,7 +385,7 @@ static int bftw_file_openat(struct bftw_cache *cache, struct bftw_file *file, co
if (fd < 0 && errno == EMFILE) {
if (bftw_cache_shrink(cache, base) == 0) {
- fd = openat(base->fd, at_path, flags);
+ fd = openat(at_fd, at_path, flags);
}
}