[VFS/Posix] Fix Rename to properly handle guest paths

And ensure string_views aren't pointing at freed memory by saving
a reference to the result of path_to_utf8
This commit is contained in:
Herman S.
2026-01-10 23:16:32 +09:00
committed by Radosław Gliński
parent dce4d38c0a
commit 4b6ac45650
4 changed files with 27 additions and 16 deletions

View File

@@ -141,7 +141,8 @@ class Entry {
return nullptr;
}
virtual bool DeleteEntryInternal(Entry* entry) = 0;
virtual void RenameEntryInternal(const std::filesystem::path file_path) {}
virtual void RenameEntryInternal(
const std::vector<std::string_view>& path_parts) {}
xe::global_critical_region global_critical_region_;
Device* device_;