mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
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. (cherry picked from commit3c1c52f2c9
) (cherry picked from commita6bd20e3de
)
This commit is contained in:
parent
d8cd17d109
commit
d651df3ab8
@ -3014,9 +3014,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)
|
||||
|
Loading…
Reference in New Issue
Block a user