From 22fef189b1113581994972c06ecb216a888f3d74 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 20 Apr 2022 09:20:35 +0200 Subject: w32: Do no use Registry item DefaultLogFile for the main tools. * g10/gpg.c (main): Set LOG_NO_REGISTRY. * sm/gpgsm.c (main): Ditto. * tools/gpg-connect-agent.c (main): Ditto. * tools/gpgconf.c (main): Ditto. (show_other_registry_entries): Print "DefaultLogFile". -- The intention of this mostly forgotten registry entry was to allow for easy debugging of the tools. However, with the global config file common.conf things are anyway better. We disable the use for the commonly used tools so that it does not look like calling gpg on the command line seems to block with no output if the log server (e.g. tcp://1.2.3.4:11111) is not reachable. --- tools/gpg-connect-agent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/gpg-connect-agent.c') diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c index 142f69143..cecebf676 100644 --- a/tools/gpg-connect-agent.c +++ b/tools/gpg-connect-agent.c @@ -1196,7 +1196,8 @@ main (int argc, char **argv) early_system_init (); gnupg_rl_initialize (); gpgrt_set_strusage (my_strusage); - log_set_prefix ("gpg-connect-agent", GPGRT_LOG_WITH_PREFIX); + log_set_prefix ("gpg-connect-agent", + GPGRT_LOG_WITH_PREFIX|GPGRT_LOG_NO_REGISTRY); /* Make sure that our subsystems are ready. */ i18n_init(); -- cgit v1.2.3