diff --git a/mozilla/webtools/tinderbox/doadmin.cgi b/mozilla/webtools/tinderbox/doadmin.cgi index 4ea5b198050..6af23e7c6a8 100755 --- a/mozilla/webtools/tinderbox/doadmin.cgi +++ b/mozilla/webtools/tinderbox/doadmin.cgi @@ -76,9 +76,9 @@ sub trim_logs { # Nuke the old log files # $i = 0; - opendir( D, 'DogbertTip' ); + opendir( D, "$tree" ); while( $fn = readdir( D ) ){ - if( $fn =~ /\.gz$/ ){ + if( $fn =~ /\.(?:gz|brief\.html)$/ ){ ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime, $ctime,$blksize,$blocks) = stat("$tree/$fn"); if( $mtime && ($mtime < $min_date) ){