1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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
This commit is contained in:
Yoshinobu Inoue 2000-02-03 09:54:49 +00:00
parent 858b447106
commit ef9c54c751
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56973

View File

@ -1522,8 +1522,9 @@ getconfigent()
} 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;
}