summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-28 14:05:20 +0200
committerVolker Lendecke <vl@samba.org>2010-08-28 14:06:10 +0200
commit755ef5cf1159f4af40e763ab797be8fcaa0c6d37 (patch)
treebe9105ed0521d9be54ba64bd751270567d2189c6 /source3/smbd
parent5e58156654759674d1a93208302c4d4c8f4c258c (diff)
downloadsamba-755ef5cf1159f4af40e763ab797be8fcaa0c6d37.tar.gz
samba-755ef5cf1159f4af40e763ab797be8fcaa0c6d37.tar.bz2
samba-755ef5cf1159f4af40e763ab797be8fcaa0c6d37.zip
s3: Remove smbd_server_fd() from set_local_machine_name()
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 5533ee07d1..df7dac7b09 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -528,6 +528,15 @@ void reply_special(struct smbd_server_connection *sconn, char *inbuf)
exit_server_cleanly("retargeted client");
}
+ /*
+ * Windows NT/2k uses "*SMBSERVER" and XP uses
+ * "*SMBSERV" arrggg!!!
+ */
+ if (strequal(name1, "*SMBSERVER ")
+ || strequal(name1, "*SMBSERV ")) {
+ fstrcpy(name1, sconn->client_id.addr);
+ }
+
set_local_machine_name(name1, True);
set_remote_machine_name(name2, True);