Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F1646254
Fix for T4991
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
•
werner
Jul 14 2020, 11:25 AM
2020-07-14 11:25:33 (UTC+2)
Size
865 B
Subscribers
None
Fix for T4991
View Options
agent: Fix regression with --newsymkey in loopback mode.
In loopback mode there shall not be any repeat because the caller is
expected to do any confirmation before passing a new passphrase to
gpg.
Fixes-commit: d9e2dfa4c585de7c261fde13c18bd0f82415d6c3
as unfortunately released with 2.2.21.
GnuPG-bug-id: 4991
diff --git a/agent/command.c b/agent/command.c
--- a/agent/command.c
+++ b/agent/command.c
@@ -1595,7 +1595,8 @@ cmd_get_passphrase (assuan_context_t ctx, char *line)
pi2->failed_tries = 0;
continue;
}
- if (*pi->pin && !pi->repeat_okay)
+ if (*pi->pin && !pi->repeat_okay
+ && ctrl->pinentry_mode != PINENTRY_MODE_LOOPBACK)
{
/* The passphrase is empty and the pinentry did not
* already run the repetition check, do it here. This
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1030364
Attached To
T4897: Release GnuPG 2.2.21
Event Timeline
Log In to Comment