Fix relative symlink resolution, again
/foo/a -> b means a must get removed from the result.
This commit is contained in:
parent
c089ff4a3a
commit
2e15c4c71d
@ -53,6 +53,7 @@ while [ -n "$left" ]; do
|
|||||||
*)
|
*)
|
||||||
# Relative symlink: Keep $result, its the symlink base
|
# Relative symlink: Keep $result, its the symlink base
|
||||||
left="${target}/${left}"
|
left="${target}/${left}"
|
||||||
|
result="${result%/*}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user