diff options
author | NIIBE Yutaka <[email protected]> | 2022-06-22 04:34:06 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-06-22 04:34:06 +0000 |
commit | fe535cf26592d6af53d5aea15b3fdc1d79ba0f80 (patch) | |
tree | 2294d958f5403bb0317e3f60c89b74a3902a3012 /g13 | |
parent | sm: Improve pkcs#12 debug output. (diff) | |
download | gnupg-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 'g13')
-rw-r--r-- | g13/call-syshelp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/g13/call-syshelp.c b/g13/call-syshelp.c index a69573bd1..8850c3779 100644 --- a/g13/call-syshelp.c +++ b/g13/call-syshelp.c @@ -102,11 +102,8 @@ start_syshelp (ctrl_t ctrl, assuan_context_t *r_ctx) return err; } - i = 0; - 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 (es_fileno (es_stderr)); - no_close_list[i] = ASSUAN_INVALID_FD; + no_close_list[0] = assuan_fd_from_posix_fd (es_fileno (es_stderr)); + no_close_list[1] = ASSUAN_INVALID_FD; err = assuan_new (&ctx); if (err) |