Skip to content

Commit 6b888db

Browse files
author
Martin Ziemer
committed
Fix file creation on OpenBSD
1 parent 22aa145 commit 6b888db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nnn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4732,7 +4732,7 @@ static bool xmktree(char *path, bool dir)
47324732
return FALSE;
47334733
}
47344734
} else {
4735-
int fd = open(path, O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR); /* Forced create mode for files */
4735+
int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR); /* Forced create mode for files */
47364736

47374737
if (fd == -1 && errno != EEXIST) {
47384738
DPRINTF_S("open!");

0 commit comments

Comments
 (0)