scdaemon needs restarting after removing OpenPGP smartcard
Werner Koch
wk at gnupg.org
Tue Jun 5 17:55:12 CEST 2012
On Tue, 5 Jun 2012 15:01, klaus.layer at gmx.de said:
> I found ticket https://bugs.g10code.com/gnupg/issue1238 which describes this
> error. Are there any plans to downport the fix described in the ticket to
> 2.0.X.
The fix seems to be this:
commit 2d91febbd8d30beb7eb33f7aa80ffd5691d1d3cc
Author: Werner Koch <wk at gnupg.org>
Date: Wed Dec 14 10:30:01 2011 +0100
scd: Fix resetting and closing of the reader.
* scd/command.c (update_card_removed): Do no act on an invalid VRDR.
(do_reset): Ignore apdu_reset error codes for no and inactive card.
Close the reader before setting the slot to -1.
(update_reader_status_file): Notify the application before closing the
reader.
--
With this change the scd now works as it did in the past. In
particular there is no more endless loop trying to open the reader by
the update_reader_status_file ticker function. That bug basically
blocked all card operations until the scdaemon was killed.
However it won't apply directly because we changed other things in 2.1 as well.
We should port it back.
gniibe: You reported a couple of other possible problems. Do you thing
we should go after them for a 2.0.20?
Shalom-Salam,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gnupg-users
mailing list