mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09: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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user