[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-5074-gbf1474a
Jeremy Allison
jra at samba.org
Thu Mar 19 03:57:11 GMT 2009
The branch, v3-3-test has been updated
via bf1474aee37976f0d7e3cece8f39b0046ee54209 (commit)
from 41bf3933b955548c4877e6e3f8fe2768090833c4 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit bf1474aee37976f0d7e3cece8f39b0046ee54209
Author: Jeremy Allison <jra at samba.org>
Date: Wed Mar 18 20:54:13 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:
source/libsmb/clidfs.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/libsmb/clidfs.c b/source/libsmb/clidfs.c
index 9fdc239..5379ff9 100644
--- a/source/libsmb/clidfs.c
+++ b/source/libsmb/clidfs.c
@@ -665,13 +665,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