Any +x bit is acceptable
Former-commit-id: fc58516cca72fc9db97bc4c388f9fa692d115df4
This commit is contained in:
parent
08d067fbcf
commit
b2aa7b0683
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user