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:
parent
567a31c2a0
commit
ed8e267859
15 changed files with 37 additions and 24 deletions
|
@ -246,7 +246,7 @@ g13_create_container (ctrl_t ctrl, const char *filename, strlist_t keys)
|
|||
/* Take a lock and proceed with the creation. If there is a lock we
|
||||
immediately return an error because for creation it does not make
|
||||
sense to wait. */
|
||||
lock = dotlock_create (filename);
|
||||
lock = dotlock_create (filename, 0);
|
||||
if (!lock)
|
||||
return gpg_error_from_syserror ();
|
||||
if (dotlock_take (lock, 0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue