We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22aa145 commit 6b888dbCopy full SHA for 6b888db
src/nnn.c
@@ -4732,7 +4732,7 @@ static bool xmktree(char *path, bool dir)
4732
return FALSE;
4733
}
4734
} else {
4735
- int fd = open(path, O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR); /* Forced create mode for files */
+ int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR); /* Forced create mode for files */
4736
4737
if (fd == -1 && errno != EEXIST) {
4738
DPRINTF_S("open!");
0 commit comments