From d83b8f0dc84d6cf7fe2e091bd1b103ceedfa3d6c Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Mon, 26 Dec 2016 19:57:22 -0500 Subject: [PATCH] Fix GPGME_CREATE_NOPASSWD without pinentry loopback. * src/engine-gpg.c(gpg_createkey): Pass --batch to gpg when GPGME_CREATE_NOPASSWD is set. -- Signed-off-by: Ben Kibbey --- src/engine-gpg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine-gpg.c b/src/engine-gpg.c index 3ddaa07f..1b0e4c95 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -2136,6 +2136,8 @@ gpg_createkey (engine_gpg_t gpg, err = add_arg (gpg, "--passphrase"); if (!err) err = add_arg (gpg, ""); + if (!err) + err = add_arg (gpg, "--batch"); } if (!err && (flags & GPGME_CREATE_FORCE)) err = add_arg (gpg, "--yes");