Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!brl-adm!seismo!rochester!ritcv!rocksvax!rocksanne!sunybcs!neil From: neil@sunybcs.UUCP Newsgroups: comp.bugs.4bsd Subject: inetd doesn't reset internal struct when reading conf file +FIX Message-ID: <2735@sunybcs.UUCP> Date: Fri, 27-Mar-87 17:33:23 EST Article-I.D.: sunybcs.2735 Posted: Fri Mar 27 17:33:23 1987 Date-Received: Sun, 29-Mar-87 08:37:04 EST Sender: nobody@sunybcs.UUCP Reply-To: neil@sunybcs.UUCP (Neil Smithline) Organization: SUNY/Buffalo Computer Science Lines: 34 Index: etc/inetd.c 4.3BSD Description: When inetd.c reads in its configure file it does not reset the se_bi structure to NULL between entries. As a result once you have a service that is internal in /etc/inetd.conf then all subsequent services will have this struct set to the most recently read internal service. Repeat-By: Put services in /etc/inetd.conf after the internal ones and try to use them. Fix: Apply the following patch. ---------------------------------------------------------------- RCS file: RCS/inetd.c,v retrieving revision 1.1 diff -c -r1.1 inetd.c *** /tmp/,RCSt1004841 Fri Mar 27 13:42:36 1987 --- inetd.c Fri Mar 27 02:09:05 1987 *************** *** 542,547 **** --- 542,548 ---- ; if (cp == NULL) return ((struct servtab *)0); + sep->se_bi = (struct biltin *)0; /* reset biltin - bug fix NGS 3/87 */ sep->se_service = strdup(skip(&cp)); arg = skip(&cp); if (strcmp(arg, "stream") == 0) Neil Smithline csnet: neil@buffalo.CSNET uucp: ..!{allegra,ames,decvax,watmath}!sunybcs!neil bitnet: neil@sunybcs.BITNET