]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: Fix condition in start_special() (#5399)
authorBenjamin Robin <benjarobin@users.noreply.github.com>
Mon, 20 Feb 2017 21:11:34 +0000 (22:11 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 20 Feb 2017 21:11:34 +0000 (16:11 -0500)
src/systemctl/systemctl.c

index 809a40ab71c6fad8acdb7d70a825e88df940bbd2..2591ec0b697f18dfa901f04873958a6b708ef78f 100644 (file)
@@ -3531,7 +3531,7 @@ static int start_special(int argc, char *argv[], void *userdata) {
                 return halt_now(a);
 
         if (arg_force >= 1 &&
-            (termination_action || IN_SET(ACTION_KEXEC, ACTION_EXIT)))
+            (termination_action || IN_SET(a, ACTION_KEXEC, ACTION_EXIT)))
                 r = trivial_method(argc, argv, userdata);
         else {
                 /* First try logind, to allow authentication with polkit */