From 0b875aa11adfa3b61608f40ee418130e2676155d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 23 Apr 2021 09:52:28 +0200 Subject: [PATCH] agent,w32: Silence the get_peercred failed diagnostic -- --- agent/command.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/agent/command.c b/agent/command.c index 21f4289b1..93cd281e7 100644 --- a/agent/command.c +++ b/agent/command.c @@ -3980,9 +3980,14 @@ start_command_handler (ctrl_t ctrl, gnupg_fd_t listen_fd, gnupg_fd_t fd) rc = assuan_get_peercred (ctx, &client_creds); if (rc) { - + /* Note that on Windows we don't get the peer credentials + * and thus we silence the error. */ if (listen_fd == GNUPG_INVALID_FD && fd == GNUPG_INVALID_FD) ; +#ifdef HAVE_W32_SYSTEM + else if (gpg_err_code (rc) == GPG_ERR_ASS_GENERAL) + ; +#endif else log_info ("Assuan get_peercred failed: %s\n", gpg_strerror (rc)); pid = assuan_get_pid (ctx);