mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
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 d0dc4c9b7c
)
This commit is contained in:
parent
6e444304d3
commit
da7b171a59
@ -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)
|
||||
{
|
||||
|
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user