From c0115b1f4a09b709a2d062a4f2baf21203c808bd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 1 Jul 2010 20:43:52 +0200 Subject: systemd: include /etc/systemd/system/ and /lib/systemd/system/ in search path unconditionally --- src/path-lookup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-54-g00ecf