svn commit: samba r9791 - in branches/SAMBA_4_0: . source/lib

tridge at samba.org tridge at samba.org
Tue Aug 30 11:44:00 GMT 2005


Author: tridge
Date: 2005-08-30 11:44:00 +0000 (Tue, 30 Aug 2005)
New Revision: 9791

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9791

Log:
 r11611 at blu:  tridge | 2005-08-30 21:48:22 +1000
 recognise any case combination of 'localhost' as 127.0.0.1
 

Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/lib/util.c


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: svk:merge
   - a953eb74-4aff-0310-a63c-855d20285ebb:/local/samba4:11609
   + a953eb74-4aff-0310-a63c-855d20285ebb:/local/samba4:11611

Modified: branches/SAMBA_4_0/source/lib/util.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util.c	2005-08-30 11:41:45 UTC (rev 9790)
+++ branches/SAMBA_4_0/source/lib/util.c	2005-08-30 11:44:00 UTC (rev 9791)
@@ -341,7 +341,7 @@
 	}
 	/* recognise 'localhost' as a special name. This fixes problems with
 	   some hosts that don't have localhost in /etc/hosts */
-	if (strcmp(str,"localhost") == 0) {
+	if (strcasecmp(str,"localhost") == 0) {
 		str = "127.0.0.1";
 	}
 



More information about the samba-cvs mailing list