From 2b8114db8682c0a76858c00c8fe3f80d3a9dba3a Mon Sep 17 00:00:00 2001 From: panzone <150828896+panzone91@users.noreply.github.com> Date: Sun, 26 Jan 2025 18:28:55 +0100 Subject: [PATCH] handle relative paths --- src/core/file_sys/fs.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/file_sys/fs.cpp b/src/core/file_sys/fs.cpp index ec940503f..1702ad802 100644 --- a/src/core/file_sys/fs.cpp +++ b/src/core/file_sys/fs.cpp @@ -50,6 +50,11 @@ std::filesystem::path MntPoints::GetHostPath(std::string_view path, bool* is_rea pos = corrected_path.find("//", pos + 1); } + // Path is relative? + if(corrected_path.at(0) != '/') { + corrected_path = "/app0/" + corrected_path; + } + const MntPair* mount = GetMount(corrected_path); if (!mount) { return "";