diff options
Diffstat (limited to 'zenstore/basicfile.cpp')
| -rw-r--r-- | zenstore/basicfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zenstore/basicfile.cpp b/zenstore/basicfile.cpp index 0d410c745..042f0aa43 100644 --- a/zenstore/basicfile.cpp +++ b/zenstore/basicfile.cpp @@ -113,7 +113,7 @@ BasicFile::Open(const std::filesystem::path& FileName, EMode Mode, std::error_co Ec = zen::MakeErrorCodeFromLastError(); return; } - if (IsCreate) + if (Mode != EMode::kRead) { fchmod(Fd, 0666); } |