aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-pair-tool.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-06-27 05:44:01 +0000
committerNIIBE Yutaka <[email protected]>2023-06-27 05:44:01 +0000
commitb9b0c183204f81ae12b31ef15045ebee98a4c970 (patch)
tree9cf0a61b0a17b9a21b89f32aad996341200708d9 /tools/gpg-pair-tool.c
parentagent: Fix cast mistake for Windows. (diff)
downloadgnupg-b9b0c183204f81ae12b31ef15045ebee98a4c970.tar.gz
gnupg-b9b0c183204f81ae12b31ef15045ebee98a4c970.zip
common,gpg,sm,tools: Don't remove translate_sys2libc_fd_int.
* common/sysutils.c (translate_sys2libc_fd_int): Recover. (translate_sys2libc_fdstr): Remove. (check_special_filename): Follow the change. * common/sysutils.h (translate_sys2libc_fd_int): Recover. (translate_sys2libc_fdstr): Remove. * g10/gpg.c, g10/gpgv.c, sm/gpgsm.c: Revert the changes. * tools/gpg-auth.c, tools/gpg-card.c, tools/gpg-pair-tool.c: Likewise. * tools/gpg-wks-client.c, tools/gpgconf.c: Likewise. -- GnuPG-bug-id: 6551 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tools/gpg-pair-tool.c')
-rw-r--r--tools/gpg-pair-tool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpg-pair-tool.c b/tools/gpg-pair-tool.c
index 069bd1668..cf9778838 100644
--- a/tools/gpg-pair-tool.c
+++ b/tools/gpg-pair-tool.c
@@ -179,7 +179,7 @@ static gpgrt_opt_t opts[] = {
ARGPARSE_s_s (oSAS, "sas", N_("|SAS|the SAS as shown by the peer")),
ARGPARSE_s_s (oDebug, "debug", "@"),
ARGPARSE_s_s (oOutput, "output", N_("|FILE|write the request to FILE")),
- ARGPARSE_s_s (oStatusFD, "status-fd", N_("|FD|write status info to this FD")),
+ ARGPARSE_s_i (oStatusFD, "status-fd", N_("|FD|write status info to this FD")),
ARGPARSE_s_s (oHomedir, "homedir", "@"),
@@ -390,7 +390,7 @@ main (int argc, char **argv)
break;
case oStatusFD:
- set_status_fd (translate_sys2libc_fdstr (pargs.r.ret_str, 1));
+ set_status_fd (translate_sys2libc_fd_int (pargs.r.ret_int, 1));
break;
case oHomedir: