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

Merge from 3.0: Fix set_local_machine_name() for both *SMBSERVER and

*SMBSERV as per comments in loadparm.c
This commit is contained in:
Tim Potter 0001-01-01 00:00:00 +00:00
parent 2ff89e1ee8
commit a6cb33c5bf

View File

@ -40,6 +40,17 @@ void set_local_machine_name(const char* local_name, BOOL perm)
static BOOL already_perm = False;
fstring tmp_local_machine;
/*
* 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)
return;