2008-09-16 Marcus Brinkmann <marcus@g10code.com>

* rungpg.c (gpg_new): Don't use errno with ttyname_r.
This commit is contained in:
Marcus Brinkmann 2008-09-16 15:23:23 +00:00
parent 26c0edc270
commit f300cd09b4
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2008-09-16 Marcus Brinkmann <marcus@g10code.com>
* rungpg.c (gpg_new): Don't use errno with ttyname_r.
2008-08-11 Marcus Brinkmann <marcus@g10code.com> 2008-08-11 Marcus Brinkmann <marcus@g10code.com>
* rungpg.c (gpg_cancel): Remove cmd fd before status fd. * rungpg.c (gpg_cancel): Remove cmd fd before status fd.
@ -12,7 +16,7 @@
* rungpg.c (command_handler): Remove I/O callback on error, too. * rungpg.c (command_handler): Remove I/O callback on error, too.
2008-06-29 Marcus Brinkmann <marcus@ulysses.g10code.com> 2008-06-29 Marcus Brinkmann <marcus@g10code.com>
* gpgme.c (gpgme_cancel_async): Remove unused variable. * gpgme.c (gpgme_cancel_async): Remove unused variable.

View File

@ -516,7 +516,7 @@ gpg_new (void **engine, const char *file_name, const char *home_dir)
err = ttyname_r (1, dft_ttyname, sizeof (dft_ttyname)); err = ttyname_r (1, dft_ttyname, sizeof (dft_ttyname));
if (err) if (err)
rc = gpg_error_from_errno (errno); rc = gpg_error_from_errno (err);
else else
{ {
if (*dft_ttyname) if (*dft_ttyname)