mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
set O_CREAT on lock file
(This used to be commit 32fecea63b892e0a15c398cfc65d53c4ece74d86)
This commit is contained in:
parent
224c40a523
commit
6a0590d709
@ -117,7 +117,8 @@ static int rw_torture(int numops)
|
||||
int pid2, pid = getpid();
|
||||
int i;
|
||||
|
||||
fnum2 = cli_open(&cli, lockfname, O_RDWR | O_EXCL, DENY_NONE);
|
||||
fnum2 = cli_open(&cli, lockfname, O_RDWR | O_CREAT | O_EXCL,
|
||||
DENY_NONE);
|
||||
if (fnum2 == -1)
|
||||
fnum2 = cli_open(&cli, lockfname, O_RDWR, DENY_NONE);
|
||||
if (fnum2 == -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user