mirror of
https://github.com/systemd/systemd.git
synced 2025-01-07 21:18:41 +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);
|
return halt_now(a);
|
||||||
|
|
||||||
if (arg_force >= 1 &&
|
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);
|
r = trivial_method(argc, argv, userdata);
|
||||||
else {
|
else {
|
||||||
/* First try logind, to allow authentication with polkit */
|
/* First try logind, to allow authentication with polkit */
|
||||||
|
Loading…
Reference in New Issue
Block a user