summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-24 04:57:13 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-24 04:57:13 +0000
commit98e407a02169f65c5518472f9e1edf7ec79c3a8c (patch)
tree1ab9f76486179700fc51ebd24a506f8af3a959c7
parenta22db179a9439ab8455c3cbc13040c2d4a1f1882 (diff)
downloadsamba-98e407a02169f65c5518472f9e1edf7ec79c3a8c.tar.gz
samba-98e407a02169f65c5518472f9e1edf7ec79c3a8c.tar.bz2
samba-98e407a02169f65c5518472f9e1edf7ec79c3a8c.zip
allow for 0 range locks in locktest
(This used to be commit c3b2d959a7461cf6f9574716c8a7b915c078b311)
-rw-r--r--source3/torture/locktest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c
index f7f7c580aa..54cf0dd351 100644
--- a/source3/torture/locktest.c
+++ b/source3/torture/locktest.c
@@ -388,7 +388,7 @@ static void test_locks(char *share[NSERVERS])
recorded[n].conn = random() % NCONNECTIONS;
recorded[n].f = random() % NFILES;
recorded[n].start = LOCKBASE + ((unsigned)random() % (LOCKRANGE-1));
- recorded[n].len = 1 +
+ recorded[n].len =
random() % (LOCKRANGE-(recorded[n].start-LOCKBASE));
recorded[n].start *= RANGE_MULTIPLE;
recorded[n].len *= RANGE_MULTIPLE;