path-lookup: unconditionally check /usr and /usr/share unit directories

This commit is contained in:
Lennart Poettering 2010-06-24 03:08:22 +02:00
parent e6b3f00f66
commit bf9a6e8bfc

View File

@ -182,6 +182,8 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) {
} else } else
if (!(p->unit_path = strv_new( 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/ */ SYSTEM_DATA_UNIT_PATH, /* /lib/systemd/system/ */
NULL))) NULL)))
return -ENOMEM; return -ENOMEM;