From e1d962659f45c6a9bc1a2385ab4f8f4ca0af081c Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Tue, 29 Sep 1998 04:43:40 +0000 Subject: Now have a better solution to the need to have smblcient find a WINS server if running on the WINS server. As suggested by Andrew, we have a flag, in_client=False by default, and set it to True in the client. loadparam.c checks this and sets szWINSserver to 127.0.0.1 when in_client && bWINSsupport. BTW, we seem to have picked up and unused value in some of Luke's new code. (This used to be commit b665756bfc813b229ad50b0d5f53e8b779537a3f) --- source3/client/client.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index e34131d6d0..0d27039cb9 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -29,6 +29,7 @@ pstring cur_dir = "\\"; pstring cd_path = ""; +extern BOOL in_client; extern pstring service; extern pstring desthost; extern pstring global_myname; @@ -3789,6 +3790,8 @@ static void usage(char *pname) DEBUG(0,("Failed to get my hostname.\n")); } + in_client = True; + if (!lp_load(servicesf,True,False,False)) { fprintf(stderr, "Can't load %s - run testparm to debug it\n", servicesf); } -- cgit