summaryrefslogtreecommitdiff
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
commit960aad39ac7b9d8c9820fbf7c4cb640ba96a29d6 (patch)
tree1f2ab96d6f6bd81a109f748530d997fac811182c
parenta7330127a261f814c56e860b6de658dbef24c33f (diff)
downloadsamba-960aad39ac7b9d8c9820fbf7c4cb640ba96a29d6.tar.gz
- 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!
-rw-r--r--source/namedbname.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/namedbname.c b/source/namedbname.c
index 3e6b8428cf2..b8edfa25541 100644
--- a/source/namedbname.c
+++ b/source/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;