aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-connect-agent.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-06-22 04:34:06 +0000
committerNIIBE Yutaka <[email protected]>2022-06-22 04:34:06 +0000
commitfe535cf26592d6af53d5aea15b3fdc1d79ba0f80 (patch)
tree2294d958f5403bb0317e3f60c89b74a3902a3012 /tools/gpg-connect-agent.c
parentsm: Improve pkcs#12 debug output. (diff)
downloadgnupg-fe535cf26592d6af53d5aea15b3fdc1d79ba0f80.tar.gz
gnupg-fe535cf26592d6af53d5aea15b3fdc1d79ba0f80.zip
agent,gpg,tools: Fix use of log_get_fd.
* agent/call-daemon.c (daemon_start): Don't put file descriptor from log_get_fd to no_close_list. * agent/call-pinentry.c (start_pinentry): Likewise. * common/call-gpg.c (start_gpg): Likewise. * call-syshelp.c (start_syshelp): Likewise. * tools/gpg-connect-agent.c (main): Likewise. -- GnuPG-bug-id: 5921 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tools/gpg-connect-agent.c')
-rw-r--r--tools/gpg-connect-agent.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c
index dff367050..7a0dc65b9 100644
--- a/tools/gpg-connect-agent.c
+++ b/tools/gpg-connect-agent.c
@@ -1319,8 +1319,7 @@ main (int argc, char **argv)
assuan_fd_t no_close[3];
no_close[0] = assuan_fd_from_posix_fd (es_fileno (es_stderr));
- no_close[1] = assuan_fd_from_posix_fd (log_get_fd ());
- no_close[2] = ASSUAN_INVALID_FD;
+ no_close[1] = ASSUAN_INVALID_FD;
rc = assuan_new (&ctx);
if (rc)