summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-23 01:34:56 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-23 01:34:56 +0000
commit95705e904f5cab36287df1e22724111dfdceea70 (patch)
tree5b197f11c13f0077d29f4514cb5f4c825f326254 /source3/lib
parent97a9832541dc7405798590497e230fef243ac741 (diff)
downloadsamba-95705e904f5cab36287df1e22724111dfdceea70.tar.gz
samba-95705e904f5cab36287df1e22724111dfdceea70.tar.bz2
samba-95705e904f5cab36287df1e22724111dfdceea70.zip
Fix this for both *SMBSERVER and *SMBSERV as per comments in loadparm.c.
Andrew Bartlett (This used to be commit c6d416541be5349254a63e30fa29b022516b094e)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/substitute.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c
index 306d4872a2..7ba8648156 100644
--- a/source3/lib/substitute.c
+++ b/source3/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)