From: Benjamin Robin Date: Mon, 20 Feb 2017 21:11:34 +0000 (+0100) Subject: systemctl: Fix condition in start_special() (#5399) X-Git-Tag: v233~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5955df2c40a9e05865e04f8bb51832f8d2659e1f;p=thirdparty%2Fsystemd.git systemctl: Fix condition in start_special() (#5399) --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 809a40ab71c..2591ec0b697 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 */