summaryrefslogtreecommitdiffstats
path: root/source/utils/nmblookup.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-07 06:55:36 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-07 06:55:36 +0000
commitb563be824b8c3141c49558eced7829b48d4ab26f (patch)
tree8e7ce416231383522648f9af6d3f60fc9d820ab0 /source/utils/nmblookup.c
parentbf9b1328c5843eb217eff4ca05645498de2def82 (diff)
downloadsamba-b563be824b8c3141c49558eced7829b48d4ab26f.tar.gz
samba-b563be824b8c3141c49558eced7829b48d4ab26f.tar.xz
samba-b563be824b8c3141c49558eced7829b48d4ab26f.zip
this looks like a big commit, but it isn't really :)
This fixes our netbios scope handling. We now have a 'netbios scope' option in smb.conf and the scope option is removed from make_nmb_name() this was prompted by a bug in our PDC finding code where it didn't append the scope to the query of the '*' name.
Diffstat (limited to 'source/utils/nmblookup.c')
-rw-r--r--source/utils/nmblookup.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/utils/nmblookup.c b/source/utils/nmblookup.c
index 6214c0e45b8..8e26a206ca2 100644
--- a/source/utils/nmblookup.c
+++ b/source/utils/nmblookup.c
@@ -26,8 +26,6 @@
extern int DEBUGLEVEL;
-extern pstring scope;
-
extern struct in_addr ipzero;
static BOOL use_bcast = True;
@@ -178,9 +176,12 @@ int main(int argc,char *argv[])
translate_addresses = !translate_addresses;
break;
case 'i':
- fstrcpy(scope,optarg);
- strupper(scope);
- break;
+ {
+ extern pstring global_scope;
+ pstrcpy(global_scope,optarg);
+ strupper(global_scope);
+ }
+ break;
case 'M':
find_master = True;
break;