From d47b555bb6cabca024242e00b674da835938d286 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 8 Jul 2010 21:30:32 +0200 Subject: 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(-) (limited to 'src') diff --git a/src/systemctl.c b/src/systemctl.c index a9a975ee81..01deafe2a1 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) -- cgit v1.2.3-54-g00ecf