summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-09 13:26:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:21 -0500
commit9d20474a48931a2574e04ba89db730be9bfb7288 (patch)
tree9dc45392522dcc5f60756f3da905f6d24928dc70
parent442f5526a043be624e35c8ab2de60de2630cd619 (diff)
downloadsamba-9d20474a48931a2574e04ba89db730be9bfb7288.tar.gz
samba-9d20474a48931a2574e04ba89db730be9bfb7288.tar.bz2
samba-9d20474a48931a2574e04ba89db730be9bfb7288.zip
r19203: Part two of returning our real name. This code is a bit ancient... :-)
(This used to be commit 370c24ba2ad3bce29929886f96d626e698da0238)
-rw-r--r--source3/smbd/lanman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 8a16c2c044..8ecc965c0d 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -2691,7 +2691,7 @@ static BOOL api_RNetServerGetInfo(connection_struct *conn,uint16 vuid, char *par
if ((count=get_server_info(SV_TYPE_ALL,&servers,lp_workgroup()))>0) {
for (i=0;i<count;i++) {
- if (strequal(servers[i].name,get_local_machine_name())) {
+ if (strequal(servers[i].name,global_myname())) {
servertype = servers[i].type;
push_ascii(comment,servers[i].comment,sizeof(pstring),STR_TERMINATE);
}