diff options
Diffstat (limited to 'zencore/filesystem.cpp')
| -rw-r--r-- | zencore/filesystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index a4c81f6cc..f594076c3 100644 --- a/zencore/filesystem.cpp +++ b/zencore/filesystem.cpp @@ -546,11 +546,11 @@ WriteFile(std::filesystem::path Path, const IoBuffer* const* Data, size_t Buffer #else int OpenFlags = O_WRONLY|O_CREAT|O_TRUNC; - int Fd = open(Path.c_str(), OpenFlags); + int Fd = open(Path.c_str(), OpenFlags, 0666); if (Fd < 0) { zen::CreateDirectories(Path.parent_path()); - Fd = open(Path.c_str(), OpenFlags); + Fd = open(Path.c_str(), OpenFlags, 0666); } if (Fd < 0) |