From ab025bf0fe80c3ed84a3fe0ee3aac053f05154f8 Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Wed, 18 Feb 2009 23:10:41 -0800 Subject: s3: Fix bug opening streams with truncating disposition Do not attempt to delete streams on a truncating open, if the name we're opening is itself a stream. Port 176e8857203944bc332844b700749120ce90c891 to standard open path --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/open.c') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index f7a52d7bd2b..9971ffa6798 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1975,7 +1975,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, SMB_ASSERT(lck != NULL); /* Delete streams if create_disposition requires it */ - if (file_existed && clear_ads) { + if (file_existed && clear_ads && !is_ntfs_stream_name(fname)) { status = delete_all_streams(conn, fname); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(lck); -- cgit