Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142186593
D9056.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D9056.id.diff
View Options
Index: head/usr.sbin/inetd/Makefile
===================================================================
--- head/usr.sbin/inetd/Makefile
+++ head/usr.sbin/inetd/Makefile
@@ -16,7 +16,12 @@
CFLAGS+= -DINET6
.endif
-LIBADD= util wrap
+LIBADD= util
+
+.if ${MK_TCP_WRAPPERS} != "no"
+CFLAGS+= -DLIBWRAP
+LIBADD+= wrap
+.endif
# XXX for src/release/picobsd
.if !defined(RELEASE_CRUNCH)
Index: head/usr.sbin/inetd/inetd.c
===================================================================
--- head/usr.sbin/inetd/inetd.c
+++ head/usr.sbin/inetd/inetd.c
@@ -336,9 +336,11 @@
#ifdef LOGIN_CAP
login_cap_t *lc = NULL;
#endif
+#ifdef LIBWRAP
struct request_info req;
int denied;
char *service = NULL;
+#endif
struct sockaddr_storage peer;
int i;
struct addrinfo hints, *res;
@@ -748,6 +750,7 @@
_exit(0);
}
}
+#ifdef LIBWRAP
if (ISWRAP(sep)) {
inetd_setproctitle("wrapping", ctrl);
service = sep->se_server_name ?
@@ -776,6 +779,7 @@
(whichaf(&req) == AF_INET6) ? "6" : "");
}
}
+#endif
if (sep->se_bi) {
(*sep->se_bi->bi_fn)(ctrl, sep);
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 17, 11:45 PM (8 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27701104
Default Alt Text
D9056.id.diff (1 KB)
Attached To
Mode
D9056: Conditionalize libwrap support into inetd based on MK_TCP_WRAPPERS
Attached
Detach File
Event Timeline
Log In to Comment