1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

smbd: fix breaking leases on rename

We must also break leases on other opens if the open of the rename doesn't have
a lease itself. The existing test test_lease_v2_rename() that was added
alongside the deferred rename server code didn't cover this case.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15697

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Oct 31 12:47:24 UTC 2024 on atb-devel-224

(cherry picked from commit efbbe8d6f8)

Autobuild-User(v4-21-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-21-test): Mon Dec  9 16:21:19 UTC 2024 on atb-devel-224
This commit is contained in:
Ralph Boehme 2024-10-10 19:29:09 +02:00 committed by Jule Anger
parent 4eaf7b8b85
commit e47866ae94
2 changed files with 0 additions and 5 deletions

View File

@ -1 +0,0 @@
^samba3.smb2.compound_async.rename_middle\(fileserver\)

View File

@ -242,10 +242,6 @@ static struct tevent_req *delay_rename_for_lease_break(struct tevent_req *req,
struct timeval timeout;
bool ok;
if (fsp->oplock_type != LEASE_OPLOCK) {
return NULL;
}
ok = share_mode_forall_leases(
lck, delay_rename_lease_break_fn, &state);
if (!ok) {