1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

gpgconf: Exit with failure if --launch fails.

* tools/gpgconf-comp.c (gc_component_launch): Return an error code.
* tools/gpgconf.c (main): Exit if launch failed.
--
GnuPG-bug-id: 1791
This commit is contained in:
Werner Koch 2014-12-17 10:36:24 +01:00
parent b1b1923b06
commit 5cb6df8996
3 changed files with 13 additions and 4 deletions

View file

@ -1142,7 +1142,7 @@ dirmngr_runtime_change (int killflag)
/* Launch the gpg-agent or the dirmngr if not already running. */
void
gpg_error_t
gc_component_launch (int component)
{
gpg_error_t err;
@ -1176,6 +1176,7 @@ gc_component_launch (int component)
" NOP",
gpg_strerror (err));
gnupg_release_process (pid);
return err;
}