1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

The previous fix for WINS on the WINS server was wrong. It

caused nmbd to exit :-(

We now set the variable szWINSserver after the smb.conf file
has been processed, but only of we are a WINS server.
This commit is contained in:
Richard Sharpe 0001-01-01 00:00:00 +00:00
parent a343998666
commit 17212991cf

View File

@ -809,9 +809,7 @@ 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;
@ -2484,6 +2482,15 @@ BOOL lp_load(char *pszFname,BOOL global_only, BOOL save_defaults, BOOL add_ipc)
bLoaded = True;
/* Now we check bWINSsupport and set szWINSserver to 127.0.0.1 */
/* if bWINSsupport is True */
if (Globals.bWINSsupport) {
string_set(&Globals.szWINSserver, "127.0.0.1");
}
return (bRetval);
}