1Upstream-Status: Backport
2
3diff -ruN tcp_wrappers_7.6.orig/tcpdchk.c tcp_wrappers_7.6/tcpdchk.c
4--- tcp_wrappers_7.6.orig/tcpdchk.c	2003-08-21 02:50:37.000000000 +0200
5+++ tcp_wrappers_7.6/tcpdchk.c	2003-08-21 02:50:33.000000000 +0200
6@@ -53,6 +53,24 @@
7 #include "inetcf.h"
8 #include "scaffold.h"
9
10+/* list of programs which are known to be linked with libwrap in debian */
11+static const char *const libwrap_programs[] = {
12+    "portmap", "mountd", "statd", "ugidd",
13+    "redir", "rlinetd",
14+    "sshd",
15+    "atftpd",
16+    "diald",
17+    "esound",
18+    "gdm", "gnome-session",
19+    "icecast", "icecast_admin", "icecast_client", "icecast_source",
20+    "mysqld",
21+    "ntop",
22+    "pptpd",
23+    "rquotad",
24+    "sendmail", "smail",
25+    NULL
26+};
27+
28  /*
29   * Stolen from hosts_access.c...
30   */
31@@ -147,8 +165,8 @@
32     /*
33      * These are not run from inetd but may have built-in access control.
34      */
35-    inet_set("portmap", WR_NOT);
36-    inet_set("rpcbind", WR_NOT);
37+    for (c = 0; libwrap_programs[c]; c++)
38+	inet_set(libwrap_programs[c], WR_YES);
39
40     /*
41      * Check accessibility of access control files.
42