diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-11-01 13:28:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-11-01 13:28:21 +0000 |
commit | 32fecea63b892e0a15c398cfc65d53c4ece74d86 (patch) | |
tree | 5d6fa7509161187c564632308e8b77d1c287e68d | |
parent | 054e3b2ae3a8cfb98fde72becef9b05de34d2ba7 (diff) | |
download | samba-32fecea63b892e0a15c398cfc65d53c4ece74d86.tar.gz samba-32fecea63b892e0a15c398cfc65d53c4ece74d86.tar.xz samba-32fecea63b892e0a15c398cfc65d53c4ece74d86.zip |
set O_CREAT on lock file
-rw-r--r-- | source/utils/torture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/utils/torture.c b/source/utils/torture.c index bc7ebfb335a..9363958542f 100644 --- a/source/utils/torture.c +++ b/source/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) { |