diff options
author | NIIBE Yutaka <[email protected]> | 2023-07-13 04:51:26 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-07-13 04:51:26 +0000 |
commit | 20bf90bdcee44607c81c357759bf2c0b78b683fb (patch) | |
tree | 5d290cdf354a2e2eb19cb97c092ce8be45a0fe42 | |
parent | sm: Use gnupg_fd_t and open_stream_nc for assuan_get_input_fd. (diff) | |
download | gnupg-20bf90bdcee44607c81c357759bf2c0b78b683fb.tar.gz gnupg-20bf90bdcee44607c81c357759bf2c0b78b683fb.zip |
sm: Use open_stream_nc for do_listkeys.
* sm/server.c (do_listkeys): Use open_stream_nc.
--
GnuPG-bug-id: 6580
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | sm/server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sm/server.c b/sm/server.c index 4a2490d53..6aae6cb4f 100644 --- a/sm/server.c +++ b/sm/server.c @@ -1043,14 +1043,14 @@ do_listkeys (assuan_context_t ctx, char *line, int mode) if (ctrl->server_local->list_to_output) { - int outfd = translate_sys2libc_fd (assuan_get_output_fd (ctx), 1); + gnupg_fd_t outfd = assuan_get_output_fd (ctx); - if ( outfd == -1 ) + if ( outfd == GNUPG_INVALID_FD ) { free_strlist (list); return set_error (GPG_ERR_ASS_NO_OUTPUT, NULL); } - fp = es_fdopen_nc (outfd, "w"); + fp = open_stream_nc (outfd, "w"); if (!fp) { free_strlist (list); |