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:
@ -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. */
|
||||
/*********************************************
|
||||
|
Reference in New Issue
Block a user