From e7e49a6e6a1e7d5b1bc64563f29e7cebd5d8e01f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 5 Sep 1997 21:32:32 +0000 Subject: client.c: Made sure myhostname was initialised before substitutions. status.c: Made sure myhostname was initialised before substitutions. server.c trans2.c: Moved OS/2 WPS fix. Jeremy (jallison@whistle.com) (This used to be commit 8a12b6a4f0feec712f5c4e02e21198c455b060ae) --- source3/client/client.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index 329956ce94..4718db84ac 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -34,6 +34,7 @@ pstring cd_path = ""; pstring service=""; pstring desthost=""; extern pstring myname; +extern pstring myhostname; pstring password = ""; pstring username=""; pstring workgroup=""; @@ -4625,6 +4626,11 @@ static void usage(char *pname) DEBUG(3,("%s client started (version %s)\n",timestring(),VERSION)); + if(!get_myname(myhostname,NULL)) + { + DEBUG(0,("Failed to get my hostname.\n")); + } + if (!lp_load(servicesf,True)) { fprintf(stderr, "Can't load %s - run testparm to debug it\n", servicesf); } -- cgit