diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2019-06-04 04:35:06 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2019-06-04 04:35:06 +0200 |
commit | 0076bef2026a87c4c0e05bad7d322638b1de3f37 (patch) | |
tree | 1f9312a7d204e8984c7d135b19b79588e458d5dc /agent | |
parent | agent: Add pinentry_loopback_confirm declaration. (diff) | |
download | gnupg2-0076bef2026a87c4c0e05bad7d322638b1de3f37.tar.xz gnupg2-0076bef2026a87c4c0e05bad7d322638b1de3f37.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 <gniibe@fsij.org>
Diffstat (limited to 'agent')
-rw-r--r-- | agent/call-pinentry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c index c2105cd6e..02ec1c8c8 100644 --- a/agent/call-pinentry.c +++ b/agent/call-pinentry.c @@ -438,7 +438,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 ) |