diff options
| author | Zousar Shaker <[email protected]> | 2026-03-18 11:03:52 -0600 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-18 11:03:52 -0600 |
| commit | 99f1167e2e4937bf581d28b70b45815955636fc4 (patch) | |
| tree | df163fcfb67d95470bef1a169e7e7d6882be900f /src/zenstore/projectstore.cpp | |
| parent | add kind positional argument to xmake sln (#857) (diff) | |
| parent | Addressing review feedback (diff) | |
| download | zen-99f1167e2e4937bf581d28b70b45815955636fc4.tar.xz zen-99f1167e2e4937bf581d28b70b45815955636fc4.zip | |
Merge pull request #855 from ue-foundation/zs/long-filename-improvement
Zs/long filename improvement
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) { |