git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b5e167
)
Fix this for both *SMBSERVER and *SMBSERV as per comments in loadparm.c.
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 23 Apr 2003 01:34:56 +0000
(
01:34
+0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 23 Apr 2003 01:34:56 +0000
(
01:34
+0000)
Andrew Bartlett
source/lib/substitute.c
patch
|
blob
|
history
diff --git
a/source/lib/substitute.c
b/source/lib/substitute.c
index 306d4872a2e81832edadbec3900881c343ff8009..7ba86481560e35af8cb0659d8e73634cbc13a28b 100644
(file)
--- a/
source/lib/substitute.c
+++ b/
source/lib/substitute.c
@@
-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)