The Samba-Bugzilla – Attachment 6367 Details for
Bug 8055
Can't See Parts of DFS CIFS Share
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-Fix-for-servers-that-don-t-put-a-path-separator-at-t.patch (text/plain), 1.20 KB, created by
Larry Reid
on 2011-04-02 14:27:07 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Larry Reid
Created:
2011-04-02 14:27:07 UTC
Size:
1.20 KB
patch
obsolete
>From fc36ff8e6553abc23c9f3690373119b7f7d58eff Mon Sep 17 00:00:00 2001 >From: Larry Reid <lcreid@jadesystems.ca> >Date: Sat, 26 Mar 2011 15:39:27 -0700 >Subject: [PATCH] Fix for servers that don't put a path separator at the end of the service. > >--- > source3/libsmb/clidfs.c | 17 +++++++++++++---- > 1 files changed, 13 insertions(+), 4 deletions(-) > >diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c >index 53dc6d7..a60bb7e 100644 >--- a/source3/libsmb/clidfs.c >+++ b/source3/libsmb/clidfs.c >@@ -903,10 +903,19 @@ bool cli_resolve_path(TALLOC_CTX *ctx, > } > > if (extrapath && strlen(extrapath) > 0) { >- *pp_targetpath = talloc_asprintf(ctx, >- "%s%s", >- extrapath, >- *pp_targetpath); >+ /* EMC Celerra NAS version 5.6.50 (at least) doesn't appear to */ >+ /* put the trailing \ on the path, so to be save we put one in if needed */ >+ if (extrapath[strlen(extrapath)-1] != '\\' && **pp_targetpath != '\\') { >+ *pp_targetpath = talloc_asprintf(ctx, >+ "%s\\%s", >+ extrapath, >+ *pp_targetpath); >+ } else { >+ *pp_targetpath = talloc_asprintf(ctx, >+ "%s%s", >+ extrapath, >+ *pp_targetpath); >+ } > if (!*pp_targetpath) { > return false; > } >-- >1.7.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 8055
: 6367