[git] GPG-ERROR - branch, master, updated. libgpg-error-1.26-8-g55c4979

by Werner Koch cvs at cvs.gnupg.org
Thu Jan 19 13:00:01 CET 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Error codes used by GnuPG et al.".

The branch, master has been updated
       via  55c497904dd0794ca5cfcafe369943736b0d4e62 (commit)
      from  66275ac5b8db9d83a72b5497eec4e6d9ac3b4e65 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 55c497904dd0794ca5cfcafe369943736b0d4e62
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Jan 19 12:55:44 2017 +0100

    estream: Correctly set ERRNO to EOPNOTSUPP.
    
    * src/estream.c (es_flush, es_write_nbf): Fix setting of ERRNO to
    EOPNOTSUPP.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/src/estream.c b/src/estream.c
index 58d5d03..045182b 100644
--- a/src/estream.c
+++ b/src/estream.c
@@ -1886,7 +1886,8 @@ es_flush (estream_t stream)
 
       if (! func_write)
 	{
-	  err = EOPNOTSUPP;
+          _set_errno (EOPNOTSUPP);
+          err = -1;
 	  goto out;
 	}
 
@@ -2555,7 +2556,8 @@ es_write_nbf (estream_t _GPGRT__RESTRICT stream,
 
   if (bytes_to_write && (! func_write))
     {
-      err = EOPNOTSUPP;
+      _set_errno (EOPNOTSUPP);
+      err = -1;
       goto out;
     }
 

-----------------------------------------------------------------------

Summary of changes:
 src/estream.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Error codes used by GnuPG et al.
http://git.gnupg.org




More information about the Gnupg-commits mailing list