diff options
author | Werner Koch <[email protected]> | 2014-12-17 09:36:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-12-17 09:39:31 +0000 |
commit | 5cb6df8996623c00eaa2a39e3037101585442f7e (patch) | |
tree | 62b1d72a4e4302cc4a15a88f4fdd07d44c176799 /tools/gpgconf-comp.c | |
parent | po: Update Japanese Translation. (diff) | |
download | gnupg-5cb6df8996623c00eaa2a39e3037101585442f7e.tar.gz gnupg-5cb6df8996623c00eaa2a39e3037101585442f7e.zip |
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
Diffstat (limited to '')
-rw-r--r-- | tools/gpgconf-comp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index 77139bbae..8c47b2e5e 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -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; } |