diff options
Diffstat (limited to 'source3/msdfs')
-rw-r--r-- | source3/msdfs/msdfs_tdb.c | 6 | ||||
-rw-r--r-- | source3/msdfs/parse_dfs_map.c | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/source3/msdfs/msdfs_tdb.c b/source3/msdfs/msdfs_tdb.c index 1d7841bfea..6f3b150c1e 100644 --- a/source3/msdfs/msdfs_tdb.c +++ b/source3/msdfs/msdfs_tdb.c @@ -126,7 +126,11 @@ BOOL add_junction_entry(struct junction_map* junction) DEBUG(10,("Storing key: .%s:%s.\n",tlk->service_name,tlk->volume_name)); DEBUG(10,("Data: referral_count : %u\n",tld->referral_count)); for(i=0;i<tld->referral_count;i++) - DEBUG(10,("Path %d: %s, proximity: %u, ttl: %u\n",junction->referral_list[i].alternate_path)); + { + struct referral* ref = &(junction->referral_list[i]); + DEBUG(10,("Path %d: %s, proximity: %u, ttl: %u\n",i+1, + ref->alternate_path,ref->proximity,ref->ttl)); + } if( tdb_store(msdfs_map,key,data,TDB_REPLACE) != 0) { diff --git a/source3/msdfs/parse_dfs_map.c b/source3/msdfs/parse_dfs_map.c index 8caa4399d0..d7cc2b8725 100644 --- a/source3/msdfs/parse_dfs_map.c +++ b/source3/msdfs/parse_dfs_map.c @@ -86,10 +86,10 @@ BOOL parse_referral(char* s, struct referral* ref) while( ((tok[count]=strtok(NULL,":")) != NULL) && count<MAXTOK_IN_REFERRAL) count++; - DEBUG(10,("parse_referral: Tokens\n")); + DEBUG(10,("parse_referral: Tokens")); for(i=0;i<count;i++) - DEBUG(10,("\t%s\n",tok[i])); - + DEBUG(10,(" %s",tok[i])); + DEBUG(10,(".\n")); if(count > 0) pstrcpy(ref->alternate_path,tok[0]); else @@ -104,10 +104,10 @@ BOOL parse_referral(char* s, struct referral* ref) ref->proximity = 0; if(count > 2) - ref->ttl = atoi(tok[1]); + ref->ttl = atoi(tok[2]); else ref->ttl = REFERRAL_TTL; - + return True; } |