Fixed wrong mode while creating new file

This commit is contained in:
Antonin Brauer 2024-03-20 17:35:37 +01:00
parent 5456ba4582
commit 3ea4dd62c0
1 changed files with 1 additions and 1 deletions

View File

@ -4732,7 +4732,7 @@ next:
return FALSE;
}
} else {
int fd = open(path, O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR); /* Forced create mode for files */
int fd = open(path, O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR | S_IRGRP | S_IWGRP | S_IROTH); /* Forced create mode for files */
if (fd == -1 && errno != EEXIST) {
DPRINTF_S("open!");