From a07ae7a1d87a80fe52f0762fc1676aac2153af9b Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Thu, 31 May 2001 10:09:36 +0000 Subject: [PATCH] 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 --- usr.sbin/inetd/inetd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 8bf5415274ff..2c6d90c20fde 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -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",