mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg,gpgsm: New option --disable-fd-translation.
* common/sysutils.c (no_translate_sys2libc_fd) [W32]: New global. (disable_translate_sys2libc_fd): New. (translate_sys2libc_fd): Make static and cobuild only for Windows. (translate_sys2libc_fd_int): Use no_translate_sys2libc_fd flag. * g10/gpg.c, sm/gpgsm.c (oDisableFdTranslation): New const. (opts): Add option "disable-fd-translation". (main): Set option. -- GnuPG-bug-id: 7060
This commit is contained in:
parent
cec1fde1bc
commit
f9919bcc48
6 changed files with 50 additions and 9 deletions
|
@ -117,6 +117,7 @@ enum cmd_and_opt_values {
|
|||
oLogTime,
|
||||
|
||||
oEnableSpecialFilenames,
|
||||
oDisableFdTranslation,
|
||||
|
||||
oAgentProgram,
|
||||
oDisplay,
|
||||
|
@ -428,6 +429,7 @@ static gpgrt_opt_t opts[] = {
|
|||
ARGPARSE_s_n (oAnswerNo, "no", N_("assume no on most questions")),
|
||||
ARGPARSE_s_i (oStatusFD, "status-fd", N_("|FD|write status info to this FD")),
|
||||
ARGPARSE_s_n (oEnableSpecialFilenames, "enable-special-filenames", "@"),
|
||||
ARGPARSE_s_n (oDisableFdTranslation, "disable-fd-translation", "@"),
|
||||
ARGPARSE_s_i (oPassphraseFD, "passphrase-fd", "@"),
|
||||
ARGPARSE_s_s (oPinentryMode, "pinentry-mode", "@"),
|
||||
|
||||
|
@ -1461,6 +1463,10 @@ main ( int argc, char **argv)
|
|||
enable_special_filenames ();
|
||||
break;
|
||||
|
||||
case oDisableFdTranslation:
|
||||
disable_translate_sys2libc_fd ();
|
||||
break;
|
||||
|
||||
case oValidationModel: parse_validation_model (pargs.r.ret_str); break;
|
||||
|
||||
case oKeyServer:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue