[PATCH gpgme v3 4/5] gpg: Add option --exit-on-status-write-error

Daiki Ueno ueno at gnu.org
Tue Feb 9 09:03:53 CET 2016


* src/engine-gpg.c (gpg_new): Add --exit-on-status-write-error if the
engine version is latest enough to expect progress output from gpg.

GnuPG-bug-id: 1415
Signed-off-by: Daiki Ueno <ueno at gnu.org>
---
 src/engine-gpg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/engine-gpg.c b/src/engine-gpg.c
index f2d6613..2f200f1 100644
--- a/src/engine-gpg.c
+++ b/src/engine-gpg.c
@@ -501,6 +501,8 @@ gpg_new (void **engine, const char *file_name, const char *home_dir,
     rc = add_arg (gpg, "utf8");
   if (!rc)
     rc = add_arg (gpg, "--enable-progress-filter");
+  if (!rc && version && _gpgme_compare_versions (version, "2.1.11"))
+    rc = add_arg (gpg, "--exit-on-status-write-error");
   if (rc)
     goto leave;
 
-- 
2.5.0




More information about the Gnupg-devel mailing list