mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-31 11:41:32 +01:00
gpgtar: Emit FAILURE status line.
* tools/gpgtar.c (main): Write status line before exit. -- Due to the new way we support gpgtar in GPGME we need status lines to detect a final error. GnuPG-bug-id: 6497
This commit is contained in:
parent
6944aefa3c
commit
cd7f286486
@ -588,9 +588,19 @@ main (int argc, char **argv)
|
||||
|
||||
default:
|
||||
log_error (_("invalid command (there is no implicit command)\n"));
|
||||
err = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
if (opt.status_stream)
|
||||
{
|
||||
if (err || log_get_errorcount (0))
|
||||
es_fprintf (opt.status_stream, "[GNUPG:] FAILURE - %u\n",
|
||||
err? err : gpg_error (GPG_ERR_GENERAL));
|
||||
else
|
||||
es_fprintf (opt.status_stream, "[GNUPG:] SUCCESS\n");
|
||||
}
|
||||
|
||||
return log_get_errorcount (0)? 1:0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user