From b7aacf578ef00562a5b1d6283329bb0cdffeca1d Mon Sep 17 00:00:00 2001 From: shin Date: Thu, 3 Feb 2000 09:54:49 +0000 Subject: 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 --- usr.sbin/inetd/inetd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin/inetd') diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 05da830..65d25e3 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; } -- cgit v1.1