Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 95252 invoked from network); 30 Jun 2009 04:27:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jun 2009 04:27:09 -0000 Received: (qmail 41487 invoked by uid 500); 30 Jun 2009 04:27:20 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 41452 invoked by uid 500); 30 Jun 2009 04:27:19 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 41443 invoked by uid 99); 30 Jun 2009 04:27:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 04:27:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 04:27:17 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6F12923888CC; Tue, 30 Jun 2009 04:26:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r789556 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/tar/TarBuffer.java Date: Tue, 30 Jun 2009 04:26:57 -0000 To: notifications@ant.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090630042657.6F12923888CC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Tue Jun 30 04:26:56 2009 New Revision: 789556 URL: http://svn.apache.org/viewvc?rev=789556&view=rev Log: clear out buffer so the last block is always filled with EOF records. PR 47421 Modified: ant/core/trunk/WHATSNEW ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java Modified: ant/core/trunk/WHATSNEW URL: http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=789556&r1=789555&r2=789556&view=diff ============================================================================== --- ant/core/trunk/WHATSNEW (original) +++ ant/core/trunk/WHATSNEW Tue Jun 30 04:26:56 2009 @@ -388,6 +388,10 @@ * ' encoding attribute didn't work. Bugzilla Report 47382. + * Ant created tar archives could contain random bytes at the end + which confused some untar implementations. + Bugzilla Report 47421. + Other changes: -------------- * A HostInfo task was added performing information on hosts, including info on Modified: ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java?rev=789556&r1=789555&r2=789556&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java (original) +++ ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java Tue Jun 30 04:26:56 2009 @@ -412,6 +412,7 @@ currRecIdx = 0; currBlkIdx++; + Arrays.fill(blockBuffer, (byte) 0); } /**