Recently, other BSDs had faith support in inetd. Though our inetd has

it already, their syntax is not compatible with ours.  It will confuse
users.  So, we have compatibility with their syntex.

Approved by:	dwmalone
Obtained from:	NetBSD
This commit is contained in:
Hajimu UMEMOTO 2001-05-31 10:09:36 +00:00
parent 311176d1c5
commit a07ae7a1d8

View File

@ -1530,8 +1530,14 @@ more:
else if (strcmp(arg, "faith") == 0)
sep->se_type = FAITH_TYPE;
}
} else
} else {
if (sep->se_type == NORM_TYPE &&
strncmp(arg, "faith/", 6) == 0) {
arg += 6;
sep->se_type = FAITH_TYPE;
}
sep->se_proto = newstr(arg);
}
if (strncmp(sep->se_proto, "rpc/", 4) == 0) {
if (no_v4bind != 0) {
syslog(LOG_INFO, "IPv4 bind is ignored for %s",