mirror of https://github.com/jarun/nnn.git
Compare commits
2 Commits
22aa1455a6
...
5853ac8e48
Author | SHA1 | Date |
---|---|---|
Arun | 5853ac8e48 | |
Martin Ziemer | 28d993a8e8 |
|
@ -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 New Issue