From 6a0590d7090972652966c3767cbb7697abfdcb0d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 1 Nov 1997 13:28:21 +0000 Subject: set O_CREAT on lock file (This used to be commit 32fecea63b892e0a15c398cfc65d53c4ece74d86) --- source3/utils/torture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/utils') 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) { -- cgit