]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: also use chase_symlinks for dropins 5213/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 2 Feb 2017 17:17:20 +0000 (12:17 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 2 Feb 2017 17:17:20 +0000 (12:17 -0500)
commit17e78d1825bcc6cb9af25c9b1598ef32c82da6af
treec9afdf3f2dd2e2899975afed2a9684ad440ecfa9
parent3ef21542b20bc62760a423aebeebb4c9e014131c
systemctl: also use chase_symlinks for dropins

The general rule is:
- code in shared/ should take an "original_root" argument (possibly NULL)
  and pass it along down to chase_symlinks
- code in core/ should always use specify original_root==NULL, since we
  don't support running the manager from non-root directory
- code in systemctl and other tools should pass arg_root.

For any code that is called from tools which support --root, chase_symlinks
must be used to look up paths.
src/core/load-dropin.c
src/core/load-dropin.h
src/shared/dropin.c
src/shared/dropin.h
src/systemctl/systemctl.c