FileSystem: Canonicalize() after RealPath()

This commit is contained in:
Stenzek 2024-04-11 14:44:29 +10:00
parent 57f6bda59b
commit e2d87f554b
No known key found for this signature in database

View file

@ -465,6 +465,10 @@ std::string Path::RealPath(const std::string_view& path)
} }
#endif #endif
// Get rid of any current/parent directory components before returning.
// This should be fine on Linux, since any symbolic links have already replaced the leading portion.
Path::Canonicalize(&realpath);
return realpath; return realpath;
} }