Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request From: leres@helios.ee.lbl.gov (Craig Leres) Newsgroups: comp.sys.sun Subject: "fast" find fix Message-ID: <8812180517.AA04865@helios.ee.lbl.gov> Date: 30 Dec 88 03:16:33 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 32 Approved: Sun-Spots@rice.edu Original-Date: Sat, 17 Dec 88 21:17:34 PST X-Sun-Spots-Digest: Volume 7, Issue 78, message 9 of 10 Shortly after my last posting, I remembered that the "fast" find feature was broken on the sparc. Appended is a context diff for usr.bin/find/find.c that fixes the problem. (The workaround is to add a gratuitous meta character as Jay Plett suggests.) Craig ------ RCS file: RCS/find.c,v retrieving revision 1.1 diff -c -r1.1 find.c *** /tmp/,RCSt1a04851 Sat Dec 17 21:14:26 1988 --- find.c Sun Jul 10 20:03:46 1988 *************** *** 1,4 **** --- 1,6 ---- #ifndef lint + static char rcsid[] = + "@(#) $Header: find.c,v 1.2 88/07/10 20:02:57 leres Exp $ (LBL)"; static char sccsid[] = "@(#)find.c 1.1 87/12/21 SMI"; /* from S5R2 4.7 */ #endif *************** *** 1203,1208 **** --- 1205,1212 ---- if ( strchr ( pathpart, '*' ) || strchr ( pathpart, '?' ) || strchr ( pathpart, '[' ) ) globflag = YES; + else + globflag = NO; patend = patprep ( pathpart ); c = getc ( fp );