diff options
Diffstat (limited to 'source3/msdfs')
-rw-r--r-- | source3/msdfs/msdfs.c | 2 | ||||
-rw-r--r-- | 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 && line[i]==' ';i++); + for(i=0;i<len && isspace(line[i]);i++); if(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; |