From: Jeremy Allison Date: Fri, 25 Jul 2008 01:12:12 +0000 (-0700) Subject: If we're not allowing streams on this conn ptr, X-Git-Tag: samba-3.3.0pre1~405 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=167d611b525db6d103a7f83fd5a19792be4e7745;p=thirdparty%2Fsamba.git 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. --- diff --git a/source/smbd/open.c b/source/smbd/open.c index aa3bbdf6857..03efd09f06c 100644 --- a/source/smbd/open.c +++ b/source/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)) {