]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: drop unnecessary shortcut for removed SysV compat support
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 17 Jan 2026 01:42:50 +0000 (10:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 18 Jan 2026 06:48:02 +0000 (15:48 +0900)
Follow-up for 986fee6217051ce1ffdb53de45fdf9d7bae611ce.

src/systemctl/systemctl-enable.c

index 904a3a8234d26268c690eed0944b2836260da10c..72e222c2cb81469a74f5c95e88a3328334bee89f 100644 (file)
@@ -96,15 +96,6 @@ int verb_enable(int argc, char *argv[], void *userdata) {
         if (r < 0)
                 return r;
 
-        /* If the operation was fully executed by the SysV compat, let's finish early */
-        if (strv_isempty(names)) {
-                if (arg_no_reload || install_client_side() != INSTALL_CLIENT_SIDE_NO)
-                        return 0;
-
-                r = daemon_reload(ACTION_RELOAD, /* graceful= */ false);
-                return r > 0 ? 0 : r;
-        }
-
         if (streq(verb, "disable"))
                 r = normalize_names(names);
         else if (streq(verb, "link"))