From: Lennart Poettering Date: Thu, 3 Jun 2021 09:08:20 +0000 (+0200) Subject: ask-password: once we hit the message argument, don't process switches anymore X-Git-Tag: v249-rc1~105^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b1c842d95bfd6ab352ade1a4655f9e512f35185;p=thirdparty%2Fsystemd.git ask-password: once we hit the message argument, don't process switches anymore Let's not mangle the message part unnecessarily, that'd be confusing and unexpected. --- diff --git a/src/ask-password/ask-password.c b/src/ask-password/ask-password.c index db6f2f59c0a..6a09a9a35c9 100644 --- a/src/ask-password/ask-password.c +++ b/src/ask-password/ask-password.c @@ -104,7 +104,7 @@ static int parse_argv(int argc, char *argv[]) { /* Note the asymmetry: the long option --echo= allows an optional argument, the short option does * not. */ - while ((c = getopt_long(argc, argv, "he", options, NULL)) >= 0) + while ((c = getopt_long(argc, argv, "+he", options, NULL)) >= 0) switch (c) {