From f094402c337e9e4fa8b517a33ce4f4ee4199bfbf Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 19 Jul 2019 15:26:17 -0400 Subject: [PATCH] Any +x bit is acceptable Former-commit-id: 156e596f9c7a922bc3361652b74b78bbeab0f2dc --- src/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module.cpp b/src/module.cpp index b86b29d13..ee31cf7a5 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_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; }