diff options
author | Jeremy Allison <jra@samba.org> | 2004-03-11 00:42:36 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-03-11 00:42:36 +0000 |
commit | ba76a6102d8bddf69515e503e73d1af0dd1a8d3c (patch) | |
tree | 1336fa01401dbfb102d2c6d22acbe70aaf12c2b4 /source3 | |
parent | 97de8faf37287fc0cd764cb1d6383a9153c437e4 (diff) | |
download | samba-ba76a6102d8bddf69515e503e73d1af0dd1a8d3c.tar.gz samba-ba76a6102d8bddf69515e503e73d1af0dd1a8d3c.tar.bz2 samba-ba76a6102d8bddf69515e503e73d1af0dd1a8d3c.zip |
Ensure we use check_path_syntax() to pull out DFS paths.
Jeremy
(This used to be commit ebf82e2c14827c0a0edd8ee373ce5200f7b0b3b0)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/msdfs/msdfs.c | 9 |
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; |