Home GnuPG
Diffusion GnuPG 77f2964b9602

gpg: Print a new FAILURE status after most commands.
77f2964b9602Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Print a new FAILURE status after most commands.

* common/status.h (STATUS_FAILURE): New.
* g10/cpr.c (write_status_failure): New.
* g10/gpg.c (main): Call write_status_failure for all commands which
print an error message here.

This status line can be used similar to the error code returned by
commands send over the Assuan interface in gpgsm. We don't emit them
in gpgsm because there we already have that Assuan interface to return
proper error code. This change helps GPGME to return better error
codes.

(backported from master 9cdff09743c473a12359bfdb914578ede0e4e3e2)

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Sep 8 2015, 3:29 PM
Parents
rG0b01bb7f253f: gpg: Avoid cluttering stdout with trustdb info in verbose mode.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG77f2964b9602: gpg: Print a new FAILURE status after most commands. (authored by Werner Koch <wk@gnupg.org>).Sep 8 2015, 3:31 PM