diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-02-03 11:02:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-03 11:02:28 +0100 |
commit | 5c1d991f4080497b0300943bd5b0f65e55cf550a (patch) | |
tree | b37e7e444b21ce622d07129fca2b361d585229e0 /src/core/load-dropin.c | |
parent | ce283b8887455408d5e3178fb6651eeb535d632f (diff) | |
parent | 17e78d1825bcc6cb9af25c9b1598ef32c82da6af (diff) |
Merge pull request #5213 from keszybz/systemctl-root-cat
Two fixes to path lookup when --root is used
Diffstat (limited to 'src/core/load-dropin.c')
-rw-r--r-- | src/core/load-dropin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/load-dropin.c b/src/core/load-dropin.c index f83fa09301..fc07151d37 100644 --- a/src/core/load-dropin.c +++ b/src/core/load-dropin.c @@ -57,9 +57,11 @@ int unit_load_dropin(Unit *u) { char **p; STRV_FOREACH(p, u->manager->lookup_paths.search_path) { - unit_file_process_dir(u->manager->unit_path_cache, *p, t, ".wants", UNIT_WANTS, + unit_file_process_dir(NULL, u->manager->unit_path_cache, *p, t, + ".wants", UNIT_WANTS, add_dependency_consumer, u, NULL); - unit_file_process_dir(u->manager->unit_path_cache, *p, t, ".requires", UNIT_REQUIRES, + unit_file_process_dir(NULL, u->manager->unit_path_cache, *p, t, + ".requires", UNIT_REQUIRES, add_dependency_consumer, u, NULL); } } |