summaryrefslogtreecommitdiffstats
path: root/source3/msdfs
diff options
context:
space:
mode:
authorShirish Kalele <kalele@samba.org>2003-02-11 01:45:15 +0000
committerShirish Kalele <kalele@samba.org>2003-02-11 01:45:15 +0000
commitf687e95377e336691df3b4751d63d06633b97df8 (patch)
tree07a2291208178b200b5603d5092dd51bf07ce4d2 /source3/msdfs
parenta9f1ec0d6b1f8f98a75be5082dcd4dcd573564ee (diff)
downloadsamba-f687e95377e336691df3b4751d63d06633b97df8.tar.gz
samba-f687e95377e336691df3b4751d63d06633b97df8.tar.xz
samba-f687e95377e336691df3b4751d63d06633b97df8.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 HEAD] (This used to be commit 9307942a89600004ae3467b1bbf0dc536698ecdf)
Diffstat (limited to 'source3/msdfs')
-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 613382961b1..4df31450095 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;
}