"fast" find fix
Craig Leres
leres at helios.ee.lbl.gov
Fri Dec 30 13:16:33 AEST 1988
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 );
More information about the Comp.sys.sun
mailing list