From: Jeremy Allison Date: Fri, 25 Jul 2008 01:13:20 +0000 (-0700) Subject: If we're not allowing streams on this conn ptr, X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=7f749a10eff0bb469e6eb50b02cb60fd65c23f9e 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 0d1dd31cd60..2184e69d374 100644 --- a/source/smbd/open.c +++ b/source/smbd/open.c @@ -3052,6 +3052,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)) {