mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* asshelp.c (send_pinentry_environment) [W32]: Do not use ttyname.
* w32-pth.c, w32-pth.h: New. * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because under W32 we need the w32 pth code from jnlib. * misc.c (setup_pinentry_env) [W32]: Disabled.
This commit is contained in:
parent
0a058ac53c
commit
b50a587d8d
10 changed files with 75 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-12-07 Werner Koch <wk@g10code.com>
|
||||
|
||||
* asshelp.c (send_pinentry_environment) [W32]: Do not use ttyname.
|
||||
|
||||
2004-12-06 Werner Koch <wk@g10code.com>
|
||||
|
||||
* exechelp.h, exechelp.c: New. Based on code from ../sm/import.c.
|
||||
|
|
|
@ -66,8 +66,13 @@ send_pinentry_environment (assuan_context_t ctx,
|
|||
if (!opt_ttyname)
|
||||
{
|
||||
dft_ttyname = getenv ("GPG_TTY");
|
||||
#ifdef HAVE_DOSISH_SYSTEM
|
||||
if (!dft_ttyname || !*dft_ttyname )
|
||||
dft_ttyname = "/dev/tty"; /* Use a fake. */
|
||||
#else
|
||||
if ((!dft_ttyname || !*dft_ttyname) && ttyname (0))
|
||||
dft_ttyname = ttyname (0);
|
||||
#endif
|
||||
}
|
||||
if (opt_ttyname || dft_ttyname)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue