From 1304526cd179cf59e1220cc2e1c8a11586a198cb Mon Sep 17 00:00:00 2001 From: Kevin Koch Date: Thu, 19 Apr 2007 20:04:08 +0000 Subject: 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 --- src/windows/build/bkw.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/windows/build/bkw.pl') diff --git a/src/windows/build/bkw.pl b/src/windows/build/bkw.pl index f397654a7d..8b8b1ab6fe 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) { -- cgit