]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in open_file_ntcreate()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 18:40:51 +0000 (20:40 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:32 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index e1ca65f2748ac8901bc48101e8acfc3ecdcea30f..3ec2eb5f3b9471904ab5f0d8a3d78aacaf479d67 100644 (file)
@@ -4228,7 +4228,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
                /* Overwritten files should be initially set as archive */
                if ((info == FILE_WAS_OVERWRITTEN && lp_map_archive(SNUM(conn))) ||
                    lp_store_dos_attributes(SNUM(conn))) {
-                       (void)dos_mode(conn, smb_fname);
+                       (void)fdos_mode(fsp);
                        if (!posix_open) {
                                if (file_set_dosmode(conn, smb_fname,
                                            new_dos_attributes | FILE_ATTRIBUTE_ARCHIVE,