From e5a0619c2839d45b00446c3af3f30599f3f3c5fa Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Wed, 10 Jul 1996 18:48:49 +0000 Subject: updated docs to match code mods from last two or three updates. done some more commenting of code to match docs. sorted some bugs. ipc BOOL domains was uninitialised. lkcl (This used to be commit cb43ce7bc08fa43a6ce49e0937f13afec5dce67b) --- source3/namedbsubnet.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3/namedbsubnet.c') diff --git a/source3/namedbsubnet.c b/source3/namedbsubnet.c index 6b187b21bb..dd26592e66 100644 --- a/source3/namedbsubnet.c +++ b/source3/namedbsubnet.c @@ -253,13 +253,16 @@ struct subnet_record *add_subnet_entry(struct in_addr bcast_ip, add_my_name_entry(d,name,0x1e,NB_ACTIVE|NB_GROUP); add_my_name_entry(d,name,0x0 ,NB_ACTIVE|NB_GROUP); } - /* add samba server name to workgroup list */ - if ((strequal(lp_workgroup(), name) && d->my_interface) || lmhosts) + /* add samba server name to workgroup list. don't add + lmhosts server entries to local interfaces */ + if ((strequal(lp_workgroup(), name) && d->my_interface) || + (lmhosts && !d->my_interface)) { add_server_entry(d,w,myname,w->ServerType,0,ServerComment,True); + DEBUG(3,("Added server name entry %s at %s\n", + name,inet_ntoa(bcast_ip))); } - DEBUG(3,("Added domain name entry %s at %s\n", name,inet_ntoa(bcast_ip))); return d; } return NULL; -- cgit