summaryrefslogtreecommitdiffstats
path: root/src/windows/build/bkw.pl
diff options
context:
space:
mode:
authorKevin Koch <kpkoch@mit.edu>2007-04-19 20:04:08 +0000
committerKevin Koch <kpkoch@mit.edu>2007-04-19 20:04:08 +0000
commit1304526cd179cf59e1220cc2e1c8a11586a198cb (patch)
tree014e4ac8b050d4c62ddf5002c62f47d97c74d19c /src/windows/build/bkw.pl
parenta33f70827abc77608c351f5cb1c99ad89b99608d (diff)
downloadkrb5-1304526cd179cf59e1220cc2e1c8a11586a198cb.tar.gz
krb5-1304526cd179cf59e1220cc2e1c8a11586a198cb.tar.xz
krb5-1304526cd179cf59e1220cc2e1c8a11586a198cb.zip
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
Diffstat (limited to 'src/windows/build/bkw.pl')
-rw-r--r--src/windows/build/bkw.pl2
1 files changed, 1 insertions, 1 deletions
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) {