From 25beb6e957cd30fb5dad918e9846a1714622e08d Mon Sep 17 00:00:00 2001 From: ume Date: Thu, 31 May 2001 10:09:36 +0000 Subject: 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(-) (limited to 'usr.sbin') diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 8bf5415..2c6d90c 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", -- cgit v1.1