[Pkg-gnupg-commit] [gnupg2] 07/166: tools: Improve error handling.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Mar 16 22:33:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit b0348fdb26637b0bcbd68a96c1746a1613b309af
Author: Justus Winter <justus at g10code.com>
Date: Mon Jan 23 14:24:22 2017 +0100
tools: Improve error handling.
* tools/gpgconf-comp.c (gp_component_change_options): Improve error
handling when reading from stdin.
--
Previously, errors encountered while reading the configuration changes
were ignored.
Signed-off-by: Justus Winter <justus at g10code.com>
---
tools/gpgconf-comp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index 85eb80a..180fd65 100644
--- a/tools/gpgconf-comp.c
+++ b/tools/gpgconf-comp.c
@@ -3328,6 +3328,8 @@ gc_component_change_options (int component, estream_t in, estream_t out,
change_one_value (option, runtime, flags, new_value, 0);
}
+ if (length < 0 || gpgrt_ferror (in))
+ gc_error (1, errno, "error reading stream 'in'");
}
/* Now that we have collected and locally verified the changes,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list