mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Return a stable list with "getinfo card_list".
* scd/app.c (compare_card_list_items): New. (app_send_card_list): Sort the card objects by slot. -- This is required so that in gpg-card a "list N" command always returns the expected card. Sorting by slot should be sufficient. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
d803b3bb3c
commit
c8e62965bc
3 changed files with 39 additions and 6 deletions
|
@ -1630,7 +1630,7 @@ cmd_getinfo (assuan_context_t ctx, char *line)
|
|||
{
|
||||
ctrl_t ctrl = assuan_get_pointer (ctx);
|
||||
|
||||
app_send_card_list (ctrl);
|
||||
rc = app_send_card_list (ctrl);
|
||||
}
|
||||
else
|
||||
rc = set_error (GPG_ERR_ASS_PARAMETER, "unknown value for WHAT");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue