forked from lix-project/lix
Merge pull request #4831 from matthewbauer/fix-extra-slash-in-canon-path
Fix extra slash in canonPath output
This commit is contained in:
commit
7234cf39be
|
@ -155,6 +155,9 @@ Path canonPath(const Path & path, bool resolveSymlinks)
|
||||||
s.clear(); /* restart for symlinks pointing to absolute path */
|
s.clear(); /* restart for symlinks pointing to absolute path */
|
||||||
} else {
|
} else {
|
||||||
s = dirOf(s);
|
s = dirOf(s);
|
||||||
|
if (s == "/") { // we don’t want trailing slashes here, which dirOf only produces if s = /
|
||||||
|
s.clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue