From: Andrew Tridgell Date: Fri, 24 Aug 2001 04:57:13 +0000 (+0000) Subject: allow for 0 range locks in locktest X-Git-Tag: samba-4.0.0alpha6~801^2~17528 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98e407a02169f65c5518472f9e1edf7ec79c3a8c;p=thirdparty%2Fsamba.git allow for 0 range locks in locktest (This used to be commit c3b2d959a7461cf6f9574716c8a7b915c078b311) --- diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c index f7f7c580aad..54cf0dd3518 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;