Exit status and failed decryption of session key

Werner Koch wk@gnupg.org
Sun, 30 Apr 2000 14:02:30 +0200


On Fri, 21 Apr 2000, Florian Weimer wrote:


> If a messages is encrypted to multiple subscribers, and secret keys
> are present for all subscribers, but not all secret keys can be
> decrypted (i.e. because of a missing or wrong passphrase), GnuPG 1.0.1
> exits with status 2 even if the messages was successfully decrypted
> because a usable secret key was found in the end.
>
> Bug or feature? It's quite annoying if you want to find out whether
> decryption succeed by looking at the exit status.
Still in 1.0.1e ? -- Werner Koch OpenPGP key 621CC013 OpenIT GmbH tel +49 211 239577-0 Birkenstr. 12 email wk@openit.de D-40233 Duesseldorf http://www.openit.de