1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

set O_CREAT on lock file

(This used to be commit 32fecea63b)
This commit is contained in:
Andrew Tridgell 1997-11-01 13:28:21 +00:00
parent 224c40a523
commit 6a0590d709

View File

@ -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) {