From: Tom Yu Date: Fri, 20 Apr 2007 22:09:39 +0000 (+0000) Subject: pull up r19509 from trunk X-Git-Tag: krb5-1.6.1-final~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3aaf69ff3a94debdf3583a84e323fc4bd148d11f;p=krb5.git pull up r19509 from trunk r19509@cathode-dark-space: kpkoch | 2007-04-19 16:04:08 -0400 Ticket: new 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: 5537 version_fixed: 1.6.1 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19514 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) {