fs-util: chase_symlinks(): remove unnecessary slash at the head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 30 Nov 2017 17:19:44 +0000 (02:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 2 Dec 2017 15:24:52 +0000 (00:24 +0900)
commita1904a46630694d65ba333418cf0c9590598f3e5
tree080210d6431fa03a8563a6fba5589ca7d7174fc9
parent1ff8b31d9b611b91b0b0d3ab9343c29df4ecde56
fs-util: chase_symlinks(): remove unnecessary slash at the head

Before this, chase_symlinks("/../../foo/bar",...) returns //foo/bar.
This removes the unnecessary slash at the head.
src/basic/fs-util.c