From f9223a7139e7cc43cb3337a5c66d0262b9e03d54 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 24 Jul 2008 18:12:12 -0700 Subject: If we're not allowing streams on this conn ptr, then don't allow create_file() to call down to create_file_unixpath() with a stream name. Jeremy. (This used to be commit 167d611b525db6d103a7f83fd5a19792be4e7745) --- source3/smbd/open.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index aa3bbdf685..03efd09f06 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2999,6 +2999,11 @@ NTSTATUS create_file(connection_struct *conn, ZERO_STRUCT(sbuf); goto done; } + + if (!(conn->fs_capabilities & FILE_NAMED_STREAMS)) { + status = NT_STATUS_OBJECT_PATH_NOT_FOUND; + goto fail; + } } if ((req != NULL) && (req->flags2 & FLAGS2_DFS_PATHNAMES)) { -- cgit