]> git.ipfire.org Git - thirdparty/systemd.git/commit
install: fix root prefix handling
authorLennart Poettering <lennart@poettering.net>
Mon, 7 Mar 2016 16:40:07 +0000 (17:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:31 +0000 (13:43 +0200)
commit401017e04d3d1ac41fabb939278984acc8298ddb
tree80aeb83a2a2de09a351f67d2eb24251cba5fba3e
parenta7527131bbae88b44469a44f9d97325d70762981
install: fix root prefix handling

Previously, we'd execute some operations with the root prefix applied, while
others without (which was a bug). Clean this up: all paths are now prefixed
properly with the root path, and we strip it off when necessary.

(Of course, an alternative option would be to strictly pass around paths
without the prefix prepended and only prepend it right before hitting the disk,
however, I am came to the conclusion this would result in more code.)
src/shared/install.c