From 479c2775d5df64432c1bf64faae7f9abd3042850 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 17 Jun 2019 13:56:13 +0200 Subject: [PATCH] scd: Use the correct gpg for the v1.0 OpenPGP card hack. * scd/app-openpgp.c (get_public_key): Use gnupg_module_name instead of just "gpg". -- There is no bug report regarding this and it would be very unlikely but we should always use the gpg belonging to our code. Signed-off-by: Werner Koch --- scd/app-openpgp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index aa21529c6..f174e2e2a 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -1731,7 +1731,8 @@ get_public_key (app_t app, int keyno) hexkeyid = fpr + 24; ret = gpgrt_asprintf - (&command, "gpg --list-keys --with-colons --with-key-data '%s'", fpr); + (&command, "%s --list-keys --with-colons --with-key-data '%s'", + gnupg_module_name (GNUPG_MODULE_NAME_GPG), fpr); if (ret < 0) { err = gpg_error_from_syserror ();