[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2766-g7f749a1

Jeremy Allison jra at samba.org
Fri Jul 25 01:14:01 GMT 2008


The branch, v3-2-test has been updated
       via  7f749a10eff0bb469e6eb50b02cb60fd65c23f9e (commit)
      from  cdf10e6ee9faff42693bb39ede535cc6611a8fc9 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 7f749a10eff0bb469e6eb50b02cb60fd65c23f9e
Author: Jeremy Allison <jra at samba.org>
Date:   Thu Jul 24 18:13:20 2008 -0700

    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.

-----------------------------------------------------------------------

Summary of changes:
 source/smbd/open.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/open.c b/source/smbd/open.c
index 0d1dd31..2184e69 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)) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list