summaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-12-12 14:43:01 +0100
committerWerner Koch <wk@gnupg.org>2022-12-12 14:43:01 +0100
commitf9ea5dc831f9dd42877cd4e8bed9288b45250447 (patch)
treead63dec13a8fae875972c692091ae8acf712f050 /agent
parentscd:p15: Skip deleted records. (diff)
downloadgnupg2-f9ea5dc831f9dd42877cd4e8bed9288b45250447.tar.xz
gnupg2-f9ea5dc831f9dd42877cd4e8bed9288b45250447.zip
agent: Allow arguments to "scd serialno" in restricted mode.
* agent/command.c (cmd_scd): Allow it. -- This is important because Scute uses "SCD SERIALNO --all".
Diffstat (limited to 'agent')
-rw-r--r--agent/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c
index 8b5434bfb..c113caba7 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -2624,7 +2624,7 @@ cmd_scd (assuan_context_t ctx, char *line)
argc = split_fields (l, argv, DIM (argv));
/* These commands are allowed. */
- if ((argc == 1 && !strcmp (argv[0], "SERIALNO"))
+ if ((argc >= 1 && !strcmp (argv[0], "SERIALNO"))
|| (argc == 2
&& !strcmp (argv[0], "GETINFO")
&& !strcmp (argv[1], "version"))