Fixed the bug locktest.c found, it was an off-by-one error in the non-overlap
authorJeremy Allison <jra@samba.org>
Wed, 3 May 2000 19:37:47 +0000 (19:37 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 3 May 2000 19:37:47 +0000 (19:37 +0000)
case.
Jeremy.
(This used to be commit 65150c408a5254215de89c8c774c33c4d011c2c0)

source3/locking/posix.c

index 5dd7f1847083db056e26bda451cd2304f672226b..752311e76f5be62b6394ff40817b371481a559dd 100644 (file)
@@ -957,7 +957,7 @@ static struct unlock_list *posix_unlock_list(TALLOC_CTX *ctx, struct unlock_list
                                (double)lock->start, (double)lock->size ));
 
                        if ( (ul_curr->start >= (lock->start + lock->size)) ||
-                                (lock->start > (ul_curr->start + ul_curr->size))) {
+                                (lock->start >= (ul_curr->start + ul_curr->size))) {
 
                                /* No overlap with this lock - leave this range alone. */
 /*********************************************