]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/tmpfiles/tmpfiles.c
tmpfiles: also prefix C source paths with --root
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Jun 2019 12:46:04 +0000 (14:46 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Jun 2019 13:56:45 +0000 (15:56 +0200)
commit626f8d1672c57e0ebbe9331d98bd0cf841754bd6
treeeddec0cffb072c4a8df9dd2507db52cb959032c9
parent99058cd66ad30707d8eda32d6b256e5c05bbf46a
tmpfiles: also prefix C source paths with --root

This makes the code match the docs for --root ("all paths will be prefixed").
I think this is reasonable, because --root also works for config paths, and
any configuration inside --root must refer to paths under --root. If we allowed
C to go "outside of root" in this way, the effect of calling systemd-tmpfiles --root=...
and chrooting first and then calling systemd-tmpfiles second would be quite different.
I think it's better to keep things simple and consistent.

Fixes #12467.
src/tmpfiles/tmpfiles.c