X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fpath-lookup.c;h=00003620a57a88e2e604625682bdf96e44dffa60;hp=093e04de37d02d61566cb0b44be3379d0c440da5;hb=c0115b1f4a09b709a2d062a4f2baf21203c808bd;hpb=8745297f9853c4a17bac69e1b7e652fe81bc1940 diff --git a/src/path-lookup.c b/src/path-lookup.c index 093e04de3..00003620a 100644 --- a/src/path-lookup.c +++ b/src/path-lookup.c @@ -181,13 +181,17 @@ 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_DATA_UNIT_PATH, /* /lib/systemd/system/ */ + SYSTEM_CONFIG_UNIT_PATH, + "/etc/systemd/system", + "/usr/local/share/systemd/system", + "/usr/share/systemd/system", + "/lib/systemd/system", + SYSTEM_DATA_UNIT_PATH, NULL))) return -ENOMEM; } - if (running_as == MANAGER_INIT) { + if (running_as == MANAGER_SYSTEM) { /* /etc/init.d/ compatibility does not matter to users */ if ((e = getenv("SYSTEMD_SYSVINIT_PATH")))