2004-03-23 Marcus Brinkmann <marcus@g10code.de>

* engine-gpgsm.c (gpgsm_new): Protect _only_ tty related code with
	isatty().  Submitted by Bernhard Herzog.
This commit is contained in:
Marcus Brinkmann 2004-03-23 18:10:13 +00:00
parent e17289e77c
commit 3816adb43a
2 changed files with 37 additions and 32 deletions

View File

@ -1,3 +1,8 @@
2004-03-23 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (gpgsm_new): Protect _only_ tty related code with
isatty(). Submitted by Bernhard Herzog.
2004-03-11 Marcus Brinkmann <marcus@g10code.de> 2004-03-11 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (gpgsm_new): Protect all tty related code with * engine-gpgsm.c (gpgsm_new): Protect all tty related code with

View File

@ -490,6 +490,8 @@ gpgsm_new (void **engine, const char *lc_ctype, const char *lc_messages)
goto leave; goto leave;
} }
} }
}
}
if (lc_ctype) if (lc_ctype)
{ {
@ -522,8 +524,6 @@ gpgsm_new (void **engine, const char *lc_ctype, const char *lc_messages)
} }
if (err) if (err)
goto leave; goto leave;
}
}
if (!err if (!err
&& (_gpgme_io_set_close_notify (gpgsm->status_cb.fd, && (_gpgme_io_set_close_notify (gpgsm->status_cb.fd,