summaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-04-23 09:52:28 +0200
committerWerner Koch <wk@gnupg.org>2021-04-23 09:52:57 +0200
commit0b875aa11adfa3b61608f40ee418130e2676155d (patch)
tree39746278e6aa3ed34c4a4e3deebd9a864fb4f199 /agent
parentdoc: Typo fix (diff)
downloadgnupg2-0b875aa11adfa3b61608f40ee418130e2676155d.tar.xz
gnupg2-0b875aa11adfa3b61608f40ee418130e2676155d.zip
agent,w32: Silence the get_peercred failed diagnostic
--
Diffstat (limited to 'agent')
-rw-r--r--agent/command.c7
1 files changed, 6 insertions, 1 deletions
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);