Release: 1.9.20
Environment
Linux/amd64
Description
when a message is being decrypted via the gpg -> gpg-agent -> scdaemon chain, the card context (including the fact that we are already authenticated to the card) is shared with other gpg processes started afterwards; breaking the assumption that you will be notified about every attempt to use the card.
While this is pretty neat as a workaround for the "being prompted for each use" problem when dealing with many encrypted messages, I doubt this was intended.
How To Repeat
Invoke "gpg --encrypt -r <key> | gpg --decrypt" in one shell, where <key> is a key that is stored on a smartcard. In another shell, decrypt a message that was encrypted to the same key, after giving the card PIN to the first instance.
Fix
Unknown