[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-529-g913d1f2

Jeremy Allison jra at samba.org
Thu Mar 19 03:57:43 GMT 2009


The branch, v3-4-test has been updated
       via  913d1f2af87fa449881a6fd2774a9dfdcb198fb4 (commit)
      from  8d8c25a34241c1b4a1d40d7ad02bd1e1baa605be (commit)

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


- Log -----------------------------------------------------------------
commit 913d1f2af87fa449881a6fd2774a9dfdcb198fb4
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Mar 18 20:56:48 2009 -0700

    Allow DFS client paths to work when POSIX pathnames have been
    selected (we need to path in pathname /that/look/like/this).
    Jeremy.

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

Summary of changes:
 source3/libsmb/clidfs.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index 18e7ab1..430807e 100644
--- a/source3/libsmb/clidfs.c
+++ b/source3/libsmb/clidfs.c
@@ -551,13 +551,23 @@ static char *cli_dfs_make_full_path(TALLOC_CTX *ctx,
 					struct cli_state *cli,
 					const char *dir)
 {
+	char path_sep = '\\';
+
 	/* Ensure the extrapath doesn't start with a separator. */
 	while (IS_DIRECTORY_SEP(*dir)) {
 		dir++;
 	}
 
-	return talloc_asprintf(ctx, "\\%s\\%s\\%s",
-			cli->desthost, cli->share, dir);
+	if (cli->posix_capabilities & CIFS_UNIX_POSIX_PATHNAMES_CAP) {
+		path_sep = '/';
+	}
+	return talloc_asprintf(ctx, "%c%s%c%s%c%s",
+			path_sep,
+			cli->desthost,
+			path_sep,
+			cli->share,
+			path_sep,
+			dir);
 }
 
 /********************************************************************


-- 
Samba Shared Repository


More information about the samba-cvs mailing list