summaryrefslogtreecommitdiffstats
path: root/scd
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-06-17 13:56:13 +0200
committerWerner Koch <wk@gnupg.org>2019-06-17 13:56:32 +0200
commit479c2775d5df64432c1bf64faae7f9abd3042850 (patch)
tree48dd846b001cb2b767fc98f99c8cc9c67d043ecb /scd
parentnote: previous commit 6e46862 fixes another minor doc issue fix. (diff)
downloadgnupg2-479c2775d5df64432c1bf64faae7f9abd3042850.tar.xz
gnupg2-479c2775d5df64432c1bf64faae7f9abd3042850.zip
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 <wk@gnupg.org>
Diffstat (limited to 'scd')
-rw-r--r--scd/app-openpgp.c3
1 files changed, 2 insertions, 1 deletions
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 ();