mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 06:30:30 +00:00
systemctl: don't actually reboot/poweroff/halt if only a wtmp update is requested
This commit is contained in:
committed by
Lennart Poettering
parent
e34b6159f3
commit
d47b555bb6
@@ -3156,7 +3156,7 @@ static int start_with_fallback(DBusConnection *bus) {
|
||||
static int halt_main(DBusConnection *bus) {
|
||||
int r;
|
||||
|
||||
if (!arg_immediate)
|
||||
if (!arg_dry && !arg_immediate)
|
||||
return start_with_fallback(bus);
|
||||
|
||||
if (!arg_no_wtmp)
|
||||
|
||||
Reference in New Issue
Block a user