summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorAravind Srinivasan <aravind.srinivasan@isilon.com>2009-02-18 18:26:39 -0800
committerSteven Danneman <steven.danneman@isilon.com>2009-02-18 20:50:05 -0800
commit176e8857203944bc332844b700749120ce90c891 (patch)
tree4e53d8f27cfb6f1a4858bfed8a5671572854a412 /source3/modules
parent8e8aa27e1b1366c8c4e3cf6d8a681fec80cca858 (diff)
downloadsamba-176e8857203944bc332844b700749120ce90c891.tar.gz
samba-176e8857203944bc332844b700749120ce90c891.tar.bz2
samba-176e8857203944bc332844b700749120ce90c891.zip
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
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/onefs_open.c2
1 files changed, 1 insertions, 1 deletions
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);