From 59677e140ed064813660641d8e841e0fcc4af0ea Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 14 Jun 2023 16:53:33 +0200 Subject: Allow non-upwards symlinks with local API --- src/buildtool/execution_api/local/local_api.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/local/local_api.hpp') diff --git a/src/buildtool/execution_api/local/local_api.hpp b/src/buildtool/execution_api/local/local_api.hpp index 87296414..64e89203 100644 --- a/src/buildtool/execution_api/local/local_api.hpp +++ b/src/buildtool/execution_api/local/local_api.hpp @@ -206,8 +206,9 @@ class LocalApi final : public IExecutionApi { return false; } - // Read artifact content. - auto const& content = FileSystemManager::ReadFile(*path); + // Read artifact content (file or symlink). + auto const& content = + FileSystemManager::ReadContentAtPath(*path, info.type); if (not content) { return false; } -- cgit v1.2.3