summaryrefslogtreecommitdiffstats
path: root/src/core/load-dropin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/load-dropin.h')
-rw-r--r--src/core/load-dropin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/load-dropin.h b/src/core/load-dropin.h
index f0b87d3e9f..141bc7dd0f 100644
--- a/src/core/load-dropin.h
+++ b/src/core/load-dropin.h
@@ -6,12 +6,12 @@
/* Read service data supplementary drop-in directories */
-static inline int unit_find_dropin_paths(Unit *u, char ***paths) {
+static inline int unit_find_dropin_paths(Unit *u, bool use_unit_path_cache, char ***paths) {
assert(u);
return unit_file_find_dropin_paths(NULL,
u->manager->lookup_paths.search_path,
- u->manager->unit_path_cache,
+ use_unit_path_cache ? u->manager->unit_path_cache : NULL,
".d", ".conf",
u->id, u->aliases,
paths);