Page MenuHome GnuPG

nonzero exit status after smartcard insert prompt
Closed, ResolvedPublic

Description

Citing Debian bug #513464:

when signing something with my smartcard, gpg prompts me to insert the card
if it isn't there already; after that happens, gpg's exit status is nonzero
even if the signature worked (as indicated by the signature counter on the
card), causing the caller to discard the signature and fail.

This sounds like a true bug. Can you reproduce it?

Details

External Link
http://bugs.debian.org/513464
Version
1.4.9

Event Timeline

dleidert set External Link to http://bugs.debian.org/513464.May 8 2009, 10:10 AM
dleidert set Version to 1.4.9.
dleidert added projects: gnupg, Bug Report, Debian.
dleidert added a subscriber: dleidert.
werner added a subscriber: werner.

Don't put too much weight into gpg's exit codes ;-)

No bug if use with gpg-agent/scdaemon.

Using gpg 1.4.9 standalone I get this error message:

gpg: apdu_send_simple(0) failed: no card

Easy fix by changing an log_error to log_info. See SVN rev 5006

werner claimed this task.
werner removed a project: Restricted Project.