chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:10 +0000 (07:50 +0200)
commit6bfd45823cd36620dabd4f6c979d784041a20dec
treed38ac14d43571539c276392607d7e3c04601e3ea
parentd24d415d801b89ff2804e82c62209436fc3a3a25
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