1
1
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 commit 3c1c52f2c9)
(cherry picked from commit a6bd20e3de)
This commit is contained in:
Daan De Meyer 2023-08-18 09:46:38 +02:00 committed by Luca Boccassi
parent d8cd17d109
commit d651df3ab8

View File

@ -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)