summaryrefslogtreecommitdiffstats
path: root/kbx/kbxserver.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-04-21 14:31:57 +0200
committerWerner Koch <wk@gnupg.org>2021-04-21 14:40:08 +0200
commitf79e9540ca643b5cb912e7bfca2af56be428efed (patch)
treec42c5982dd893d2846dd3dd85067f6ad8918c7b3 /kbx/kbxserver.c
parentgpg,sm: Ignore the log-file option from common.conf. (diff)
downloadgnupg2-f79e9540ca643b5cb912e7bfca2af56be428efed.tar.xz
gnupg2-f79e9540ca643b5cb912e7bfca2af56be428efed.zip
keyboxd: Fix searching for exact mail addresses.
* kbx/kbxserver.c (cmd_search): Use the openpgp hack for calling classify_user_id. * kbx/backend-sqlite.c (run_select_statement): Remove angle brackets in exact addrspec mode. * g10/call-keyboxd.c (keydb_search): Do not duplicate the left angle bracket. * sm/keydb.c (keydb_search): Ditto. -- Note that the openpgp hack flag of classify_user_id is actually a misnomer because we actually hack a round a problem in gpgsm. And it is only over there that we don't set it there. In keyboxd the flag should be set. And we need to remove the angle brackets of course because that is how we create the addrspec column values. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'kbx/kbxserver.c')
-rw-r--r--kbx/kbxserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kbx/kbxserver.c b/kbx/kbxserver.c
index 8a75035a5..55b478586 100644
--- a/kbx/kbxserver.c
+++ b/kbx/kbxserver.c
@@ -336,7 +336,7 @@ cmd_search (assuan_context_t ctx, char *line)
}
else
{
- err = classify_user_id (line, &ctrl->server_local->search_desc, 0);
+ err = classify_user_id (line, &ctrl->server_local->search_desc, 1);
if (err)
goto leave;
}