summaryrefslogtreecommitdiffstats
path: root/tools/gpgconf.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2023-06-27 07:44:01 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2023-06-27 07:44:01 +0200
commitb9b0c183204f81ae12b31ef15045ebee98a4c970 (patch)
tree9cf0a61b0a17b9a21b89f32aad996341200708d9 /tools/gpgconf.c
parentagent: Fix cast mistake for Windows. (diff)
downloadgnupg2-b9b0c183204f81ae12b31ef15045ebee98a4c970.tar.xz
gnupg2-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 <gniibe@fsij.org>
Diffstat (limited to 'tools/gpgconf.c')
-rw-r--r--tools/gpgconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpgconf.c b/tools/gpgconf.c
index 9738ffe97..522ce517b 100644
--- a/tools/gpgconf.c
+++ b/tools/gpgconf.c
@@ -118,7 +118,7 @@ static gpgrt_opt_t opts[] =
{ oQuiet, "quiet", 0, N_("quiet") },
{ oDryRun, "dry-run", 0, N_("do not make any changes") },
{ oRuntime, "runtime", 0, N_("activate changes at runtime, if possible") },
- ARGPARSE_s_s (oStatusFD, "status-fd",
+ ARGPARSE_s_i (oStatusFD, "status-fd",
N_("|FD|write status info to this FD")),
/* hidden options */
{ oHomedir, "homedir", 2, "@" },
@@ -645,7 +645,7 @@ main (int argc, char **argv)
case oBuilddir: gnupg_set_builddir (pargs.r.ret_str); break;
case oNull: opt.null = 1; 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 oShowSocket: show_socket = 1; break;
case oChUid: changeuser = pargs.r.ret_str; break;