summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-09-24 12:49:38 -0700
committerRalph Boehme <slow@samba.org>2019-10-02 08:01:40 +0000
commit90a14c90c4bcede1ef5414e0800aa4c84cbcf1c9 (patch)
treefb43e9abd7480a95b2fc25e2ccdc9f16b024ab70 /source3/smbd
parent091e3fdab61217251de1cf5111f070ff295d1649 (diff)
downloadsamba-90a14c90c4bcede1ef5414e0800aa4c84cbcf1c9.tar.gz
s3:smbd: ensure a created stream picks up the File-ID from the basefile
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14137 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 061f16a0ebe..e9c332e3e8c 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3936,7 +3936,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
fsp->initial_delete_on_close = True;
}
- if (info == FILE_WAS_CREATED) {
+ if (info == FILE_WAS_CREATED && !is_named_stream(smb_fname)) {
smb_fname->st.st_ex_iflags &= ~ST_EX_IFLAG_CALCULATED_ITIME;
if (lp_store_dos_attributes(SNUM(conn)) &&