From c7cb6e486b75e74e2eb76dff256b529f54bf254d Mon Sep 17 00:00:00 2001 From: morganamilo Date: Fri, 1 Aug 2025 09:20:19 +0100 Subject: [PATCH] libalpm: fix importing keys from keyserver commit 95a7d416ce50446339c10c59b9ea25125a816adf broke key_search_keyserver() by removing the `ret = 1` at the end of the function, causing the caller to allways think the funciton failed even when it did not. Due to WKD being the primary method to import keys this was unnoticed. --- lib/libalpm/signing.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index 19aeaa5a..32aba2e1 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -376,6 +376,7 @@ static int key_search_keyserver(alpm_handle_t *handle, const char *fpr, pgpkey->expires = key->subkeys->expires; pgpkey->length = key->subkeys->length; pgpkey->revoked = key->subkeys->revoked; + ret = 1; gpg_error: if(ret != 1) {