*** empty log message ***
This commit is contained in:
parent
f7e02a469f
commit
9ee42a1e47
@ -1,5 +1,8 @@
|
||||
2004-03-11 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* engine-gpgsm.c (gpgsm_new): Protect all tty related code with
|
||||
isatty().
|
||||
|
||||
* rungpg.c (gpg_cancel): Set GPG->fd_data_map to NULL after
|
||||
releasing it.
|
||||
* engine-gpgsm.c (gpgsm_cancel): Only call assuan_disconnect if
|
||||
|
@ -445,6 +445,8 @@ gpgsm_new (void **engine, const char *lc_ctype, const char *lc_messages)
|
||||
}
|
||||
}
|
||||
|
||||
if (isatty (1))
|
||||
{
|
||||
if (ttyname_r (1, dft_ttyname, sizeof (dft_ttyname)))
|
||||
{
|
||||
err = gpg_error_from_errno (errno);
|
||||
@ -479,8 +481,8 @@ gpgsm_new (void **engine, const char *lc_ctype, const char *lc_messages)
|
||||
}
|
||||
free (dft_ttytype);
|
||||
|
||||
err = assuan_transact (gpgsm->assuan_ctx, optstr, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
err = assuan_transact (gpgsm->assuan_ctx, optstr, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL);
|
||||
free (optstr);
|
||||
if (err)
|
||||
{
|
||||
@ -521,6 +523,7 @@ gpgsm_new (void **engine, const char *lc_ctype, const char *lc_messages)
|
||||
if (err)
|
||||
goto leave;
|
||||
}
|
||||
}
|
||||
|
||||
if (!err
|
||||
&& (_gpgme_io_set_close_notify (gpgsm->status_cb.fd,
|
||||
|
Loading…
Reference in New Issue
Block a user