From: Lennart Poettering Date: Thu, 1 Jul 2010 18:43:52 +0000 (+0200) Subject: systemd: include /etc/systemd/system/ and /lib/systemd/system/ in search path uncondi... X-Git-Tag: v1~79 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0115b1f4a09b709a2d062a4f2baf21203c808bd;p=systemd systemd: include /etc/systemd/system/ and /lib/systemd/system/ in search path unconditionally --- diff --git a/src/path-lookup.c b/src/path-lookup.c index 2590eb3a..00003620 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; }