From da7b171a597e3df0222826b667175c048d7c07d1 Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Thu, 17 Apr 1997 04:39:55 +0000 Subject: two bugs jeremy and i found while at sgi. find_workgroupstruct call in nameannounce.c should have False not True check_master_browser should _only_ force an election for its own workgroup, not other workgroups! lkcl (This used to be commit d0dc4c9b7c828f706c99b1dab3f0ae0844cbc6a8) --- source3/nameannounce.c | 2 +- source3/nameelect.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/nameannounce.c b/source3/nameannounce.c index a1eae127a2..8f2005a73d 100644 --- a/source3/nameannounce.c +++ b/source3/nameannounce.c @@ -403,7 +403,7 @@ void announce_master(time_t t) for (d = subnetlist; d; d = d->next) { /* Try and find our workgroup on this subnet */ - struct work_record *work = find_workgroupstruct(d, lp_workgroup(), True); + struct work_record *work = find_workgroupstruct(d, lp_workgroup(), False); if (work) { diff --git a/source3/nameelect.c b/source3/nameelect.c index a11d0fb786..d3804f2b71 100644 --- a/source3/nameelect.c +++ b/source3/nameelect.c @@ -77,7 +77,7 @@ void check_master_browser(time_t t) for (work = d->workgrouplist; work; work = work->next) { - if (!AM_MASTER(work)) + if (strequal(work->work_group, lp_workgroup()) && !AM_MASTER(work)) { if (lp_preferred_master()) { -- cgit