mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
Fix for servers that don't put a path separator at the end of the service.
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 3 10:33:42 CEST 2011 on sn-devel-104
This commit is contained in:
parent
d143bc444c
commit
76f7c2a254
@ -920,10 +920,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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user