X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsystemctl.c;h=444ddf370c4ead051985dfab198f7b9ae5675ed9;hp=6a7a9bdd6df3ffc893dcc314202ef418dbe3bb13;hb=f872ec33973b2f508d36939e917ffafd47a87b07;hpb=442b90946ac317da602aef916a7bac29437368b2 diff --git a/src/systemctl.c b/src/systemctl.c index 6a7a9bdd6..444ddf370 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -1741,10 +1741,8 @@ static int shutdown_parse_argv(int argc, char *argv[]) { } } - if (argc > optind && !streq(argv[optind], "now")) { - log_error("Expected 'now' argument."); - return -EINVAL; - } + if (argc > optind && !streq(argv[optind], "now")) + log_warning("First argument '%s' isn't 'now'. Ignoring.", argv[optind]); /* We ignore the time argument */ if (argc > optind + 1)