From: Marcus Brinkmann Date: Tue, 16 Sep 2008 15:23:23 +0000 (+0000) Subject: 2008-09-16 Marcus Brinkmann X-Git-Tag: gpgme-1.1.8~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f300cd09b4b409bb856573c49e89517cb05eb2f4;p=gpgme.git 2008-09-16 Marcus Brinkmann * rungpg.c (gpg_new): Don't use errno with ttyname_r. --- diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 8be4409..c42f4ba 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2008-09-16 Marcus Brinkmann + + * rungpg.c (gpg_new): Don't use errno with ttyname_r. + 2008-08-11 Marcus Brinkmann * 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. -2008-06-29 Marcus Brinkmann +2008-06-29 Marcus Brinkmann * gpgme.c (gpgme_cancel_async): Remove unused variable. diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c index 39d66d3..76bcaae 100644 --- a/gpgme/rungpg.c +++ b/gpgme/rungpg.c @@ -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)); if (err) - rc = gpg_error_from_errno (errno); + rc = gpg_error_from_errno (err); else { if (*dft_ttyname)