mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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@g10code.com>
This commit is contained in:
parent
5b28f02508
commit
b0348fdb26
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user