aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-11-12 11:44:11 +0000
committerWerner Koch <[email protected]>2020-11-12 11:44:57 +0000
commit7076f6cafbac0cfbb3ab11e0f27c5d04ca956e8f (patch)
treea1b68bd4f35e3681ed5d6609d8a69ece135bab7b
parentpo: Update Japanese Translations. (diff)
downloadgnupg-7076f6cafbac0cfbb3ab11e0f27c5d04ca956e8f.tar.gz
gnupg-7076f6cafbac0cfbb3ab11e0f27c5d04ca956e8f.zip
scd: Skip unknown options in command SERIALNO
* scd/command.c (cmd_serialno): Skip options. -- SERIALNO --all works only in 2.3 and thus naive use with 2.2 vesions would conserer "--all" as the reqyested applications. Fix is easy and should be done anyway. Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--scd/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/command.c b/scd/command.c
index 8dd050ee4..769113fba 100644
--- a/scd/command.c
+++ b/scd/command.c
@@ -290,6 +290,8 @@ cmd_serialno (assuan_context_t ctx, char *line)
else
demand = NULL;
+ line = skip_options (line);
+
/* Clear the remove flag so that the open_card is able to reread it. */
if (ctrl->server_local->card_removed)
ctrl->server_local->card_removed = 0;