From 176e8857203944bc332844b700749120ce90c891 Mon Sep 17 00:00:00 2001 From: Aravind Srinivasan Date: Wed, 18 Feb 2009 18:26:39 -0800 Subject: s3: Fix OneFS 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 --- source3/modules/onefs_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/modules') diff --git a/source3/modules/onefs_open.c b/source3/modules/onefs_open.c index 1f5f8551ff..382ecc60a3 100644 --- a/source3/modules/onefs_open.c +++ b/source3/modules/onefs_open.c @@ -1185,7 +1185,7 @@ NTSTATUS onefs_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