diff options
author | Werner Koch <wk@gnupg.org> | 2022-12-12 14:43:01 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2022-12-12 14:43:01 +0100 |
commit | f9ea5dc831f9dd42877cd4e8bed9288b45250447 (patch) | |
tree | ad63dec13a8fae875972c692091ae8acf712f050 /agent | |
parent | scd:p15: Skip deleted records. (diff) | |
download | gnupg2-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.c | 2 |
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")) |