#define REGISTER 0
#endif
+extern BOOL in_client;
pstring cur_dir = "\\";
pstring cd_path = "";
extern BOOL in_client;
DEBUG(0,("Failed to get my hostname.\n"));
}
- in_client = True;
+ in_client = True; /* Make sure that we tell lp_load we are */
if (!lp_load(servicesf,True,False,False)) {
fprintf(stderr, "Can't load %s - run testparm to debug it\n", servicesf);
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;
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) {
}
- bLoaded = True;
-
return (bRetval);
}