mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-09 12:54:23 +01:00
* passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
This commit is contained in:
parent
da4bf59349
commit
36a0b950e5
@ -1,5 +1,7 @@
|
|||||||
2003-07-30 Werner Koch <wk@gnupg.org>
|
2003-07-30 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
|
||||||
|
|
||||||
* photoid.c, passphrase.c, g10.c, exec.c: Replaced some
|
* photoid.c, passphrase.c, g10.c, exec.c: Replaced some
|
||||||
__MINGW32__ by _WIN32.
|
__MINGW32__ by _WIN32.
|
||||||
|
|
||||||
|
@ -374,7 +374,11 @@ agent_send_all_options (int fd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!opt.ttyname)
|
if (!opt.ttyname)
|
||||||
dft_ttyname = tty_get_ttyname ();
|
{
|
||||||
|
dft_ttyname = getenv ("GPG_TTY");
|
||||||
|
if ((!dft_ttyname || !*dft_ttyname) && tty_get_ttyname ())
|
||||||
|
dft_ttyname = tty_get_ttyname ();
|
||||||
|
}
|
||||||
if (opt.ttyname || dft_ttyname)
|
if (opt.ttyname || dft_ttyname)
|
||||||
{
|
{
|
||||||
if (agent_send_option (fd, "ttyname",
|
if (agent_send_option (fd, "ttyname",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user