git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
224c40a
)
set O_CREAT on lock file
author
Andrew Tridgell
<tridge@samba.org>
Sat, 1 Nov 1997 13:28:21 +0000
(13:28 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sat, 1 Nov 1997 13:28:21 +0000
(13:28 +0000)
(This used to be commit
32fecea63b892e0a15c398cfc65d53c4ece74d86
)
source3/utils/torture.c
patch
|
blob
|
history
diff --git
a/source3/utils/torture.c
b/source3/utils/torture.c
index bc7ebfb335ac69c6872c3a428b882d86730da216..9363958542f97e6238bfdb671905bb37e5ecd280 100644
(file)
--- a/
source3/utils/torture.c
+++ b/
source3/utils/torture.c
@@
-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) {