From 7f749a10eff0bb469e6eb50b02cb60fd65c23f9e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 24 Jul 2008 18:13:20 -0700 Subject: [PATCH] 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. --- source/smbd/open.c | 5 +++++ 1 file changed, 5 insertions(+) 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)) { -- 2.34.1