summaryrefslogtreecommitdiffstats
path: root/contrib/tcp_wrappers
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-04-03 04:02:29 +0000
committerache <ache@FreeBSD.org>1999-04-03 04:02:29 +0000
commit96eeae5a31e28bf71b46c22b933a640f64069f01 (patch)
tree9e437d2c90d7f15695c69074fca2d336efb97eee /contrib/tcp_wrappers
parent55a61d83194a408c3240b5fe464722258ade8809 (diff)
downloadFreeBSD-src-96eeae5a31e28bf71b46c22b933a640f64069f01.zip
FreeBSD-src-96eeae5a31e28bf71b46c22b933a640f64069f01.tar.gz
Since our inetd wrapped now, treat all its services as tcpd-prefixed
for tcpdchk
Diffstat (limited to 'contrib/tcp_wrappers')
-rw-r--r--contrib/tcp_wrappers/inetcf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/tcp_wrappers/inetcf.c b/contrib/tcp_wrappers/inetcf.c
index 13838db..c288196 100644
--- a/contrib/tcp_wrappers/inetcf.c
+++ b/contrib/tcp_wrappers/inetcf.c
@@ -248,7 +248,11 @@ char *arg1;
*/
sprintf(daemon, "%s/%s", REAL_DAEMON_DIR, arg0);
if (STR_EQ(path, daemon)) {
+#ifdef __FreeBSD__
+ wrap_status = WR_MAYBE;
+#else
wrap_status = WR_NOT;
+#endif
} else if (check_path(daemon, &st) >= 0) {
wrap_status = WR_MAYBE;
} else if (errno == ENOENT) {
OpenPOWER on IntegriCloud