summaryrefslogtreecommitdiff
path: root/src/shared/dropin.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-02 12:17:20 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-02 12:17:20 -0500
commit17e78d1825bcc6cb9af25c9b1598ef32c82da6af (patch)
treec9afdf3f2dd2e2899975afed2a9684ad440ecfa9 /src/shared/dropin.h
parent3ef21542b20bc62760a423aebeebb4c9e014131c (diff)
downloadsystemd-17e78d1825bcc6cb9af25c9b1598ef32c82da6af.tar.gz
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.
Diffstat (limited to 'src/shared/dropin.h')
-rw-r--r--src/shared/dropin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/dropin.h b/src/shared/dropin.h
index c1936f397b..761b250886 100644
--- a/src/shared/dropin.h
+++ b/src/shared/dropin.h
@@ -45,6 +45,7 @@ typedef int (*dependency_consumer_t)(UnitDependency dependency,
void *arg);
int unit_file_process_dir(
+ const char *original_root,
Set * unit_path_cache,
const char *unit_path,
const char *name,
@@ -55,6 +56,7 @@ int unit_file_process_dir(
char ***strv);
int unit_file_find_dropin_paths(
+ const char *original_root,
char **lookup_path,
Set *unit_path_cache,
Set *names,