mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
agent: Fix KEYATTR command for --delete option.
* agent/command.c (cmd_keyattr): Write the result. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
30b54a0ebb
commit
2c47c66627
@ -1253,7 +1253,10 @@ cmd_keyattr (assuan_context_t ctx, char *line)
|
||||
if (opt_delete)
|
||||
{
|
||||
if (e)
|
||||
nvc_delete (keymeta, e);
|
||||
{
|
||||
nvc_delete (keymeta, e);
|
||||
goto key_attr_write;
|
||||
}
|
||||
}
|
||||
else if (e)
|
||||
{
|
||||
@ -1265,6 +1268,7 @@ cmd_keyattr (assuan_context_t ctx, char *line)
|
||||
else if (argc == 3)
|
||||
{
|
||||
err = nvc_set (keymeta, argv[1], argv[2]);
|
||||
key_attr_write:
|
||||
if (!err)
|
||||
err = nvc_set_private_key (keymeta, s_key);
|
||||
if (!err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user