summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-11 00:42:33 +0000
committerJeremy Allison <jra@samba.org>2004-03-11 00:42:33 +0000
commitf2efeca274ac493f6b619fad2c114cbf7c2fa718 (patch)
treeb418975786eb29be2f772702932855b930412688 /source3
parent83560bfcfae6d2de0c29b7ac4e012e4bbe911c8f (diff)
downloadsamba-f2efeca274ac493f6b619fad2c114cbf7c2fa718.tar.gz
samba-f2efeca274ac493f6b619fad2c114cbf7c2fa718.tar.bz2
samba-f2efeca274ac493f6b619fad2c114cbf7c2fa718.zip
Ensure we use check_path_syntax() to pull out DFS paths.
Jeremy (This used to be commit 28f1e21c583ea9a7771d6e0134b09a7acd5f054d)
Diffstat (limited to 'source3')
-rw-r--r--source3/msdfs/msdfs.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c
index 41f66ecd51..5af73356e0 100644
--- a/source3/msdfs/msdfs.c
+++ b/source3/msdfs/msdfs.c
@@ -65,11 +65,7 @@ static BOOL parse_dfs_path(char* pathname, struct dfs_path* pdp)
DEBUG(10,("parse_dfs_path: servicename: %s\n",pdp->servicename));
/* rest is reqpath */
- pstrcpy(pdp->reqpath, p+1);
- p = pdp->reqpath;
- while ((p = strchr_m(p, '\\'))!=NULL) {
- *p++ = '/';
- }
+ check_path_syntax(pdp->reqpath, p+1);
DEBUG(10,("parse_dfs_path: rest of the path: %s\n",pdp->reqpath));
return True;
@@ -115,8 +111,7 @@ static BOOL parse_processed_dfs_path(char* pathname, struct dfs_path* pdp)
DEBUG(10,("parse_processed_dfs_path: servicename: %s\n",pdp->servicename));
/* rest is reqpath */
- /* JRA. We should do a check_path_syntax here.... TOFIX ! */
- pstrcpy(pdp->reqpath, p+1);
+ check_path_syntax(pdp->reqpath, p+1);
DEBUG(10,("parse_processed_dfs_path: rest of the path: %s\n",pdp->reqpath));
return True;