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:
parent
a22db179a9
commit
98e407a021
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user