Any +x bit is acceptable

Former-commit-id: 156e596f9c
This commit is contained in:
John Sully committed 2019-07-19 15:26:17 -04:00
1 parent 8d526d9354
commit f094402c33
1 file changed
+1 -1
+1 -1
View File
@@ -5231,7 +5231,7 @@ int moduleLoad(const char *path, void **module_argv, int module_argc) {
struct stat st;
if (stat(path, &st) == 0)
{ // this check is best effort
if (!(st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) {
if (!(st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) {
serverLog(LL_WARNING, "Module %s failed to load: It does not have execute permissions.", path);
return C_ERR;
}