mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpgconf: Fix error in --show-versions due to recent spawn changes.
* tools/gpgconf.c (show_versions_via_dirmngr): Fail only on exitcode!=0.
This commit is contained in:
parent
cf3cec982d
commit
ca3b8d2541
@ -1347,9 +1347,12 @@ show_versions_via_dirmngr (estream_t fp)
|
|||||||
int exitcode;
|
int exitcode;
|
||||||
|
|
||||||
gnupg_process_ctl (proc, GNUPG_PROCESS_GET_EXIT_ID, &exitcode);
|
gnupg_process_ctl (proc, GNUPG_PROCESS_GET_EXIT_ID, &exitcode);
|
||||||
log_error ("running %s failed (exitcode=%d): %s\n",
|
if (exitcode)
|
||||||
pgmname, exitcode, gpg_strerror (err));
|
{
|
||||||
es_fprintf (fp, "[error: can't get further info]\n");
|
log_error ("running %s failed (exitcode=%d): %s\n",
|
||||||
|
pgmname, exitcode, gpg_strerror (err));
|
||||||
|
es_fprintf (fp, "[error: can't get further info]\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
gnupg_process_release (proc);
|
gnupg_process_release (proc);
|
||||||
xfree (line);
|
xfree (line);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user