]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Nov 2016 23:25:51 +0000 (00:25 +0100)
commitfc4b68e557307b04d42bcef3181fef00b7558177
treea519f35aaa0bf72b04fbdc64391e120e78ae5583
parent4da92e58570a8a864eb031ae372fc4a611e7faf1
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