mirror of
https://github.com/systemd/systemd.git
synced 2025-01-05 13:18:06 +03:00
systemctl: Fix condition in start_special() (#5399)
This commit is contained in:
parent
04a0891038
commit
5955df2c40
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user