summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-11-01 13:28:21 +0000
committerAndrew Tridgell <tridge@samba.org>1997-11-01 13:28:21 +0000
commit6a0590d7090972652966c3767cbb7697abfdcb0d (patch)
tree6156d99931616e2efb82f90995b000337bf1a41d /source3
parent224c40a52335bf1afc7662183900e143307aa5be (diff)
downloadsamba-6a0590d7090972652966c3767cbb7697abfdcb0d.tar.gz
samba-6a0590d7090972652966c3767cbb7697abfdcb0d.tar.bz2
samba-6a0590d7090972652966c3767cbb7697abfdcb0d.zip
set O_CREAT on lock file
(This used to be commit 32fecea63b892e0a15c398cfc65d53c4ece74d86)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/torture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/torture.c b/source3/utils/torture.c
index bc7ebfb335..9363958542 100644
--- 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) {