]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: apply leases restriction from tcon->smb_max_lease_mask
authorRalph Boehme <slow@samba.org>
Wed, 18 Sep 2019 19:11:36 +0000 (12:11 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 17 Jul 2026 10:18:36 +0000 (10:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/smbd/open.c

index 20500e1f1bbc502cd7e6f976c019db7b4a2e81d5..cac28775030729436f194b1b199a61c61c028342 100644 (file)
@@ -2673,6 +2673,7 @@ grant:
        }
 
        granted = requested;
+       granted &= fsp->conn->tcon->smb_max_lease_mask;
 
        if (fsp->fsp_flags.is_directory) {
                /*