Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!ucbcad!ucbvax!decvax!gsg!lew From: lew@gsg.UUCP Newsgroups: comp.bugs.4bsd Subject: Bug in 4.3 find (fastfind option) and fix Message-ID: <331@gsg.UUCP> Date: Thu, 9-Jul-87 15:48:16 EDT Article-I.D.: gsg.331 Posted: Thu Jul 9 15:48:16 1987 Date-Received: Sun, 12-Jul-87 01:42:21 EDT Distribution: comp Lines: 39 Keywords: 4.3 find bigram portable Index: /usr/src/usr.bin/find/find.c (4.3BSD) Description: Local variable used without initialization. This will work for Vax (local variables will be zeroed first), may not work on different machines. Repeat-By: Use updatedb.csh to generate a bigram database and the command: "find pattern" will fail for all pattern. Fix: Apply the following diff to the source. Line numbers may be off because of other local changes. *** find.c.orig Thu Jul 9 12:07:00 1987 --- find.c.new Thu Jul 9 12:12:53 1987 *************** *** 833,839 register char *p, *s; register int c; char *q, *index(), *patprep(); ! int i, count = 0, globflag; FILE *fp, *fopen(); char *patend, *cutoff; char path[1024]; --- 833,839 ----- register char *p, *s; register int c; char *q, *index(), *patprep(); ! int i, count = 0, globflag = NO; FILE *fp, *fopen(); char *patend, *cutoff; char path[1024]; -- ---------------------------------------------------------------------- Paul Lew {olivea,harvard,decvax}!gsg!lew (UUCP) General Systems Group, 51 Main Street, Salem, NH 03079 (603) 893-1000