If we're not allowing streams on this conn ptr,
[samba.git] / 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)) {