summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-07-24 18:12:12 -0700
committerJeremy Allison <jra@samba.org>2008-07-24 18:12:12 -0700
commitf9223a7139e7cc43cb3337a5c66d0262b9e03d54 (patch)
tree32d8d06bd7258b33c42c6a059a59572e07d47bdb /source3
parent4cdc6b3b235b3c5738c553577d2603cb08d2c916 (diff)
downloadsamba-f9223a7139e7cc43cb3337a5c66d0262b9e03d54.tar.gz
samba-f9223a7139e7cc43cb3337a5c66d0262b9e03d54.tar.bz2
samba-f9223a7139e7cc43cb3337a5c66d0262b9e03d54.zip
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. (This used to be commit 167d611b525db6d103a7f83fd5a19792be4e7745)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index aa3bbdf685..03efd09f06 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -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)) {