summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>1998-10-06 23:46:01 +0000
committerRichard Sharpe <sharpe@samba.org>1998-10-06 23:46:01 +0000
commit0cf1ea4e2eafff8a65ef8766fe7351281d2dd53b (patch)
tree8ddd9222d7127e6b97f5dfee50fa80f0155a99e8 /source3/param/loadparm.c
parentc07b2bdf9032c870f7f50a9671e8d9fb0a56739a (diff)
downloadsamba-0cf1ea4e2eafff8a65ef8766fe7351281d2dd53b.tar.gz
samba-0cf1ea4e2eafff8a65ef8766fe7351281d2dd53b.tar.bz2
samba-0cf1ea4e2eafff8a65ef8766fe7351281d2dd53b.zip
Added capability for smbclient to use the local WINS server on the same
machine if WINSsupport configured (This used to be commit 1398feebbcb65a9e78b7084811bf9727b6d89682)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index b0b793df60..ad8e27be98 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -67,6 +67,7 @@
BOOL in_client = False; /* Not in the client by default */
BOOL bLoaded = False;
+BOOL in_client = False;
extern int DEBUGLEVEL;
extern pstring user_socket_options;
@@ -2485,8 +2486,10 @@ BOOL lp_load(char *pszFname,BOOL global_only, BOOL save_defaults, BOOL add_ipc)
set_default_server_announce_type();
- /* We set a WINS server address of 127.0.0.1 if we are in the client */
- /* and we have WINS support enabled */
+ bLoaded = True;
+
+ /* Now we check bWINSsupport and set szWINSserver to 127.0.0.1 */
+ /* if bWINSsupport is true and we are in the client */
if (in_client && Globals.bWINSsupport) {
@@ -2494,8 +2497,6 @@ BOOL lp_load(char *pszFname,BOOL global_only, BOOL save_defaults, BOOL add_ipc)
}
- bLoaded = True;
-
return (bRetval);
}