summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmbclient.c
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2001-02-18 10:36:03 +0000
committerRichard Sharpe <sharpe@samba.org>2001-02-18 10:36:03 +0000
commit0293869b1f6012d1f106e4ab1bd392cea1c66ff0 (patch)
tree62aee01474ad53662e67737ef0c59ef5efc0ad84 /source3/libsmb/libsmbclient.c
parentfd46817f0b20c633c80dee70a29cf7478e2dfd68 (diff)
downloadsamba-0293869b1f6012d1f106e4ab1bd392cea1c66ff0.tar.gz
samba-0293869b1f6012d1f106e4ab1bd392cea1c66ff0.tar.bz2
samba-0293869b1f6012d1f106e4ab1bd392cea1c66ff0.zip
Fixes to libsmbclient so it will work when browsing real Windows systems which
only respond to port 138 when dealing with NetBIOS datagrams. We use the unexpected packed database. (This used to be commit 620cc34015ab16d25f7ef7e13cbc3d0f669da11e)
Diffstat (limited to 'source3/libsmb/libsmbclient.c')
-rw-r--r--source3/libsmb/libsmbclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index 3541028fb8..67d5b92100 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -544,8 +544,6 @@ int smbc_init(smbc_get_auth_data_fn fn, int debug)
in_client = True; /* FIXME, make a param */
-
-
if (!lp_load(conf, True, False, False)) {
/*
@@ -563,6 +561,8 @@ int smbc_init(smbc_get_auth_data_fn fn, int debug)
reopen_logs(); /* Get logging working ... */
+ name_register_wins(my_netbios_name, 0);
+
/*
* Now initialize the file descriptor array and figure out what the
* max open files is, so we can return FD's that are above the max