diff options
| author | Martin Ridgers <[email protected]> | 2021-12-08 16:07:39 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-12-08 16:07:39 +0100 |
| commit | e415ca8274e68ee6ba44278aa14f6492ae20e4d5 (patch) | |
| tree | 4ba265db8a9299ccca2382d8c53e2a5d1573a650 /zencore/filesystem.cpp | |
| parent | Fixed unused return value warnings from POSIX/Linux headers (diff) | |
| download | zen-e415ca8274e68ee6ba44278aa14f6492ae20e4d5.tar.xz zen-e415ca8274e68ee6ba44278aa14f6492ae20e4d5.zip | |
Added a missing file mode for a open() that creates a file
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)); |