Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!gatech!bloom-beacon!husc6!mit-eddie!ll-xn!ames!ptsfa!ihnp4!inuxc!iuvax!pur-ee!newton.physics.purdue.edu!wwc From: wwc@newton.physics.purdue.edu (William W. Carlson) Newsgroups: comp.bugs.4bsd Subject: Re: /usr/ucb/systat does not allow access to subsystem commands Message-ID: <797@newton.physics.purdue.edu> Date: Thu, 23-Jul-87 11:50:27 EDT Article-I.D.: newton.797 Posted: Thu Jul 23 11:50:27 1987 Date-Received: Sat, 25-Jul-87 12:53:04 EDT References: <2181@emory.uucp> Reply-To: wwc@newton.physics.purdue.edu.UUCP (William W. Carlson) Organization: Purdue Univ. Physics Dept., W. Lafayette, IN Lines: 27 A better fix is in the lookup() function (return of 0 means not found, return of -1 means ambiguous): Bill Carlson wwc@newton.physics.purdue.edu ..!ihnp4!pur-ee!wwc *** cmds.c.old Thu Jul 23 10:46:13 1987 --- cmds.c Thu Jul 23 08:31:05 1987 *************** *** 123,129 longest = 0; nmatches = 0; ! found = (struct cmdtab *)-1; for (c = cmdtab; p = c->c_name; c++) { for (q = name; *q == *p++; q++) if (*q == 0) /* exact match? */ --- 123,129 ----- longest = 0; nmatches = 0; ! found = (struct cmdtab *)0; for (c = cmdtab; p = c->c_name; c++) { for (q = name; *q == *p++; q++) if (*q == 0) /* exact match? */