mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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".
This commit is contained in:
parent
061efac03f
commit
f9ea5dc831
@ -2624,7 +2624,7 @@ cmd_scd (assuan_context_t ctx, char *line)
|
|||||||
argc = split_fields (l, argv, DIM (argv));
|
argc = split_fields (l, argv, DIM (argv));
|
||||||
|
|
||||||
/* These commands are allowed. */
|
/* These commands are allowed. */
|
||||||
if ((argc == 1 && !strcmp (argv[0], "SERIALNO"))
|
if ((argc >= 1 && !strcmp (argv[0], "SERIALNO"))
|
||||||
|| (argc == 2
|
|| (argc == 2
|
||||||
&& !strcmp (argv[0], "GETINFO")
|
&& !strcmp (argv[0], "GETINFO")
|
||||||
&& !strcmp (argv[1], "version"))
|
&& !strcmp (argv[1], "version"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user