fs-util: small tweak in chase_symlinks()
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Oct 2017 15:34:03 +0000 (17:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Oct 2017 15:54:56 +0000 (17:54 +0200)
commit8c4a8ea2ac2569eb9f376ad17f8baea3e836b8ba
tree2b7ed7a2f57a74ebcc7c783edc26800dda9f293a
parentf7c9f4a2a9bdb476b6b0e0e88291fa8d5e9fc0de
fs-util: small tweak in chase_symlinks()

If we follow an absolute symlink there's no need to prefix the path with
a "/", since by definition it already has one.

This helps suppressing double "/" in resolved paths containing absolute
symlinks.
src/basic/fs-util.c