mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
systemctl: when reading legacy -t argument for shutdown, don't drop following parameter
We currently completely ignore the following parameter, but we really should not, as that is actually the time to shut down on.
This commit is contained in:
parent
45519fd630
commit
a4420f7b8e
@ -7003,7 +7003,7 @@ static int shutdown_parse_argv(int argc, char *argv[]) {
|
||||
assert(argc >= 0);
|
||||
assert(argv);
|
||||
|
||||
while ((c = getopt_long(argc, argv, "HPrhkKt:afFc", options, NULL)) >= 0)
|
||||
while ((c = getopt_long(argc, argv, "HPrhkKtafFc", options, NULL)) >= 0)
|
||||
switch (c) {
|
||||
|
||||
case ARG_HELP:
|
||||
@ -7486,6 +7486,10 @@ static int logind_schedule_shutdown(void) {
|
||||
case ACTION_KEXEC:
|
||||
action = "kexec";
|
||||
break;
|
||||
case ACTION_EXIT:
|
||||
action = "exit";
|
||||
break;
|
||||
case ACTION_REBOOT:
|
||||
default:
|
||||
action = "reboot";
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user