aboutsummaryrefslogtreecommitdiffstats
path: root/agent/call-pinentry.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 /agent/call-pinentry.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 'agent/call-pinentry.c')
-rw-r--r--agent/call-pinentry.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index bb55a3714..711758efc 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -394,11 +394,7 @@ start_pinentry (ctrl_t ctrl)
i=0;
if (!opt.running_detached)
- {
- if (log_get_fd () != -1)
- no_close_list[i++] = assuan_fd_from_posix_fd (log_get_fd ());
- no_close_list[i++] = assuan_fd_from_posix_fd (fileno (stderr));
- }
+ no_close_list[i++] = assuan_fd_from_posix_fd (fileno (stderr));
no_close_list[i] = ASSUAN_INVALID_FD;
rc = assuan_new (&ctx);