mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
agent: Relax the handling of pinentry error for keyboard grab.
* agent/call-pinentry.c (start_pinentry): It's not fatal when pinentry doesn't support no-grab/grab option. GnuPG-bug-id: 4587 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
b310604252
commit
02d8b38383
@ -423,7 +423,17 @@ start_pinentry (ctrl_t ctrl)
|
||||
opt.no_grab? "OPTION no-grab":"OPTION grab",
|
||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
if (rc)
|
||||
{
|
||||
if (gpg_err_code (rc) == GPG_ERR_NOT_SUPPORTED
|
||||
|| gpg_err_code (rc) == GPG_ERR_UNKNOWN_OPTION)
|
||||
{
|
||||
if (opt.verbose)
|
||||
log_info ("Option no-grab/grab is ignored by pinentry.\n");
|
||||
/* Keep going even if the feature is not supported. */
|
||||
}
|
||||
else
|
||||
return unlock_pinentry (ctrl, rc);
|
||||
}
|
||||
|
||||
value = session_env_getenv (ctrl->session_env, "GPG_TTY");
|
||||
if (value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user