diff options
author | Tom Yu <tlyu@mit.edu> | 2007-04-20 22:09:39 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2007-04-20 22:09:39 +0000 |
commit | 3aaf69ff3a94debdf3583a84e323fc4bd148d11f (patch) | |
tree | 5e29badc72e072c6bf00c266bcede98a11d0e6ae /src | |
parent | 7f64b8601fb0d80a9ded54d19bcd893098c3f360 (diff) | |
download | krb5-3aaf69ff3a94debdf3583a84e323fc4bd148d11f.zip krb5-3aaf69ff3a94debdf3583a84e323fc4bd148d11f.tar.gz krb5-3aaf69ff3a94debdf3583a84e323fc4bd148d11f.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/windows/build/bkw.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/build/bkw.pl b/src/windows/build/bkw.pl index f397654..8b8b1ab 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) {
|