diff options
Diffstat (limited to 'src/zenstore/projectstore.cpp')
| -rw-r--r-- | src/zenstore/projectstore.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/zenstore/projectstore.cpp b/src/zenstore/projectstore.cpp index 03086b473..56d0f7d2b 100644 --- a/src/zenstore/projectstore.cpp +++ b/src/zenstore/projectstore.cpp @@ -2403,8 +2403,9 @@ ProjectStore::Oplog::IterateChunks(const std::filesystem::path& P { return; } - size_t FileChunkIndex = FileChunkIndexes[ChunkIndex]; - const std::filesystem::path& FilePath = FileChunkPaths[ChunkIndex]; + size_t FileChunkIndex = FileChunkIndexes[ChunkIndex]; + std::filesystem::path FilePath = FileChunkPaths[ChunkIndex]; + MakeSafeAbsolutePathInPlace(FilePath); try { IoBuffer Payload = IoBufferBuilder::MakeFromFile(FilePath); @@ -2522,6 +2523,8 @@ ProjectStore::Oplog::FindChunk(const std::filesystem::path& ProjectRootDir, cons OplogLock.ReleaseNow(); + MakeSafeAbsolutePathInPlace(FilePath); + IoBuffer Result = IoBufferBuilder::MakeFromFile(FilePath); if (!Result) { |