summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-08-18 09:46:38 +0200
committerMike Yuan <me@yhndnzj.com>2023-08-18 14:48:47 +0200
commit3c1c52f2c9e67fe60b36325be7292ff0baaf808b (patch)
tree0bbd83bf62cb7abd47205502b9219cdbfb3e7a23 /src
parenthomed: reuse openssl-util.h cleanup helpers (diff)
downloadsystemd-3c1c52f2c9e67fe60b36325be7292ff0baaf808b.tar.xz
systemd-3c1c52f2c9e67fe60b36325be7292ff0baaf808b.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/shared/install.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shared/install.c b/src/shared/install.c
index 34eaacb452..c171a2330e 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -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)