]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ask-password: once we hit the message argument, don't process switches anymore 19806/head
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Jun 2021 09:08:20 +0000 (11:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 Jun 2021 09:16:48 +0000 (11:16 +0200)
Let's not mangle the message part unnecessarily, that'd be confusing and
unexpected.

src/ask-password/ask-password.c

index db6f2f59c0aabb2af089fa5159793c585c5c2fa0..6a09a9a35c9288c1cbad829b6d70e3c7a0826375 100644 (file)
@@ -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) {