aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorYoshinobu Inoue <shin@FreeBSD.org>2000-02-03 09:54:49 +0000
committerYoshinobu Inoue <shin@FreeBSD.org>2000-02-03 09:54:49 +0000
commitef9c54c751de5d53aea501da20dfe26d7c838caa (patch)
treef273e8d812e211e8ad285e8c0ec0945e147c0493 /usr.sbin
parent858b447106e96f446a713285d8cf68893850eddb (diff)
downloadsrc-ef9c54c751de5d53aea501da20dfe26d7c838caa.tar.gz
src-ef9c54c751de5d53aea501da20dfe26d7c838caa.zip
Fix inetd wrong AF check for RPC services
Incorrect Address Family check is done for RPC services, and fail to initialize it. The error check is replaced to new one, which checks if IPv4 bind is enabled or not. (It is disabled when IPv6 numeric addr is specified for -a bind address option.) An review reqeust is once sent to des, but he quit MAINTAINER. Approved by: jkh
Notes
Notes: svn path=/head/; revision=56973
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/inetd/inetd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 05da8306396e..65d25e3871e2 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1522,8 +1522,9 @@ more:
} else
sep->se_proto = newstr(arg);
if (strncmp(sep->se_proto, "rpc/", 4) == 0) {
- if (sep->se_family != AF_INET) {
- syslog(LOG_ERR, "IPv6 for RPC is not supported yet");
+ if (no_v4bind != 0) {
+ syslog(LOG_INFO, "IPv4 bind is ignored for %s",
+ sep->se_service);
freeconfig(sep);
goto more;
}