mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tryu harder to ignore duplicate specified keyrings and -boxes.
Documentation updates.
This commit is contained in:
parent
698ba5ae3c
commit
503f91e0ae
14 changed files with 137 additions and 16 deletions
|
@ -1,3 +1,7 @@
|
|||
2007-08-24 Werner Koch <wk@g10code.com>
|
||||
|
||||
* keybox-init.c (keybox_register_file): Use same_file_p.
|
||||
|
||||
2007-08-23 Werner Koch <wk@g10code.com>
|
||||
|
||||
* kbxutil.c: New commands --find-dups and --cut. New options
|
||||
|
|
|
@ -24,10 +24,9 @@
|
|||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "../jnlib/mischelp.h"
|
||||
#include "keybox-defs.h"
|
||||
|
||||
#define compare_filenames strcmp
|
||||
|
||||
static KB_NAME kb_names;
|
||||
|
||||
|
||||
|
@ -42,8 +41,8 @@ keybox_register_file (const char *fname, int secret)
|
|||
|
||||
for (kr=kb_names; kr; kr = kr->next)
|
||||
{
|
||||
if ( !compare_filenames (kr->fname, fname) )
|
||||
return NULL; /* already registered */
|
||||
if (same_file_p (kr->fname, fname) )
|
||||
return NULL; /* Already registered. */
|
||||
}
|
||||
|
||||
kr = xtrymalloc (sizeof *kr + strlen (fname));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue