From 5955df2c40a9e05865e04f8bb51832f8d2659e1f Mon Sep 17 00:00:00 2001 From: Benjamin Robin Date: Mon, 20 Feb 2017 22:11:34 +0100 Subject: [PATCH] systemctl: Fix condition in start_special() (#5399) --- src/systemctl/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 809a40ab71..2591ec0b69 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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 */