diff options
Diffstat (limited to 'zencore/filesystem.cpp')
| -rw-r--r-- | zencore/filesystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index 4d37a7f20..0d378d56c 100644 --- a/zencore/filesystem.cpp +++ b/zencore/filesystem.cpp @@ -488,7 +488,7 @@ CopyFile(std::filesystem::path FromPath, std::filesystem::path ToPath, const Cop ScopedFd $From = { FromFd }; // To file - int ToFd = open(ToPath.c_str(), O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC); + int ToFd = open(ToPath.c_str(), O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0644); if (ToFd < 0) { ThrowLastError("failed to create file {}"_format(ToPath)); |