mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
FileSystem: Canonicalize() after RealPath()
This commit is contained in:
parent
57f6bda59b
commit
e2d87f554b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue