mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-21 19:48:05 +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
7cf8c5c291
commit
ea28689547
@ -566,9 +566,19 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
log_error (_("invalid command (there is no implicit command)\n"));
|
log_error (_("invalid command (there is no implicit command)\n"));
|
||||||
|
err = 0;
|
||||||
break;
|
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;
|
return log_get_errorcount (0)? 1:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user