diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-16 16:44:46 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-17 12:33:39 -0400 |
commit | 214a1f9215d33d4b9f34a3d258da1e1f4e3eb01f (patch) | |
tree | f287c493fb8233df695a2e7f7bb1ee06347f2506 /src/eval.c | |
parent | ddb476bcd224f8c262d24981af48da2fc649f43d (diff) | |
download | bfs-214a1f9215d33d4b9f34a3d258da1e1f4e3eb01f.tar.xz |
dir: Add a flags parameter to bfs_opendir()
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -427,7 +427,7 @@ bool eval_empty(const struct bfs_expr *expr, struct bfs_eval *state) { return ret; } - if (bfs_opendir(dir, ftwbuf->at_fd, ftwbuf->at_path) != 0) { + if (bfs_opendir(dir, ftwbuf->at_fd, ftwbuf->at_path, 0) != 0) { eval_report_error(state); return ret; } @@ -1517,8 +1517,8 @@ static int infer_fdlimit(const struct bfs_ctx *ctx, int limit) { goto done; } - if (bfs_opendir(dir, AT_FDCWD, "/proc/self/fd") != 0 - && bfs_opendir(dir, AT_FDCWD, "/dev/fd") != 0) { + if (bfs_opendir(dir, AT_FDCWD, "/proc/self/fd", 0) != 0 + && bfs_opendir(dir, AT_FDCWD, "/dev/fd", 0) != 0) { goto done; } |