1 From: NIIBE Yutaka <gniibe@fsij.org>
2 Date: Wed, 12 Apr 2017 16:01:16 +0900
3 Subject: tools: Fix condition for gpg-connect-agent.
5 * tools/gpg-connect-agent.c (start_agent): Add paren.
9 The intention is comparing the error code depending opt.use_dirmngr.
10 Considering C Operator Precedence, we should have paren here.
12 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
13 (cherry picked from commit f52f6af834cc488d11612e349e4af023d69a45f4)
15 tools/gpg-connect-agent.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c
19 index a5413cf..5af1465 100644
20 --- a/tools/gpg-connect-agent.c
21 +++ b/tools/gpg-connect-agent.c
22 @@ -2237,7 +2237,7 @@ start_agent (void)
25 && (gpg_err_code (err)
26 - == opt.use_dirmngr? GPG_ERR_NO_DIRMNGR : GPG_ERR_NO_AGENT))
27 + == (opt.use_dirmngr? GPG_ERR_NO_DIRMNGR : GPG_ERR_NO_AGENT)))
29 /* In the no-autostart case we don't make gpg-connect-agent
30 fail on a missing server. */