chiark / gitweb /
fs-util: small tweak in chase_symlinks()
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Oct 2017 15:34:03 +0000 (17:34 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 4 Oct 2017 15:34:03 +0000 (17:34 +0200)
commitbe1d8c84ebe7d240e06df26176ac98d91b37fd79
treeff3d864be15cc2f92f42f219c0772d4572f0d03c
parentb1de39eefe5eae5c9ade8af6bf50acb66c0ba950
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