summaryrefslogtreecommitdiff
path: root/src/ask-password
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-06-03 11:08:20 +0200
committerLennart Poettering <lennart@poettering.net>2021-06-03 11:16:48 +0200
commit4b1c842d95bfd6ab352ade1a4655f9e512f35185 (patch)
tree9fd75951f84e2af54e83fd7f1cffcf2ea2b71563 /src/ask-password
parenta51168481f2e3bcda2c18c2f2edae311caee495b (diff)
downloadsystemd-4b1c842d95bfd6ab352ade1a4655f9e512f35185.tar.gz
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.
Diffstat (limited to 'src/ask-password')
-rw-r--r--src/ask-password/ask-password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ask-password/ask-password.c b/src/ask-password/ask-password.c
index db6f2f59c0..6a09a9a35c 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) {