mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Merge pull request #1864 from horrad/master
Fix file creation on OpenBSD
This commit is contained in:
commit
5853ac8e48
|
@ -4732,7 +4732,7 @@ next:
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
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 */
|
||||||
|
|
||||||
if (fd == -1 && errno != EEXIST) {
|
if (fd == -1 && errno != EEXIST) {
|
||||||
DPRINTF_S("open!");
|
DPRINTF_S("open!");
|
||||||
|
|
Loading…
Reference in a new issue