[systemd-devel] [PATCH] systemctl: fix argument handling when invoked as "shutdown"
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Mon Dec 15 21:33:32 PST 2014
On Mon, Dec 15, 2014 at 10:39:00AM +0100, Jan Synacek wrote:
> ---
> src/systemctl/systemctl.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
> index 8400bc8..91e8f7c 100644
> --- a/src/systemctl/systemctl.c
> +++ b/src/systemctl/systemctl.c
> @@ -6942,7 +6942,7 @@ static int shutdown_parse_argv(int argc, char *argv[]) {
> assert(argc >= 0);
> assert(argv);
>
> - while ((c = getopt_long(argc, argv, "HPrhkt:afFc", options, NULL)) >= 0)
> + while ((c = getopt_long(argc, argv, "HPrhkKt:afFc", options, NULL)) >= 0)
> switch (c) {
>
> case ARG_HELP:
> @@ -6983,6 +6983,8 @@ static int shutdown_parse_argv(int argc, char *argv[]) {
>
> case 't':
> case 'a':
> + case 'f':
> + case 'F':
> /* Compatibility nops */
Applied.
Zbyszek
More information about the systemd-devel
mailing list