Home GnuPG

logging: Fix gpgrt_log_get_fd for file.

Description

logging: Fix gpgrt_log_get_fd for file.

* src/logging.c (fun_writer): Only use this for socket writing.
(set_file_fd): Use es_stderr when "-".
Use the stream by _gpgrt_fdopen when FD is specified.
Use the stream by _gpgrt_fopen when name is not socket.
Only use the stream by _gpgrt_fopencookie for socket.
[HAVE_W32CE_SYSTEM]: Remove W32CE support.
  • GnuPG-bug-id: T5922
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>