From: Ralph Boehme Date: Mon, 19 Oct 2020 18:40:51 +0000 (+0200) Subject: smbd: use fdos_mode() in open_file_ntcreate() X-Git-Tag: samba-4.14.0rc1~286 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=933577585c3dd48dd17c780babd326dc8160a02b;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in open_file_ntcreate() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index e1ca65f2748..3ec2eb5f3b9 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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,