1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Add a flag parameter to dotlock_create.

This allows us to extend this function in the future.
This commit is contained in:
Werner Koch 2011-09-28 15:41:58 +02:00
parent 567a31c2a0
commit ed8e267859
15 changed files with 37 additions and 24 deletions

View file

@ -136,7 +136,7 @@ maybe_create_keyring (char *filename, int force)
/* To avoid races with other instances of gpg trying to create or
update the keyring (it is removed during an update for a short
time), we do the next stuff in a locked state. */
lockhd = dotlock_create (filename);
lockhd = dotlock_create (filename, 0);
if (!lockhd)
{
/* A reason for this to fail is that the directory is not