From: Kevin Koch Date: Thu, 19 Apr 2007 20:04:08 +0000 (+0000) Subject: Modify Unix find test to only check the current directory for the non-existent a.tmp X-Git-Tag: krb5-1.7-alpha1~1129 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1304526cd179cf59e1220cc2e1c8a11586a198cb;p=krb5.git Modify Unix find test to only check the current directory for the non-existent a.tmp 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 --- diff --git a/src/windows/build/bkw.pl b/src/windows/build/bkw.pl index f397654a7..8b8b1ab6f 100644 --- a/src/windows/build/bkw.pl +++ b/src/windows/build/bkw.pl @@ -252,7 +252,7 @@ sub main { $ENV{PATH} = $unixfind.";".$savedPATH; print "Info -- chdir to ".`cd`."\n" if ($verbose); if (-e "a.tmp") {!system("rm a.tmp") or die "Fatal -- Couldn't clean temporary file a.tmp.";} - !system("find . -name a.tmp > b.tmp 2>&1") or die "Fatal -- find test failed."; + !system("find . -maxdepth 0 -name a.tmp > b.tmp 2>&1") or die "Fatal -- find test failed."; local $filesize = -s "b.tmp"; $ENV{PATH} = $savedPATH; if ($filesize > 0) {