From a3f0d88feef975e3fd914b13314aa809a0003a44 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 17 Jan 2026 10:42:50 +0900 Subject: [PATCH] systemctl: drop unnecessary shortcut for removed SysV compat support Follow-up for 986fee6217051ce1ffdb53de45fdf9d7bae611ce. --- src/systemctl/systemctl-enable.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/systemctl/systemctl-enable.c b/src/systemctl/systemctl-enable.c index 904a3a8234..72e222c2cb 100644 --- a/src/systemctl/systemctl-enable.c +++ b/src/systemctl/systemctl-enable.c @@ -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"))