The branch, master has been updated
       via  1d1acebf019 smbd: fix mode being sent to possibly_set_archive
      from  12e50a8646d vfs_ceph_new: cleanup to async path

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


- Log -----------------------------------------------------------------
commit 1d1acebf01902bef3a9ccae23c3be4cacbb777b2
Author: Srinivas Rao V <[email protected]>
Date:   Thu Jul 3 10:19:46 2025 -0400

    smbd: fix mode being sent to possibly_set_archive
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15880
    
    possibly_set_archive is being passed smb_fname->st.st_ex_mode.
    Inside the function same variable is getting assigned to itself.
    Fixed this to send unx_mode to possibly_set_archive.
    
    Signed-off-by: Srinivas Rao V <[email protected]>
    Reviewed-by: Ralph Boehme <[email protected]>
    Reviewed-by: Guenther Deschner <[email protected]>
    
    Autobuild-User(master): Günther Deschner <[email protected]>
    Autobuild-Date(master): Fri Jul 18 22:25:05 UTC 2025 on atb-devel-224

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

Summary of changes:
 source3/smbd/open.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 3ffcfa36bb1..e50b6b68fab 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -4255,7 +4255,7 @@ static NTSTATUS open_file_ntcreate(connection_struct 
*conn,
                             parent_dir_fname,
                             info,
                             new_dos_attributes,
-                            &smb_fname->st.st_ex_mode);
+                            &unx_mode);
 
        /* Determine sparse flag. */
        if (posix_open) {


-- 
Samba Shared Repository

Reply via email to