chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
systemctl: don't actually reboot/poweroff/halt if only a wtmp update is requested
[elogind.git]
/
src
/
systemctl.c
diff --git
a/src/systemctl.c
b/src/systemctl.c
index a9a975ee8188648ceb775d5b3ce0e6e1bc801986..01deafe2a13b1d0edc3bcfe8633343ccc1eab471 100644
(file)
--- 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)