libifupdown: execute: fix behavior of lif_file_is_executable()

This commit is contained in:
Ariadne Conill 2020-07-25 02:49:44 -06:00
parent fa0a0d7f79
commit 559bf2d1a4

View file

@ -71,7 +71,7 @@ lif_file_is_executable(const char *path)
if (!S_ISREG(st.st_mode)) if (!S_ISREG(st.st_mode))
return false; return false;
return access(path, X_OK); return !access(path, X_OK);
} }
bool bool