mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 01:55:32 +03:00
systemctl: fix typo
as Sergey Ptashnick pointed out we should write "poweroff" once instead of "reboot" twice.
This commit is contained in:
parent
6fc08fc789
commit
59ddae9f9c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user