From b657d6c3bd8103d40d511a3293313a891a26a9f5 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 20 Apr 2021 10:27:04 +0200 Subject: [PATCH] gpgconf: Fix a diagnostic output. * tools/gpgconf-comp.c (gc_component_launch): Fix diagnostic. * doc/examples/common.conf: Fix example. Signed-off-by: Werner Koch --- doc/examples/common.conf | 2 +- tools/gpgconf-comp.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/examples/common.conf b/doc/examples/common.conf index 786feae58..d58c43c3b 100644 --- a/doc/examples/common.conf +++ b/doc/examples/common.conf @@ -19,4 +19,4 @@ # standard logging socket (socket://) or a tcp server (tcp://ip:port). # If a file name is given the name of the component is internally # appended. -#socket:// +#log-file socket:// diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index c3ee36ad1..2a5087e1f 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -948,7 +948,10 @@ gc_component_launch (int component) gc_component[component].name); if (!opt.quiet) log_info (_("Note: Use the command \"%s%s\" to get details.\n"), - gc_component[component].name, " --gpgconf-test"); + gc_component[component].program + ? gc_component[component].program + : gc_component[component].name, + " --gpgconf-test"); gpgconf_failure (0); }