svn commit: samba r3650 - branches/SAMBA_3_0/source/lib trunk/source/lib

gd at samba.org gd at samba.org
Wed Nov 10 02:13:36 GMT 2004


Author: gd
Date: 2004-11-10 02:13:36 +0000 (Wed, 10 Nov 2004)
New Revision: 3650

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

Log:
Allow to call spoolss-server as "localhost".

Guenther

Modified:
   branches/SAMBA_3_0/source/lib/util.c
   trunk/source/lib/util.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/util.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util.c	2004-11-10 02:09:13 UTC (rev 3649)
+++ branches/SAMBA_3_0/source/lib/util.c	2004-11-10 02:13:36 UTC (rev 3650)
@@ -1747,7 +1747,12 @@
 
 	if (is_myname(servername))
 		return True;
-		
+
+	/* check for loopback */
+
+	if (strequal(servername, "localhost")) 
+		return True;
+
 	/* maybe it's my dns name */
 
 	if ( get_mydnsfullname( dnsname ) )

Modified: trunk/source/lib/util.c
===================================================================
--- trunk/source/lib/util.c	2004-11-10 02:09:13 UTC (rev 3649)
+++ trunk/source/lib/util.c	2004-11-10 02:13:36 UTC (rev 3650)
@@ -1747,7 +1747,12 @@
 
 	if (is_myname(servername))
 		return True;
-		
+
+	/* check for loopback */
+
+	if (strequal(servername, "localhost")) 
+		return True;
+
 	/* maybe it's my dns name */
 
 	if ( get_mydnsfullname( dnsname ) )



More information about the samba-cvs mailing list