From 867ecae83f35499f533cba604db911c9bf935543 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. --- trunk/gpgme/ChangeLog | 6 +++++- trunk/gpgme/rungpg.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 8be4409..c42f4ba 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/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/trunk/gpgme/rungpg.c b/trunk/gpgme/rungpg.c index 39d66d3..76bcaae 100644 --- a/trunk/gpgme/rungpg.c +++ b/trunk/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) -- 2.26.2