From f300cd09b4b409bb856573c49e89517cb05eb2f4 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 16 Sep 2008 15:23:23 +0000 Subject: [PATCH] 2008-09-16 Marcus Brinkmann * rungpg.c (gpg_new): Don't use errno with ttyname_r. --- gpgme/ChangeLog | 6 +++++- gpgme/rungpg.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 8be44090..c42f4ba4 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 39d66d31..76bcaaed 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)