When the pismere area is under the script area (as in Jeff's setup on afs), the find test slogs through 100MB of files and occasionally finds an a.tmp.
This correct the erroneous 'unix find not found' errors and improves performance noticeably when using afs.
Ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19509
dc483132-0cff-0310-8789-
dd5450dbe970
$ENV{PATH} = $unixfind.";".$savedPATH;\r
print "Info -- chdir to ".`cd`."\n" if ($verbose);\r
if (-e "a.tmp") {!system("rm a.tmp") or die "Fatal -- Couldn't clean temporary file a.tmp.";}\r
- !system("find . -name a.tmp > b.tmp 2>&1") or die "Fatal -- find test failed.";\r
+ !system("find . -maxdepth 0 -name a.tmp > b.tmp 2>&1") or die "Fatal -- find test failed.";\r
local $filesize = -s "b.tmp";\r
$ENV{PATH} = $savedPATH;\r
if ($filesize > 0) {\r