From 2d87954bc06b5c7cb50f11e12c112d7c1d7a5a99 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Mon, 28 Sep 1998 08:00:07 +0000 Subject: Make sure that WINS Server = 127.0.0.1 in case we do not set a value in smb.conf. This will be the case if we are a WINS server, or if we don't know what we are doing. The result is that smbclient can access a WINS server if it is running on the same machine as the WINS server (This used to be commit a3439986666c33f352c863a8baae766323aea7b1) --- source3/param/loadparm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 15bc22de2a..8e222f5da5 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -809,7 +809,9 @@ static void init_globals(void) /* %N is the NIS auto.home server if -DAUTOHOME is used, else same as %L */ string_set(&Globals.szLogonHome, "\\\\%N\\%U"); string_set(&Globals.szLogonPath, "\\\\%N\\%U\\profile"); - + /* Set szWINSserver to 127.0.0.1 so that we have something reasonable */ + /* in case it is not set in the smb.conf */ + string_set(&Globals.szWINSserver, "127.0.0.1"); string_set(&Globals.szNameResolveOrder, "lmhosts host wins bcast"); Globals.bLoadPrinters = True; -- cgit