mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Make --output work with --verify.
* g10/mainproc.c (proc_plaintext): Handle opt.output. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
6308c30019
commit
bbe940c095
2 changed files with 15 additions and 8 deletions
|
@ -757,7 +757,12 @@ proc_plaintext( CTX c, PACKET *pkt )
|
|||
|
||||
if (!rc)
|
||||
{
|
||||
rc = handle_plaintext (pt, &c->mfx, c->sigs_only, clearsig);
|
||||
/* It we are in --verify mode, we do not want to output the
|
||||
* signed text. However, if --output is also used we do what
|
||||
* has been requested and write out the signed data. */
|
||||
rc = handle_plaintext (pt, &c->mfx,
|
||||
(opt.outfp || opt.outfile)? 0 : c->sigs_only,
|
||||
clearsig);
|
||||
if (gpg_err_code (rc) == GPG_ERR_EACCES && !c->sigs_only)
|
||||
{
|
||||
/* Can't write output but we hash it anyway to check the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue