From 35be219c978ea1869cd6dae4649478e2d503a7b6 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Mon, 12 Aug 2019 18:59:54 +0100 Subject: [PATCH] Fix up key deletion by key ID with onak tool The call to db_delete_key() was claiming we were in a transaction, which isn't true and causes failures with deletion with DB4. --- onak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onak.c b/onak.c index 384b674..f4ece8f 100644 --- a/onak.c +++ b/onak.c @@ -389,11 +389,11 @@ int main(int argc, char *argv[]) } else if (!strcmp("delete", argv[optind])) { if (!isfp) { if (dbctx->fetch_key_id(dbctx, keyid, &keys, - true)) { + false)) { get_fingerprint(keys->publickey, &fingerprint); dbctx->delete_key(dbctx, &fingerprint, - true); + false); } } else dbctx->delete_key(dbctx, &fingerprint, false); -- 2.39.5