From 756798d00050eea4468c2d8bb0c3b98390c0e8eb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 3 May 2000 19:37:47 +0000 Subject: Fixed the bug locktest.c found, it was an off-by-one error in the non-overlap case. Jeremy. (This used to be commit 65150c408a5254215de89c8c774c33c4d011c2c0) --- source3/locking/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/locking/posix.c b/source3/locking/posix.c index 5dd7f18470..752311e76f 100644 --- a/source3/locking/posix.c +++ b/source3/locking/posix.c @@ -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. */ /********************************************* -- cgit