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
$ENV{PATH} = $unixfind.";".$savedPATH;\r
print "Info -- chdir to ".`cd`."\n" if ($verbose);\r
if (-e "a.tmp") {!system("rm a.tmp") or die "Fatal -- Couldn't clean temporary file a.tmp.";}\r
- !system("find . -name a.tmp > b.tmp 2>&1") or die "Fatal -- find test failed.";\r
+ !system("find . -maxdepth 0 -name a.tmp > b.tmp 2>&1") or die "Fatal -- find test failed.";\r
local $filesize = -s "b.tmp";\r
$ENV{PATH} = $savedPATH;\r
if ($filesize > 0) {\r