If we're not allowing streams on this conn ptr,
authorJeremy Allison <jra@samba.org>
Fri, 25 Jul 2008 01:13:20 +0000 (18:13 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 25 Jul 2008 01:13:20 +0000 (18:13 -0700)
then don't allow create_file() to call down to
create_file_unixpath() with a stream name.
Jeremy.

source/smbd/open.c

index 0d1dd31cd60fc7f3659a93c44b4e31137ccda3fd..2184e69d3745c936c4b683bc9116ccf41493d9b6 100644 (file)
@@ -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)) {