mirror of
https://github.com/Snapchat/KeyDB.git
synced 2026-11-13 12:22:10 -05:00
1 parent
8d526d9354
commit
f094402c33
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user