summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-08-17 13:26:58 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-08-17 13:26:58 +0000
commit118c43e4ddd5325ce516a4965377469b3d9c50fc (patch)
tree9d896ea762e1811080f463f16548a5fe21b70e4c /source3
parent82d718317cac27430b0be43a5d7ddc59c26fca22 (diff)
downloadsamba-118c43e4ddd5325ce516a4965377469b3d9c50fc.tar.gz
samba-118c43e4ddd5325ce516a4965377469b3d9c50fc.tar.bz2
samba-118c43e4ddd5325ce516a4965377469b3d9c50fc.zip
- updated load_netbios_names() to cope with new wins.dat format
it doesn't support loading of Internet Group names yet, but then again, you can't create Internet Group names yet, so it's not a problem! (This used to be commit 960aad39ac7b9d8c9820fbf7c4cb640ba96a29d6)
Diffstat (limited to 'source3')
-rw-r--r--source3/namedbname.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/namedbname.c b/source3/namedbname.c
index 3e6b8428cf..b8edfa2554 100644
--- a/source3/namedbname.c
+++ b/source3/namedbname.c
@@ -284,8 +284,10 @@ void dump_names(void)
/****************************************************************************
-load a netbios name database file
-****************************************************************************/
+ load a netbios name database file
+
+ XXXX we cannot cope with loading Internet Group names, yet
+ ****************************************************************************/
void load_netbios_names(void)
{
struct subnet_record *d = find_subnet(ipgrp);
@@ -332,8 +334,8 @@ void load_netbios_names(void)
ptr = line;
if (next_token(&ptr,name_str ,NULL)) ++count;
- if (next_token(&ptr,ip_str ,NULL)) ++count;
if (next_token(&ptr,ttd_str ,NULL)) ++count;
+ if (next_token(&ptr,ip_str ,NULL)) ++count;
if (next_token(&ptr,nb_flags_str,NULL)) ++count;
if (count <= 0) continue;