diff options
| author | Daiki Ueno <[email protected]> | 2015-07-27 07:19:52 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2015-08-25 17:11:30 +0000 |
| commit | 028a0ef3336c5180797fb247448683195376c007 (patch) | |
| tree | bc399a9d05095ee3b277dce3eebb50ba437419ea /tests/gpgsm/t-decrypt.c | |
| parent | Cleanup layout of gpgme.h (diff) | |
| download | gpgme-028a0ef3336c5180797fb247448683195376c007.tar.gz gpgme-028a0ef3336c5180797fb247448683195376c007.zip | |
Relax ttyname_r error checks
* src/engine-assuan.c (llass_new): Don't treat ttyname_r error as
fatal.
* src/engine-g13.c (g13_new): Likewise.
* src/engine-gpg.c (gpg_new): Likewise.
* src/engine-gpgsm.c (gpgsm_new): Likewise.
* src/engine-uiserver.c (uiserver_new): Likewise.
--
Even though isatty() returns 1, ttyname_r() may fail in many ways, e.g.,
when /dev/pts is not accessible under chroot. Since all our uses of
ttyname_r() require that the function works, we can treat the failure as
if isatty() fails.
Signed-off-by: Daiki Ueno <[email protected]>
Diffstat (limited to 'tests/gpgsm/t-decrypt.c')
0 files changed, 0 insertions, 0 deletions
