summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--selftest/knownfail.d/samba3.smb2.fileid1
-rw-r--r--source3/smbd/open.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/selftest/knownfail.d/samba3.smb2.fileid b/selftest/knownfail.d/samba3.smb2.fileid
index bdf86ac61b1..89455dacdf0 100644
--- a/selftest/knownfail.d/samba3.smb2.fileid
+++ b/selftest/knownfail.d/samba3.smb2.fileid
@@ -1,2 +1 @@
^samba3.smb2.fileid.fileid\(nt4_dc\)
-^samba3.smb2.fileid.fileid-dir\(nt4_dc\)
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 20b5a3e294c..061f16a0ebe 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3953,6 +3953,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);
if (!posix_open) {
if (file_set_dosmode(conn, smb_fname,
new_dos_attributes | FILE_ATTRIBUTE_ARCHIVE,