diff options
author | Jeremy Allison <jra@samba.org> | 1998-02-14 07:13:58 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-02-14 07:13:58 +0000 |
commit | 7a5ff30961495e2690ef74f497550a22dc96c9e1 (patch) | |
tree | 7c5af280b81be6aa1a62158021f752de2d25d909 /source | |
parent | 7ae78d5c9ec0afb66be26cfd25aa5762b44bcc69 (diff) | |
download | samba-7a5ff30961495e2690ef74f497550a22dc96c9e1.tar.gz samba-7a5ff30961495e2690ef74f497550a22dc96c9e1.tar.xz samba-7a5ff30961495e2690ef74f497550a22dc96c9e1.zip |
Sometime after 1.9.17p5 smbclient stopped being able to do
NetBIOS name lookups by broadcast and instead only does DNS.
With the belief that this was not what was intended (I think
it happened in the clientutil.c cleanup) I have added that
capability back to smbclient by adding the #define USENMB
into clientutil.c, and adding the required namequery.o into
the object lists for smbclient and smbmount (as they now
need it to link).
If this was done intentionally let me know and I'll back
this out.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r-- | source/client/clientutil.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/client/clientutil.c b/source/client/clientutil.c index b945edf87f2..e2241be2371 100644 --- a/source/client/clientutil.c +++ b/source/client/clientutil.c @@ -29,6 +29,8 @@ #define REGISTER 0 #endif +#define USENMB + pstring service=""; pstring desthost=""; extern pstring myname; @@ -908,8 +910,8 @@ BOOL cli_open_sockets(int port ) interpret_addr(lp_socket_address()))) != -1) { set_socket_options(bcast, "SO_BROADCAST"); - if (ip_list = name_query(bcast, host, name_type, True, True, *iface_bcast(dest_ip), - &count,0)) { + if ((ip_list = name_query(bcast, host, name_type, True, True, *iface_bcast(dest_ip), + &count,0)) != NULL) { dest_ip = ip_list[0]; free(ip_list); failed = False; |