From 378f4d3a7ad570dd99edb87ddf48e9752006c297 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 16 Oct 2005 19:38:32 +0000 Subject: [PATCH] 2005-10-16 Marcus Brinkmann * rungpg.c (gpg_edit): Don't add a key argument if in card edit mode. --- gpgme/ChangeLog | 5 +++++ gpgme/rungpg.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index d77adcf..880ec6b 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2005-10-16 Marcus Brinkmann + + * rungpg.c (gpg_edit): Don't add a key argument if in card edit + mode. + 2005-10-06 Marcus Brinkmann * Makefile.am (gpgme.dll gpgme.dll.a): Use $(srcdir) for diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c index 33c46ed..44db825 100644 --- a/gpgme/rungpg.c +++ b/gpgme/rungpg.c @@ -1356,7 +1356,7 @@ gpg_edit (void *engine, int type, gpgme_key_t key, gpgme_data_t out, err = add_data (gpg, out, 1, 1); if (!err) err = add_arg (gpg, "--"); - if (!err) + if (!err && type == 0) { const char *s = key->subkeys ? key->subkeys->fpr : NULL; if (!s) -- 2.26.2