1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

smbd: force sync rename with lease break

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>
(cherry picked from commit bc2d879819)
This commit is contained in:
Ralph Boehme 2024-10-10 19:25:30 +02:00 committed by Jule Anger
parent b8a543f2cc
commit 4eaf7b8b85
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1 @@
^samba3.smb2.compound_async.rename_non_compound_no_async\(fileserver\)
^samba3.smb2.compound_async.rename_same_srcdst_non_compound_no_async\(fileserver\)
^samba3.smb2.compound_async.rename_last\(fileserver\)
^samba3.smb2.compound_async.rename_middle\(fileserver\) ^samba3.smb2.compound_async.rename_middle\(fileserver\)

View File

@ -120,7 +120,11 @@ NTSTATUS smbd_smb2_request_process_setinfo(struct smbd_smb2_request *req)
} }
tevent_req_set_callback(subreq, smbd_smb2_request_setinfo_done, req); tevent_req_set_callback(subreq, smbd_smb2_request_setinfo_done, req);
return smbd_smb2_request_pending_queue(req, subreq, 500); /*
* Windows never sends async interim responses if a rename triggers a
* lease break. See test smb2.lease.compound_rename_middle.
*/
return smbd_smb2_request_pending_queue(req, subreq, 0);
} }
static void smbd_smb2_request_setinfo_done(struct tevent_req *subreq) static void smbd_smb2_request_setinfo_done(struct tevent_req *subreq)