From d47b555bb6cabca024242e00b674da835938d286 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 8 Jul 2010 21:30:32 +0200 Subject: [PATCH] systemctl: don't actually reboot/poweroff/halt if only a wtmp update is requested --- src/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl.c b/src/systemctl.c index a9a975ee8..01deafe2a 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -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) -- 2.30.2