diff options
| author | zousar <[email protected]> | 2026-03-17 23:44:19 -0600 |
|---|---|---|
| committer | zousar <[email protected]> | 2026-03-17 23:44:19 -0600 |
| commit | ed8ef5f2ded97d34f0d1bd4a45eca65a73e75eb5 (patch) | |
| tree | 3db6aa71914289a45b7c449fe735d044f8af893d /src/zenstore | |
| parent | Add tests for long path handling in project store (diff) | |
| download | zen-ed8ef5f2ded97d34f0d1bd4a45eca65a73e75eb5.tar.xz zen-ed8ef5f2ded97d34f0d1bd4a45eca65a73e75eb5.zip | |
Fix long path handling for project store
Diffstat (limited to 'src/zenstore')
| -rw-r--r-- | src/zenstore/projectstore.cpp | 6 |
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(); |