chiark / gitweb /
util: add generic calls for prefixing a root directory to a path
authorLennart Poettering <lennart@poettering.net>
Wed, 13 May 2015 15:42:10 +0000 (17:42 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 08:56:08 +0000 (09:56 +0100)
commit6785155e4ec3e478918481cd6321d96ec30c83b7
treea0e7d6ed157706967a5842eb5de1834ebe9567c5
parentf0b159f2e7b4ac8a75997834d240459f5436d36e
util: add generic calls for prefixing a root directory to a path

So far a number of utilities implemented their own calls for this, unify
them in prefix_root() and prefix_roota(). The former uses heap memory,
the latter allocates from the stack via alloca().

Port over most users of a --root= logic.
src/shared/conf-files.c
src/shared/path-util.c
src/shared/path-util.h