From 7076f6cafbac0cfbb3ab11e0f27c5d04ca956e8f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 12 Nov 2020 12:44:11 +0100 Subject: [PATCH] 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 --- scd/command.c | 2 ++ 1 file changed, 2 insertions(+) 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;