From: Lennart Poettering Date: Thu, 3 May 2012 23:02:32 +0000 (+0200) Subject: systemctl: fix typo X-Git-Tag: v183~156 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59ddae9f9c0992fe193fa371a5d114227b35785c;p=systemd systemctl: fix typo as Sergey Ptashnick pointed out we should write "poweroff" once instead of "reboot" twice. --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index d80eb94a..c08d8091 100644 --- 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;