allow for 0 range locks in locktest
authorAndrew Tridgell <tridge@samba.org>
Fri, 24 Aug 2001 04:57:13 +0000 (04:57 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 24 Aug 2001 04:57:13 +0000 (04:57 +0000)
source/torture/locktest.c

index f7f7c580aad54e8096661dfb92fa0775f4173ef6..54cf0dd351898d121b82efffb4cbc8fd26469b86 100644 (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;