From 2aa0701013f703ad93e17da3345c493c08aa04ee Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 29 Aug 2016 11:45:47 +0200 Subject: common: Add a default socket name feature. * common/logging.c (log_set_socket_dir_cb): New. (socket_dir_cb): New. (set_file_fd): Allow "socket://". (fun_writer): Implement default socket name. * common/init.c (_init_common_subsystems): Register default socket. -- This change allows the use of log-file socket:// in any configuration file. Signed-off-by: Werner Koch --- common/init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/init.c') diff --git a/common/init.c b/common/init.c index 591c85468..8a8626682 100644 --- a/common/init.c +++ b/common/init.c @@ -222,6 +222,9 @@ _init_common_subsystems (gpg_err_source_t errsource, int *argcp, char ***argvp) /* --version et al shall use estream as well. */ argparse_register_outfnc (writestring_via_estream); + + /* Logging shall use the standard socket directory as fallback. */ + log_set_socket_dir_cb (gnupg_socketdir); } -- cgit v1.2.3