find and updatedb problems on sun-4

mp at allegra.att.com mp at allegra.att.com
Sun Dec 25 05:50:51 AEST 1988


Not a SPARC compiler problem this time.  The reason "find filename"
doesn't work on the Sun-4 is because of an uninitialized variable in the
fastfind() routine in find.c.

Change
	int i, count = 0, globflag;
to
	int i, count = 0, globflag = NO;

If you don't have source code, Jay Plett's suggestion of always using
globbed expressions is a reasonable workaround.  It might also be nice to
rewrite things to get rid of the calls to putw() and getw(), to eliminate
problems caused by byte-order differences.  As to our moderator's comment
about the posters' being in the twilight zone about the syntax of the find
command, the problem is that Sun updated the find command to include the
4.3BSD "fast find" enhancements but didn't update the man page.

	"SPARC: where i*j can be evaluated twice as fast as j*i"

	Mark Plotnick
	allegra!mp
	mp at research.att.com



More information about the Comp.sys.sun mailing list