]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
install: Drop install_info_may_process() from unit_file_get_default()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 18 Aug 2023 07:46:38 +0000 (09:46 +0200)
committerMike Yuan <me@yhndnzj.com>
Fri, 18 Aug 2023 12:48:47 +0000 (20:48 +0800)
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

index 34eaacb452e25aadf39c7e9e8b8be9cc47533e5f..c171a2330e8c3d37c06251c903540ddc1d2d0680 100644 (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)