summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd/inetd.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-05-31 10:09:36 +0000
committerume <ume@FreeBSD.org>2001-05-31 10:09:36 +0000
commit25beb6e957cd30fb5dad918e9846a1714622e08d (patch)
tree56fda090b950d0d444774afcc86c109837e3db69 /usr.sbin/inetd/inetd.c
parent01c607845d7524badad28be0c71cd9aee57f8bab (diff)
downloadFreeBSD-src-25beb6e957cd30fb5dad918e9846a1714622e08d.zip
FreeBSD-src-25beb6e957cd30fb5dad918e9846a1714622e08d.tar.gz
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
Diffstat (limited to 'usr.sbin/inetd/inetd.c')
-rw-r--r--usr.sbin/inetd/inetd.c8
1 files changed, 7 insertions, 1 deletions
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",
OpenPOWER on IntegriCloud