mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44: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>
|
||||
|
||||
* passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
|
||||
|
||||
* photoid.c, passphrase.c, g10.c, exec.c: Replaced some
|
||||
__MINGW32__ by _WIN32.
|
||||
|
||||
|
@ -374,7 +374,11 @@ agent_send_all_options (int fd)
|
||||
}
|
||||
|
||||
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 (agent_send_option (fd, "ttyname",
|
||||
|
Loading…
x
Reference in New Issue
Block a user