summaryrefslogtreecommitdiffstats
path: root/g10/keyring.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-08-24 11:34:39 +0200
committerWerner Koch <wk@gnupg.org>2007-08-24 11:34:39 +0200
commit503f91e0aea99fe09064e29ec9df1ded1a3bd3c3 (patch)
treee3dd4b252d6d05a5aa15aea799ab9447ea74ccbd /g10/keyring.c
parentAdd new features to kbxutil. (diff)
downloadgnupg2-503f91e0aea99fe09064e29ec9df1ded1a3bd3c3.tar.xz
gnupg2-503f91e0aea99fe09064e29ec9df1ded1a3bd3c3.zip
tryu harder to ignore duplicate specified keyrings and -boxes.
Documentation updates.
Diffstat (limited to 'g10/keyring.c')
-rw-r--r--g10/keyring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/keyring.c b/g10/keyring.c
index 67ac018c6..937502ab2 100644
--- a/g10/keyring.c
+++ b/g10/keyring.c
@@ -206,10 +206,10 @@ keyring_register_filename (const char *fname, int secret, void **ptr)
for (kr=kr_names; kr; kr = kr->next)
{
- if ( !compare_filenames (kr->fname, fname) )
+ if (same_file_p (kr->fname, fname))
{
*ptr=kr;
- return 0; /* already registered */
+ return 0; /* Already registered. */
}
}