Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information