Commit 28d993a
Martin Ziemer
Fix file creation on OpenBSD
On OpenBSD at least one of O_RDONLY, O_WRONLY or O_RDWR is needed to open a file.
In creating a new file none of those is set, which leads to an EINVAL error ("invalid argument").
Since the new file is only created and never read, I chose to use O_WRONLY.1 parent 22aa145 commit 28d993a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4732 | 4732 | | |
4733 | 4733 | | |
4734 | 4734 | | |
4735 | | - | |
| 4735 | + | |
4736 | 4736 | | |
4737 | 4737 | | |
4738 | 4738 | | |
| |||
0 commit comments