common: Fix buffer copy code again.
authorWerner Koch <wk@gnupg.org>
Thu, 19 Jan 2017 13:58:23 +0000 (14:58 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 19 Jan 2017 13:58:23 +0000 (14:58 +0100)
commite031b3c16cfec583c4322c84d299b355f0849c77
treefb5feef8d2792f189d92880872613e8bf89fcae3
parent3daeef702b2e6a42f0f396b828f86ffc3f33fc88
common: Fix buffer copy code again.

* common/exectool.c (my_error_from_errno): Remove.
(copy_buffer_do_copy): Do without var RC.
(copy_buffer_flush): Ditto.  Use ERRNO instead of es_write return
code.
(gnupg_exec_tool): Correctly return errors from es_read.
--

Fixes-commit: 55c9212a2338bf0b07c8cf3a69bcedaa28d48d43
Signed-off-by: Werner Koch <wk@gnupg.org>
common/exectool.c