diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-29 22:40:05 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-30 12:23:33 +0200 |
commit | a4420f7b8ed73b05ef6f31622101e7804daef69f (patch) | |
tree | 9a59712506f9b55f966ac028bfbc79a12a0dbed3 /src | |
parent | 45519fd6304aae453d95c6cf11bfc8539c38494c (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/systemctl/systemctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 621c931c0b..a965369c0c 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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; |