From eac081ba1278855fa223b031b527498fec558bc7 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 16 Jun 2015 16:00:39 +0200 Subject: [PATCH] Don't prompt for the password multiple times in pinentry loopback mode. * g10/gpg.c (main): If OPT.PINENTRY_MODE is PINENTRY_MODE_LOOPBACK, clear OPT.PASSPHRASE_REPEAT. --- g10/gpg.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/g10/gpg.c b/g10/gpg.c index 1801c878d..5eae24092 100644 --- a/g10/gpg.c +++ b/g10/gpg.c @@ -3531,6 +3531,13 @@ main (int argc, char **argv) } FREE_STRLIST(nrings); + if (opt.pinentry_mode == PINENTRY_MODE_LOOPBACK) + /* In loopback mode, never ask for the password multiple + times. */ + { + opt.passphrase_repeat = 0; + } + if (cmd == aGPGConfTest) g10_exit(0);