diff options
| author | Dan Engelbrecht <[email protected]> | 2022-04-01 15:20:57 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-04-01 15:20:57 +0200 |
| commit | c0dc629f367e6bae0eb81ff2febd0ff467f1cd27 (patch) | |
| tree | 2f5cd3f928f5835b7a1b03f48d3c4de975544381 /zenstore/basicfile.cpp | |
| parent | Make gc reserve a global resource (diff) | |
| download | zen-c0dc629f367e6bae0eb81ff2febd0ff467f1cd27.tar.xz zen-c0dc629f367e6bae0eb81ff2febd0ff467f1cd27.zip | |
fix BasicFile::Open on Linux
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); } |