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

Jeremy Allison jra at samba.org
Thu Mar 19 02:59:58 GMT 2009


The branch, v3-3-test has been updated
       via  41bf3933b955548c4877e6e3f8fe2768090833c4 (commit)
      from  a549aee12f33dc91f0cc32612516025eb212fb66 (commit)

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


- Log -----------------------------------------------------------------
commit 41bf3933b955548c4877e6e3f8fe2768090833c4
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Mar 18 19:59:04 2009 -0700

    Fix bug #6196 - Unable to serve files with colons to Linux CIFS/VFS client
    Looks like the pathname parsing for POSIX paths got
    broken when the code for doing Windows streams parsing got added.
    Jeremy.

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

Summary of changes:
 source/smbd/reply.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 499b67f..46653cd 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -76,11 +76,16 @@ static NTSTATUS check_path_syntax_internal(char *path,
 			}
 		}
 
-		if (!stream_started && *s == ':') {
+		if (!posix_path && !stream_started && *s == ':') {
 			if (*p_last_component_contains_wcard) {
 				return NT_STATUS_OBJECT_NAME_INVALID;
 			}
-			/* stream names allow more characters than file names */
+			/* Stream names allow more characters than file names.
+			   We're overloading posix_path here to allow a wider
+			   range of characters. If stream_started is true this
+			   is still a Windows path even if posix_path is true.
+			   JRA.
+			*/
 			stream_started = true;
 			start_of_name_component = false;
 			posix_path = true;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list