From: Michael Tremer Date: Wed, 29 Nov 2017 15:23:36 +0000 (+0100) Subject: key: Don't access pakfire path directly X-Git-Tag: 0.9.28~1285^2~1251 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b48fe2d0b1897a9cf3b6f5ece59f4736b0424925;p=pakfire.git key: Don't access pakfire path directly Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/key.c b/src/libpakfire/key.c index 1e1a84fee..f38b6332e 100644 --- a/src/libpakfire/key.c +++ b/src/libpakfire/key.c @@ -48,7 +48,8 @@ gpgme_ctx_t pakfire_get_gpgctx(Pakfire pakfire) { goto FAIL; // Use GPG - char* home = pakfire_path_join(pakfire->path, "/etc/pakfire/gnupg"); + const char* path = pakfire_get_path(pakfire); + char* home = pakfire_path_join(path, "etc/pakfire/gnupg"); error = gpgme_set_engine_info(GPGME_PROTOCOL_OpenPGP, NULL, home); pakfire_free(home); if (gpg_err_code(error) != GPG_ERR_NO_ERROR)