Changeset 599 for trunk/server/source3/libsmb/clidfs.c
- Timestamp:
- Jul 6, 2011, 8:21:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/libsmb/clidfs.c
r414 r599 897 897 898 898 if (extrapath && strlen(extrapath) > 0) { 899 *pp_targetpath = talloc_asprintf(ctx, 900 "%s%s", 901 extrapath, 902 *pp_targetpath); 899 /* EMC Celerra NAS version 5.6.50 (at least) doesn't appear to */ 900 /* put the trailing \ on the path, so to be save we put one in if needed */ 901 if (extrapath[strlen(extrapath)-1] != '\\' && **pp_targetpath != '\\') { 902 *pp_targetpath = talloc_asprintf(ctx, 903 "%s\\%s", 904 extrapath, 905 *pp_targetpath); 906 } else { 907 *pp_targetpath = talloc_asprintf(ctx, 908 "%s%s", 909 extrapath, 910 *pp_targetpath); 911 } 903 912 if (!*pp_targetpath) { 904 913 return false;
Note:
See TracChangeset
for help on using the changeset viewer.