chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
shutdown: respect the dry run option '-k'
[elogind.git]
/
src
/
shutdownd.c
diff --git
a/src/shutdownd.c
b/src/shutdownd.c
index 13819417c3f5da1047aad14c5b9c129a909b894c..7fd9573b2fa30ba425241857ae2f2f16bb2ada10 100644
(file)
--- a/
src/shutdownd.c
+++ b/
src/shutdownd.c
@@
-348,7
+348,7
@@
finish:
if (unlink_nologin)
unlink("/run/nologin");
- if (exec_shutdown) {
+ if (exec_shutdown
&& !c.dry_run
) {
char sw[3];
sw[0] = '-';