aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/projectstore.cpp
diff options
context:
space:
mode:
authorzousar <[email protected]>2026-03-17 23:44:19 -0600
committerzousar <[email protected]>2026-03-17 23:44:19 -0600
commited8ef5f2ded97d34f0d1bd4a45eca65a73e75eb5 (patch)
tree3db6aa71914289a45b7c449fe735d044f8af893d /src/zenstore/projectstore.cpp
parentAdd tests for long path handling in project store (diff)
downloadzen-ed8ef5f2ded97d34f0d1bd4a45eca65a73e75eb5.tar.xz
zen-ed8ef5f2ded97d34f0d1bd4a45eca65a73e75eb5.zip
Fix long path handling for project store
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();