From bcaf1211f2f4450db48d98e703805191687cf86d Mon Sep 17 00:00:00 2001 From: Shirish Kalele Date: Mon, 17 Apr 2000 22:40:02 +0000 Subject: Corrected minor parsing errors. Not adding a Dfs junction to msdfs.tdb if it doesn't have any referred paths as parsed from the dfsmap file. (This used to be commit 462ea8b7fdaa528c3e9bfaca4fdd031888157124) --- source3/msdfs/msdfs.c | 2 +- source3/msdfs/parse_dfs_map.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c index 05e1f221b8..f1b19dfe02 100644 --- a/source3/msdfs/msdfs.c +++ b/source3/msdfs/msdfs.c @@ -60,7 +60,7 @@ static BOOL parse_dfs_path(char* pathname, struct dfs_path* pdp) */ trim_string(temp,"\\","\\"); - DEBUG(10,("temp in parse_dfs_path: .%s. after trimming \'s\n",temp)); + DEBUG(10,("temp in parse_dfs_path: .%s. after trimming \\'s\n",temp)); /* now tokenize */ /* parse out hostname */ diff --git a/source3/msdfs/parse_dfs_map.c b/source3/msdfs/parse_dfs_map.c index 24d8ca8b3d..df6b89bbfa 100644 --- a/source3/msdfs/parse_dfs_map.c +++ b/source3/msdfs/parse_dfs_map.c @@ -50,7 +50,7 @@ static char* Dfs_Crop_Whitespace(char* line) if(line[0]=='#' || line[0]==';') return NULL; - for(i=0;i=len) return NULL; @@ -168,9 +168,10 @@ static BOOL load_dfsmap(char* fname, int snum) if(line[0]!='\\') { + /* a new junction definition encountered */ - /* a junction encountered. add the current junction first */ - if(junction) + /* add the current junction if it has any referrals defined */ + if(junction && ref_count!=0) { junction->referral_count = ref_count; junction->referral_list = tmp_ref_array; -- cgit