The branch, master has been updated
       via  783aa1d7ce9 s3/smbd: Conditionally define smb2_request_to_snum()
      from  89196c9875c s3:winbind: Delegate normalize_name_unmap to the idmap 
child in winbindd_getgroups

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 783aa1d7ce91803ff0b6d410732f130092f485f7
Author: Anoop C S <[email protected]>
Date:   Tue Jun 24 15:18:34 2025 +0530

    s3/smbd: Conditionally define smb2_request_to_snum()
    
    As of now smb2_request_to_snum() is only meaningful when profiling is
    enabled.
    
    Signed-off-by: Anoop C S <[email protected]>
    Reviewed-by: Martin Schwenke <[email protected]>
    
    Autobuild-User(master): Anoop C S <[email protected]>
    Autobuild-Date(master): Tue Jun 24 14:24:57 UTC 2025 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 source3/smbd/smb2_server.c | 2 ++
 1 file changed, 2 insertions(+)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 138ada1db59..dd5196e7fd0 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -3056,12 +3056,14 @@ static NTSTATUS 
smbd_smb2_request_dispatch_update_counts(
        return status;
 }
 
+#ifdef WITH_PROFILE
 static int smb2_request_to_snum(const struct smbd_smb2_request *req)
 {
        return (req->tcon != NULL) && (req->tcon->compat != NULL)
                       ? SNUM(req->tcon->compat)
                       : GLOBAL_SECTION_SNUM;
 }
+#endif
 
 NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
 {


-- 
Samba Shared Repository

Reply via email to