Page MenuHome GnuPG

gpg --gen-revoke fails silently if passphrase fails
Closed, WontfixPublic

Description

Using gpg 1.4.18, doing "gpg --use-agent --gen-revoke $KEYID" with gpg-agent
2.1.1 causes the pinentry dialog box to appear, as it should.

if i enter the wrong password into three successive pinentry boxes, no
revocation certificate is emitted, but the return code is still 0.

The return code should be non-zero if the passphrase isn't provided directly.

Details

Version
1.4.18

Event Timeline

dkg set Version to 1.4.18.
dkg added a subscriber: dkg.

i've tested this with gnupg 2.1.1, and gnupg 2.1.1 does provide a non-zero
return code if the passphrase fails.

marcus claimed this task.
marcus added a subscriber: marcus.

gpg 1.4 will now only receive important updates, and this is a change in behavior, which might break scripts.