The branch, v4-22-test has been updated
       via  af6d23f9891 smbd: fix mode being sent to possibly_set_archive
      from  33647976766 s3:utils: Allow ROLE_IPA_DC to allow to use Kerberos in 
gensec

https://git.samba.org/?p=samba.git;a=shortlog;h=v4-22-test


- Log -----------------------------------------------------------------
commit af6d23f98919af8f6f802a9cf7410d1d4fb07288
Author: Srinivas Rao V <srinivas.ra...@ibm.com>
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 <srinivas.ra...@ibm.com>
    Reviewed-by: Ralph Boehme <s...@samba.org>
    Reviewed-by: Guenther Deschner <g...@samba.org>
    
    Autobuild-User(master): Günther Deschner <g...@samba.org>
    Autobuild-Date(master): Fri Jul 18 22:25:05 UTC 2025 on atb-devel-224
    
    (cherry picked from commit 1d1acebf01902bef3a9ccae23c3be4cacbb777b2)
    
    Autobuild-User(v4-22-test): Jule Anger <jan...@samba.org>
    Autobuild-Date(v4-22-test): Thu Aug 14 12:32:46 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 1c920816a26..b91f9d8ce1e 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -4264,7 +4264,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