aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/gpg.c7
1 files changed, 7 insertions, 0 deletions
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);