mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-12 19:13:57 +02:00
getScriptRoot return wrong path when use symlinks
This commit is contained in:
@@ -1160,7 +1160,7 @@ f00bar;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user