filesystem: keep unmapped guest paths out of the host namespace

This commit is contained in:
nmzik
2026-09-28 18:39:03 +04:00
parent 05f92b6422
commit a107d1e333
4 changed files with 56 additions and 6 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ struct sys_file_t {
#endif
static std::filesystem::path get_internal_name(const std::filesystem::path& name) {
return name.is_absolute() ? name : (std::filesystem::path(".") / name);
return name.empty() || name.is_absolute() ? name : (std::filesystem::path(".") / name);
}
// Pass access-pattern hints to the host.