From b2aa7b0683d0a7574f304174458ec94473b87d5e Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 19 Jul 2019 01:42:05 -0400 Subject: [PATCH] Any +x bit is acceptable Former-commit-id: fc58516cca72fc9db97bc4c388f9fa692d115df4 --- src/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module.cpp b/src/module.cpp index d71301cd6..b86b29d13 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -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_IEXEC)) { + 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; }