fs-util: refuse taking a relative path to chase if "root" is specified and CHASE_PREF...
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jan 2018 11:00:40 +0000 (12:00 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Jan 2018 11:04:15 +0000 (12:04 +0100)
commit382a5078a6d479c6d3f28f1bc3ef3340311fd8f8
treedfa64236c0e5e69112d6f83461995681d291ab06
parenta49424af6a430bb2e83e606ee94c2549e1df0e1c
fs-util: refuse taking a relative path to chase if "root" is specified and CHASE_PREFIX_ROOT is set

If we take a relative path we first make it absolute, based on the
current working directory. But if CHASE_PREFIX_ROOT is passe we are
supposed to make the path absolute taking the specified root path into
account, but that makes no sense if we talk about the current working
directory as that is relative to the host's root in any case. Hence,
let's refuse this politely.
src/basic/fs-util.c