diff options
author | Marcus Brinkmann <mb@g10code.com> | 2006-05-22 16:35:04 +0200 |
---|---|---|
committer | Marcus Brinkmann <mb@g10code.com> | 2006-05-22 16:35:04 +0200 |
commit | 11544e7184b0eab8f3058ee3c5f87e94118a7bf3 (patch) | |
tree | 67f5b64a79b37cd78c866edd41bb9e6895deaddb /sm/delete.c | |
parent | Added sample certificates. (diff) | |
download | gnupg2-11544e7184b0eab8f3058ee3c5f87e94118a7bf3.tar.xz gnupg2-11544e7184b0eab8f3058ee3c5f87e94118a7bf3.zip |
2006-05-19 Marcus Brinkmann <marcus@g10code.de>
* keydb.c (keydb_insert_cert): Do not lock here, but only check if
it is locked.
(keydb_store_cert): Lock here.
* keydb.h (keydb_delete): Accept new argument UNLOCK.
* keydb.c (keydb_delete): Likewise. Only unlock if this is set.
* delete.c (delete_one): Add new argument to invocation of
keydb_delete.
Diffstat (limited to 'sm/delete.c')
-rw-r--r-- | sm/delete.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/delete.c b/sm/delete.c index 8e06b9489..7533f7291 100644 --- a/sm/delete.c +++ b/sm/delete.c @@ -124,7 +124,7 @@ delete_one (CTRL ctrl, const char *username) goto leave; } - rc = keydb_delete (kh); + rc = keydb_delete (kh, duplicates ? 0 : 1); if (rc) goto leave; if (opt.verbose) |