1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Fixed the bug locktest.c found, it was an off-by-one error in the non-overlap

case.
Jeremy.
(This used to be commit 65150c408a)
This commit is contained in:
Jeremy Allison
2000-05-03 19:37:47 +00:00
parent 0d917c6cd6
commit 756798d000

View 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. */
/*********************************************