From 4b1c842d95bfd6ab352ade1a4655f9e512f35185 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 3 Jun 2021 11:08:20 +0200 Subject: [PATCH] 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. --- src/ask-password/ask-password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3