mirror of
https://github.com/samba-team/samba.git
synced 2025-03-07 00:58:40 +03:00
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)
This commit is contained in:
parent
a9f1ec0d6b
commit
f687e95377
@ -851,7 +851,7 @@ static BOOL form_junctions(int snum, struct junction_map* jn, int* jn_count)
|
|||||||
ref->ttl = REFERRAL_TTL;
|
ref->ttl = REFERRAL_TTL;
|
||||||
if (*lp_msdfs_proxy(snum) != '\0') {
|
if (*lp_msdfs_proxy(snum) != '\0') {
|
||||||
pstrcpy(ref->alternate_path, lp_msdfs_proxy(snum));
|
pstrcpy(ref->alternate_path, lp_msdfs_proxy(snum));
|
||||||
*jn_count = 1;
|
*jn_count = ++cnt;
|
||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user