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; }