install: Drop install_info_may_process() from unit_file_get_default()

This currently makes unit_file_get_default() fail if the default
target is transient which shouldn't make us fail to get the default
unit.
This commit is contained in:
Daan De Meyer
2023-08-18 20:48:47 +08:00
committed by Mike Yuan
parent 8fc798a9ad
commit 3c1c52f2c9
-3
View File
@@ -3029,9 +3029,6 @@ int unit_file_get_default(
&info, NULL, NULL);
if (r < 0)
return r;
r = install_info_may_process(info, &lp, NULL, 0);
if (r < 0)
return r;
n = strdup(info->name);
if (!n)