summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 078b47a1a7..8882e5438b 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1984,10 +1984,8 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
fsp->oplock_type, new_file_created);
/* Handle strange delete on close create semantics. */
- if ((create_options & FILE_DELETE_ON_CLOSE)
- && (((conn->fs_capabilities & FILE_NAMED_STREAMS)
- && is_ntfs_stream_name(fname))
- || can_set_initial_delete_on_close(lck))) {
+ if (create_options & FILE_DELETE_ON_CLOSE) {
+
status = can_set_delete_on_close(fsp, True, new_dos_attributes);
if (!NT_STATUS_IS_OK(status)) {