[Pkg-gnupg-commit] [libgpg-error] 08/29: estream: Correctly set ERRNO to EOPNOTSUPP.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Sun Mar 5 00:41:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository libgpg-error.
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>
---
src/estream.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libgpg-error.git
More information about the Pkg-gnupg-commit
mailing list