1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-13 03:23:59 +02:00

getScriptRoot return wrong path when use symlinks

This commit is contained in:
Dmitriy Novash
2022-06-09 19:18:34 +03:00
parent 61e911fa4f
commit ac67994b72

View File

@@ -1160,7 +1160,7 @@ f00bar;
} }
private function chDirIfNecessary($d) { private function chDirIfNecessary($d) {
if (substr(getcwd(), strlen($this->getScriptRoot())) != $this->getValidDir($d) && !empty($d)) if (substr(getcwd(), strlen($this->getRootDir())) != $this->getValidDir($d) && !empty($d))
chdir($d); chdir($d);
} }