mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
agent: Allow TERM="".
* agent/call-pinentry.c (start_pinentry): When TERM is none, don't send OPTION ttytype to pinentry. -- GnuPG-bug-id: 4137 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org> (cherry picked from commit 0076bef2026a87c4c0e05bad7d322638b1de3f37)
This commit is contained in:
parent
2969525a60
commit
4c8d5eb0bd
@ -455,7 +455,7 @@ start_pinentry (ctrl_t ctrl)
|
|||||||
return unlock_pinentry (ctrl, rc);
|
return unlock_pinentry (ctrl, rc);
|
||||||
}
|
}
|
||||||
value = session_env_getenv (ctrl->session_env, "TERM");
|
value = session_env_getenv (ctrl->session_env, "TERM");
|
||||||
if (value)
|
if (value && *value)
|
||||||
{
|
{
|
||||||
char *optstr;
|
char *optstr;
|
||||||
if (asprintf (&optstr, "OPTION ttytype=%s", value) < 0 )
|
if (asprintf (&optstr, "OPTION ttytype=%s", value) < 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user