chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fc08fc
)
systemctl: fix typo
author
Lennart Poettering
<lennart@poettering.net>
Thu, 3 May 2012 23:02:32 +0000
(
01:02
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 3 May 2012 23:02:32 +0000
(
01:02
+0200)
as Sergey Ptashnick pointed out we should write "poweroff" once instead
of "reboot" twice.
src/systemctl/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index d80eb94af15fd5ffab855ee31e1144d7a6fe12e1..c08d80912a3ad70dab44371bdeceecdcce97aa28 100644
(file)
--- a/
src/systemctl/systemctl.c
+++ b/
src/systemctl/systemctl.c
@@
-5224,8
+5224,8
@@
static int systemctl_main(DBusConnection *bus, int argc, char *argv[], DBusError
}
if (((!streq(verbs[i].verb, "reboot") &&
- !streq(verbs[i].verb, "halt") &&
-
!streq(verbs[i].verb, "reboot
")) || arg_force <= 0) && !bus) {
+
!streq(verbs[i].verb, "halt") &&
+
!streq(verbs[i].verb, "poweroff
")) || arg_force <= 0) && !bus) {
log_error("Failed to get D-Bus connection: %s",
dbus_error_is_set(error) ? error->message : "No connection to service manager.");
return -EIO;