MXS-2119: Fix file permissions
The admin files are now created with 640 permissions and automatically created directories now properly set the permissions for the group as well. All files and directories created by avrorouter and binlogrouter also now correctly limit the read and write permissions only to the owner and the group.
This commit is contained in:
@ -174,7 +174,7 @@ int main(int argc, char **argv)
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int fd = open(path, binlog_file.fix ? O_RDWR : O_RDONLY, 0666);
|
||||
int fd = open(path, binlog_file.fix ? O_RDWR : O_RDONLY, 0660);
|
||||
if (fd == -1)
|
||||
{
|
||||
printf("ERROR: Failed to open binlog file %s: %s.\n",
|
||||
|
||||
Reference in New Issue
Block a user