Set read and execute permissions for all paths

If a path requires read or execute permission, it is granted to all. This
keeps path parameters in line with other directories that MaxScale
creates.
This commit is contained in:
Markus Mäkelä
2018-05-22 13:25:41 +03:00
parent 21b77ce4d3
commit 16d2ff9564
3 changed files with 6 additions and 2 deletions

View File

@ -3933,12 +3933,12 @@ static bool check_path_parameter(const MXS_MODULE_PARAM *params, const char *val
}
if (params->options & MXS_MODULE_OPT_PATH_R_OK)
{
mask |= S_IRUSR;
mask |= S_IRUSR | S_IRGRP | S_IROTH;
mode |= R_OK;
}
if (params->options & MXS_MODULE_OPT_PATH_X_OK)
{
mask |= S_IXUSR;
mask |= S_IXUSR | S_IXGRP | S_IXOTH;
}
if (access(buf, mode) == 0)