libifupdown: execute: fix behavior of lif_file_is_executable()
This commit is contained in:
parent
fa0a0d7f79
commit
559bf2d1a4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue