aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-02-21 12:48:14 +0100
committerMartin Ridgers <[email protected]>2022-02-21 12:48:14 +0100
commit0fc7011faaca56a0d30347a496bc99ec7a83c5f4 (patch)
treec835798bd9f6623b3b9de179bb09def82d77f3ee /zencore/filesystem.cpp
parentMarked a few file descriptors to be closed on execute (POSIX) (diff)
downloadzen-0fc7011faaca56a0d30347a496bc99ec7a83c5f4.tar.xz
zen-0fc7011faaca56a0d30347a496bc99ec7a83c5f4.zip
Allow all users and groups to read/write files (POSIX)
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index ab606301c..f6ea4824a 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -502,7 +502,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, 0644);
+ int ToFd = open(ToPath.c_str(), O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, 0666);
if (ToFd < 0)
{
ThrowLastError(fmt::format("failed to create file {}", ToPath));