chiark / gitweb /
fs-util: add chase_symlinks_prefix() and extend comments
authorLennart Poettering <lennart@poettering.net>
Fri, 25 Nov 2016 17:59:39 +0000 (18:59 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
commit5de3db0016e2a97b779abe27be5e7326ec1b78aa
tree9c59c33ff536b589e4abd8e3e84feb2712fbc399
parented280b715fc427a925d418adc8ec0cfaa395f526
fs-util: add chase_symlinks_prefix() and extend comments

chase_symlinks() currently expects a fully qualified, absolute path, relative
to the host's root as first argument. Which is useful in many ways, and similar
to the paths unlink(), rename(), open(), … expect. Sometimes it's however
useful to first prefix the specified path with the specified root directory.
Add a new call chase_symlinks_prefix() for this, that is a simple wrapper.
src/basic/fs-util.c
src/basic/fs-util.h