1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 11:55:23 +03:00

install: detect masked unit with drop-ins

Before this fix, a unit with drop-ins will not be reported as masked by
`systemctl is-enabled` or `systemctl list-unit-files`.
This commit is contained in:
Filipe Brandenburger 2018-03-01 17:48:15 -08:00
parent 671f0f8de0
commit 9639b1752c

View File

@ -1461,6 +1461,9 @@ static int unit_file_search(
return -ENOENT;
}
if (info->type == UNIT_FILE_TYPE_MASKED)
return result;
/* Search for drop-in directories */
dropin_dir_name = strjoina(info->name, ".d");