diff options
author | Volker Lendecke <vl@samba.org> | 2011-01-04 18:48:47 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-01-07 13:28:05 +0100 |
commit | 6ba4bddb61cb6033a7937152966a608c1bbced40 (patch) | |
tree | 56a9c41645cef3006e19f3f5eb6461a587411e96 /source3/utils | |
parent | a32f021d66f7b4f5cc3b902371a22ced1f786fee (diff) | |
download | samba-6ba4bddb61cb6033a7937152966a608c1bbced40.tar.gz samba-6ba4bddb61cb6033a7937152966a608c1bbced40.tar.bz2 samba-6ba4bddb61cb6033a7937152966a608c1bbced40.zip |
s3: Make name_query use /tmp/.nmbd/unexpected
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/nmblookup.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c index 7e5ace5fb0..bd150df741 100644 --- a/source3/utils/nmblookup.c +++ b/source3/utils/nmblookup.c @@ -153,7 +153,8 @@ static void do_node_status(const char *name, static bool query_one(const char *lookup, unsigned int lookup_type) { - int j, count, flags = 0; + int j, count; + uint8_t flags; struct sockaddr_storage *ip_list=NULL; NTSTATUS status = NT_STATUS_NOT_FOUND; @@ -161,10 +162,10 @@ static bool query_one(const char *lookup, unsigned int lookup_type) char addr[INET6_ADDRSTRLEN]; print_sockaddr(addr, sizeof(addr), &bcast_addr); d_printf("querying %s on %s\n", lookup, addr); - status = name_query(ServerFD,lookup,lookup_type,use_bcast, + status = name_query(lookup,lookup_type,use_bcast, use_bcast?true:recursion_desired, &bcast_addr, talloc_tos(), - &ip_list, &count, &flags, NULL); + &ip_list, &count, &flags); } else { const struct in_addr *bcast; for (j=iface_count() - 1; @@ -181,11 +182,11 @@ static bool query_one(const char *lookup, unsigned int lookup_type) print_sockaddr(addr, sizeof(addr), &bcast_ss); d_printf("querying %s on %s\n", lookup, addr); - status = name_query(ServerFD,lookup,lookup_type, + status = name_query(lookup,lookup_type, use_bcast, use_bcast?True:recursion_desired, &bcast_ss, talloc_tos(), - &ip_list, &count, &flags, NULL); + &ip_list, &count, &flags); } } |