handle relative paths

This commit is contained in:
panzone 2025-01-26 18:28:55 +01:00
parent 46b5437fdf
commit 2b8114db86

View File

@ -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 "";