From ecc7b3249050c17e089d6a812472d2923d572bcc Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 20 Sep 2017 18:46:55 -0400 Subject: util: Wrap faccessat() to fix some portability issues --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 08d2643..8c7af85 100644 --- a/eval.c +++ b/eval.c @@ -131,7 +131,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, AT_EACCESS) == 0; + return xfaccessat(ftwbuf->at_fd, ftwbuf->at_path, expr->idata) == 0; } /** -- cgit v1.2.3