summaryrefslogtreecommitdiff
path: root/src/path-lookup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-01 20:43:52 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-01 20:43:52 +0200
commitc0115b1f4a09b709a2d062a4f2baf21203c808bd (patch)
treeec01de98b1c3b0a1b83af8bebc38a64c6b53a79f /src/path-lookup.c
parent0d624a785aed0423ee87f70d33de97df9662844b (diff)
systemd: include /etc/systemd/system/ and /lib/systemd/system/ in search path unconditionally
Diffstat (limited to 'src/path-lookup.c')
-rw-r--r--src/path-lookup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/path-lookup.c b/src/path-lookup.c
index 2590eb3abf..00003620a5 100644
--- a/src/path-lookup.c
+++ b/src/path-lookup.c
@@ -181,10 +181,12 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) {
return -ENOMEM;
} else
if (!(p->unit_path = strv_new(
- SYSTEM_CONFIG_UNIT_PATH, /* /etc/systemd/system/ */
+ SYSTEM_CONFIG_UNIT_PATH,
+ "/etc/systemd/system",
"/usr/local/share/systemd/system",
"/usr/share/systemd/system",
- SYSTEM_DATA_UNIT_PATH, /* /lib/systemd/system/ */
+ "/lib/systemd/system",
+ SYSTEM_DATA_UNIT_PATH,
NULL)))
return -ENOMEM;
}