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

source/smbd/open.c

index aa3bbdf6857dec7444d5473350c943b701131478..03efd09f06c4c35bfc100af5efda596f77749e72 100644 (file)
@@ -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)) {