sd-path: fix systemd-system-generator-path lookup

CID#1422164.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-05-21 08:13:11 +02:00
parent 5dc31db7c1
commit f198303902
+1 -1
View File
@@ -624,7 +624,7 @@ static int get_search(uint64_t type, char ***list) {
case SD_PATH_SYSTEMD_SYSTEM_GENERATOR_PATH:
case SD_PATH_SYSTEMD_USER_GENERATOR_PATH: {
char **t;
const UnitFileScope scope = type == SD_PATH_SYSTEMD_SYSTEM_UNIT_PATH ?
const UnitFileScope scope = type == SD_PATH_SYSTEMD_SYSTEM_GENERATOR_PATH ?
UNIT_FILE_SYSTEM : UNIT_FILE_USER;
t = generator_binary_paths(scope);