From: Marcus Brinkmann Date: Sun, 16 Oct 2005 19:38:32 +0000 (+0000) Subject: 2005-10-16 Marcus Brinkmann X-Git-Tag: gpgme-1-1-1~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=378f4d3a7ad570dd99edb87ddf48e9752006c297;p=gpgme.git 2005-10-16 Marcus Brinkmann * rungpg.c (gpg_edit): Don't add a key argument if in card edit mode. --- 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)