summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShirish Kalele <kalele@samba.org>2003-02-11 01:45:48 +0000
committerShirish Kalele <kalele@samba.org>2003-02-11 01:45:48 +0000
commit70f1fcb87b2b5080e086bbf4555bdbda0635a709 (patch)
tree91b2fc560db879a3982243ca19a7e653a4597a07
parent89393d93b0d58504b65a423cc442bee4d7051298 (diff)
downloadsamba-70f1fcb87b2b5080e086bbf4555bdbda0635a709.tar.gz
samba-70f1fcb87b2b5080e086bbf4555bdbda0635a709.tar.bz2
samba-70f1fcb87b2b5080e086bbf4555bdbda0635a709.zip
Fix the msdfs proxy handling code in dfsenum to return the cumulative number of
dfs links encountered. Previously the number was being mistakenly reset to 1. Thanks to Guenther Deschner <gd@suse.de> for pointing this out and a fix. [Check into SAMBA_3_0] (This used to be commit 041a1dd543ae5c197e17aae0b35a41060efc35f0)
-rw-r--r--source3/msdfs/msdfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c
index 613382961b..4df3145009 100644
--- a/source3/msdfs/msdfs.c
+++ b/source3/msdfs/msdfs.c
@@ -851,7 +851,7 @@ static BOOL form_junctions(int snum, struct junction_map* jn, int* jn_count)
ref->ttl = REFERRAL_TTL;
if (*lp_msdfs_proxy(snum) != '\0') {
pstrcpy(ref->alternate_path, lp_msdfs_proxy(snum));
- *jn_count = 1;
+ *jn_count = ++cnt;
return True;
}