aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-06-04 02:35:06 +0000
committerWerner Koch <[email protected]>2020-08-26 13:12:06 +0000
commit4c8d5eb0bdd380c412c5f5fbc2b92fe6bcea825d (patch)
treebe9712717b0d68ff44a2f0e9e73b33bccedf47e1
parentspeedo: Allow customizing the release process (diff)
downloadgnupg-4c8d5eb0bdd380c412c5f5fbc2b92fe6bcea825d.tar.gz
gnupg-4c8d5eb0bdd380c412c5f5fbc2b92fe6bcea825d.zip
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 <[email protected]> (cherry picked from commit 0076bef2026a87c4c0e05bad7d322638b1de3f37)
-rw-r--r--agent/call-pinentry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index 2af94c9cd..c306d1b72 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -455,7 +455,7 @@ start_pinentry (ctrl_t ctrl)
return unlock_pinentry (ctrl, rc);
}
value = session_env_getenv (ctrl->session_env, "TERM");
- if (value)
+ if (value && *value)
{
char *optstr;
if (asprintf (&optstr, "OPTION ttytype=%s", value) < 0 )