diff --git a/contrib/tcp_wrappers/inetcf.c b/contrib/tcp_wrappers/inetcf.c index 13838db9a4cc..c288196a714e 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) {