e615632
diff -up tcp_wrappers_7.6/hosts_access.c.patch21 tcp_wrappers_7.6/hosts_access.c
e615632
--- tcp_wrappers_7.6/hosts_access.c.patch21	2008-08-29 09:45:12.000000000 +0200
e615632
+++ tcp_wrappers_7.6/hosts_access.c	2008-08-29 09:45:12.000000000 +0200
Viktor Hercinger cf076b1
@@ -391,6 +391,9 @@ char   *string;
Tomas Janousek a2c7a4a
 	return (STR_NE(string, unknown));
Tomas Janousek a2c7a4a
     } else if (tok[(n = strlen(tok)) - 1] == '.') {	/* prefix */
Tomas Janousek a2c7a4a
 	return (STRN_EQ(tok, string, n));
Tomas Janousek a2c7a4a
+    } else if ((STR_EQ(tok, "localhost") || STR_EQ(tok, "localhost.localdomain"))
Tomas Janousek a2c7a4a
+	    && (STR_EQ(string, "localhost") || STR_EQ(string, "localhost.localdomain"))) {
Tomas Janousek a2c7a4a
+	return (YES); /* these localhosts are equivalent */
Tomas Janousek a2c7a4a
     } else {					/* exact match */
Viktor Hercinger cf076b1
 	return (STR_EQ(tok, string));
Viktor Hercinger cf076b1
     }