From ed8ef5f2ded97d34f0d1bd4a45eca65a73e75eb5 Mon Sep 17 00:00:00 2001 From: zousar Date: Tue, 17 Mar 2026 23:44:19 -0600 Subject: Fix long path handling for project store --- src/zenstore/projectstore.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/zenstore/projectstore.cpp') 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(); -- cgit v1.2.3