From 3c1c52f2c9e67fe60b36325be7292ff0baaf808b Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 18 Aug 2023 09:46:38 +0200 Subject: [PATCH] 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. --- src/shared/install.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/shared/install.c b/src/shared/install.c index 34eaacb452e..c171a2330e8 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) -- 2.47.3