diff options
author | Jeremy Allison <jra@samba.org> | 1997-10-09 18:40:52 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-10-09 18:40:52 +0000 |
commit | f3f44f7dbbc360733da329ef55bb0353ae0a8443 (patch) | |
tree | 2fc6f49a9d9897b087fe80bfcebfbd997b857a74 /source3/namedbsubnet.c | |
parent | 3dd03e4bb7af903eae162648bbf51da04fa68200 (diff) | |
download | samba-f3f44f7dbbc360733da329ef55bb0353ae0a8443.tar.gz samba-f3f44f7dbbc360733da329ef55bb0353ae0a8443.tar.bz2 samba-f3f44f7dbbc360733da329ef55bb0353ae0a8443.zip |
local.h: Fix spelling mistake :-).
namedbsubnet.c: Stop registering 1x name unless we can be a local master.
reply.c: Remove ERRbaddirectory code.
server.c: Remove abort() - use exit_server() instead.
trans2.c: Remove ERRbaddirectory code.
Jeremy (jallison@whistle.com)
(This used to be commit 76247228896d39312ba896fa229076be3271e2e4)
Diffstat (limited to 'source3/namedbsubnet.c')
-rw-r--r-- | source3/namedbsubnet.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/namedbsubnet.c b/source3/namedbsubnet.c index 4f0b647996..c6663d71fd 100644 --- a/source3/namedbsubnet.c +++ b/source3/namedbsubnet.c @@ -218,7 +218,11 @@ void add_workgroup_to_subnet( struct subnet_record *d, char *group) int n; add_my_name_entry(d,group,0x0 ,nb_type|NB_ACTIVE|NB_GROUP); - add_my_name_entry(d,group,0x1e,nb_type|NB_ACTIVE|NB_GROUP); + + /* Only register the WORKGROUP<0x1e> name if we could be a local master + browser. */ + if(lp_local_master()) + add_my_name_entry(d,group,0x1e,nb_type|NB_ACTIVE|NB_GROUP); /* Add all our server names to the workgroup list. We remove any browser or logon server flags from all but the primary name. |