*/
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 */
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;
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;