1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix this for both *SMBSERVER and *SMBSERV as per comments in loadparm.c.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent 5b5e167bb1
commit c6d416541b

View File

@ -40,7 +40,15 @@ void set_local_machine_name(const char* local_name, BOOL perm)
static BOOL already_perm = False;
fstring tmp_local_machine;
if (strcmp(local_name, "*SMBSERVER")==0)
/*
* Windows NT/2k uses "*SMBSERVER" and XP uses "*SMBSERV"
* arrggg!!!
*/
if (strcasecmp(local_name, "*SMBSERVER")==0)
return;
if (strcasecmp(local_name, "*SMBSERV")==0)
return;
if (already_perm)