diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-08-24 04:57:13 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-08-24 04:57:13 +0000 |
commit | c3b2d959a7461cf6f9574716c8a7b915c078b311 (patch) | |
tree | 5582a29f8485231052b1f42451a9e180e6644504 /source | |
parent | ef5f4866fbbfa6be07cdc3e612a8899967d48289 (diff) | |
download | samba-c3b2d959a7461cf6f9574716c8a7b915c078b311.tar.gz samba-c3b2d959a7461cf6f9574716c8a7b915c078b311.tar.xz samba-c3b2d959a7461cf6f9574716c8a7b915c078b311.zip |
allow for 0 range locks in locktest
Diffstat (limited to 'source')
-rw-r--r-- | source/torture/locktest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/torture/locktest.c b/source/torture/locktest.c index f7f7c580aad..54cf0dd3518 100644 --- a/source/torture/locktest.c +++ b/source/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; |