]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: fix mode being sent to possibly_set_archive
authorSrinivas Rao V <Srinivas.Rao.V@ibm.com>
Thu, 3 Jul 2025 14:19:46 +0000 (10:19 -0400)
committerGünther Deschner <gd@samba.org>
Fri, 18 Jul 2025 22:25:05 +0000 (22:25 +0000)
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.Rao.V@ibm.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Jul 18 22:25:05 UTC 2025 on atb-devel-224

source3/smbd/open.c

index 3ffcfa36bb1edb0f5784ffd4ece7a13a51cb997e..e50b6b68fab9a163f68a3e5c7c188bd6b3c56abc 100644 (file)
@@ -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) {