mirror of https://github.com/jarun/nnn.git
Fixed wrong mode while creating new file
This commit is contained in:
parent
5456ba4582
commit
3ea4dd62c0
|
@ -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!");
|
||||
|
|
Loading…
Reference in New Issue