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:
parent
5b5e167bb1
commit
c6d416541b
@ -40,7 +40,15 @@ void set_local_machine_name(const char* local_name, BOOL perm)
|
|||||||
static BOOL already_perm = False;
|
static BOOL already_perm = False;
|
||||||
fstring tmp_local_machine;
|
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;
|
return;
|
||||||
|
|
||||||
if (already_perm)
|
if (already_perm)
|
||||||
|
Loading…
Reference in New Issue
Block a user