2005-10-16 Marcus Brinkmann <marcus@g10code.de>

* rungpg.c (gpg_edit): Don't add a key argument if in card edit
	mode.
This commit is contained in:
Marcus Brinkmann 2005-10-16 19:38:32 +00:00
parent 81735c3e4c
commit 378f4d3a7a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-10-16 Marcus Brinkmann <marcus@g10code.de>
* rungpg.c (gpg_edit): Don't add a key argument if in card edit
mode.
2005-10-06 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am (gpgme.dll gpgme.dll.a): Use $(srcdir) for

View File

@ -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)