aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/projectstore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore/projectstore.cpp')
-rw-r--r--src/zenstore/projectstore.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zenstore/projectstore.cpp b/src/zenstore/projectstore.cpp
index 03086b473..54fd2b789 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);
@@ -2519,6 +2520,7 @@ ProjectStore::Oplog::FindChunk(const std::filesystem::path& ProjectRootDir, cons
if (auto FileIt = m_FileMap.find(ChunkId); FileIt != m_FileMap.end())
{
std::filesystem::path FilePath = ProjectRootDir / FileIt->second.ServerPath;
+ MakeSafeAbsolutePathInPlace(FilePath);
OplogLock.ReleaseNow();