FileSystem: Canonicalize() after RealPath()

pull/3164/head
Stenzek 11 months ago
parent 57f6bda59b
commit e2d87f554b
No known key found for this signature in database

@ -465,6 +465,10 @@ std::string Path::RealPath(const std::string_view& path)
}
#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;
}

Loading…
Cancel
Save