From 559bf2d1a446459c14dc5addb9f6b04f20dae732 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 25 Jul 2020 02:49:44 -0600 Subject: [PATCH] libifupdown: execute: fix behavior of lif_file_is_executable() --- libifupdown/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libifupdown/execute.c b/libifupdown/execute.c index 32607e3..b3781dc 100644 --- a/libifupdown/execute.c +++ b/libifupdown/execute.c @@ -71,7 +71,7 @@ lif_file_is_executable(const char *path) if (!S_ISREG(st.st_mode)) return false; - return access(path, X_OK); + return !access(path, X_OK); } bool