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:
parent
671f0f8de0
commit
9639b1752c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user