2008-08-29 07:49:41 +00:00
|
|
|
diff -up tcp_wrappers_7.6/hosts_access.c.patch21 tcp_wrappers_7.6/hosts_access.c
|
|
|
|
--- tcp_wrappers_7.6/hosts_access.c.patch21 2008-08-29 09:45:12.000000000 +0200
|
|
|
|
+++ tcp_wrappers_7.6/hosts_access.c 2008-08-29 09:45:12.000000000 +0200
|
|
|
|
@@ -346,6 +346,9 @@ char *string;
|
2007-06-28 13:40:29 +00:00
|
|
|
return (STR_NE(string, unknown));
|
|
|
|
} else if (tok[(n = strlen(tok)) - 1] == '.') { /* prefix */
|
|
|
|
return (STRN_EQ(tok, string, n));
|
|
|
|
+ } else if ((STR_EQ(tok, "localhost") || STR_EQ(tok, "localhost.localdomain"))
|
|
|
|
+ && (STR_EQ(string, "localhost") || STR_EQ(string, "localhost.localdomain"))) {
|
|
|
|
+ return (YES); /* these localhosts are equivalent */
|
|
|
|
} else { /* exact match */
|
|
|
|
#ifdef INET6
|
|
|
|
struct addrinfo hints, *res;
|