summaryrefslogtreecommitdiffstats
path: root/g10/keyring.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-09-28 15:41:58 +0200
committerWerner Koch <wk@gnupg.org>2011-09-28 15:41:58 +0200
commited8e267859a00233fee89a6b1b7fb3d74ceced96 (patch)
treee74d7b7af18297021f1e7548899d07badb464a0a /g10/keyring.c
parentAllow arbitrary timeouts with dotlock. (diff)
downloadgnupg2-ed8e267859a00233fee89a6b1b7fb3d74ceced96.tar.xz
gnupg2-ed8e267859a00233fee89a6b1b7fb3d74ceced96.zip
Add a flag parameter to dotlock_create.
This allows us to extend this function in the future.
Diffstat (limited to 'g10/keyring.c')
-rw-r--r--g10/keyring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keyring.c b/g10/keyring.c
index 480c0e9bd..4eb26aab6 100644
--- a/g10/keyring.c
+++ b/g10/keyring.c
@@ -306,7 +306,7 @@ keyring_lock (KEYRING_HANDLE hd, int yes)
if (!keyring_is_writable(kr))
continue;
if (!kr->lockhd) {
- kr->lockhd = dotlock_create( kr->fname );
+ kr->lockhd = dotlock_create (kr->fname, 0);
if (!kr->lockhd) {
log_info ("can't allocate lock for `%s'\n", kr->fname );
rc = G10ERR_GENERAL;