1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

allow for 0 range locks in locktest

(This used to be commit c3b2d959a7)
This commit is contained in:
Andrew Tridgell 2001-08-24 04:57:13 +00:00
parent a22db179a9
commit 98e407a021

View File

@ -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;