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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user