From 13b8b78cf1082c14eb689edf64337a0af9cd0f7f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 22 Nov 2016 21:45:44 -0500 Subject: Don't pass AT_SYMLINK_NOFOLLOW to faccessat() It's an invalid flag for that call, and FreeBSD actually complains. --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eval.c b/eval.c index 9dcb854..575eebd 100644 --- a/eval.c +++ b/eval.c @@ -133,7 +133,7 @@ bool eval_false(const struct expr *expr, struct eval_state *state) { */ bool eval_access(const struct expr *expr, struct eval_state *state) { struct BFTW *ftwbuf = state->ftwbuf; - return faccessat(ftwbuf->at_fd, ftwbuf->at_path, expr->idata, ftwbuf->at_flags) == 0; + return faccessat(ftwbuf->at_fd, ftwbuf->at_path, expr->idata, 0) == 0; } /** -- cgit v1.2.3