Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 81385 invoked from network); 8 Oct 2009 11:54:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Oct 2009 11:54:47 -0000 Received: (qmail 40054 invoked by uid 500); 8 Oct 2009 11:54:47 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 40016 invoked by uid 500); 8 Oct 2009 11:54:46 -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 40007 invoked by uid 99); 8 Oct 2009 11:54:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 11:54:46 +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; Thu, 08 Oct 2009 11:54:44 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 174DF23888FD; Thu, 8 Oct 2009 11:54:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r823136 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/tar/TarEntry.java Date: Thu, 08 Oct 2009 11:54:23 -0000 To: notifications@ant.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091008115423.174DF23888FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Thu Oct 8 11:54:22 2009 New Revision: 823136 URL: http://svn.apache.org/viewvc?rev=823136&view=rev Log: properly indicate the oldgnu format for tar entries with long file names. PR 47653. Submitted by Lorenz Diener Modified: ant/core/trunk/WHATSNEW ant/core/trunk/src/main/org/apache/tools/tar/TarEntry.java Modified: ant/core/trunk/WHATSNEW URL: http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=823136&r1=823135&r2=823136&view=diff ============================================================================== --- ant/core/trunk/WHATSNEW (original) +++ ant/core/trunk/WHATSNEW Thu Oct 8 11:54:22 2009 @@ -503,6 +503,10 @@ define the filterreader which is the recommended approach. Bugzilla Report 45439. + * Ant didn't set the proper "magic" value for tar entries containing + long file names in GNU longfile mode. + Bugzilla Report 47653. + Other changes: -------------- @@ -4110,7 +4114,7 @@ included, before performing file-by-file moves. This attempt will be done only if filtering is off and if mappers are not used. This is a performance improvement and there is no change otherwise in - the funtionality of this task. + the functionality of this task. * Exec task has extra attribute "resultproperty" to get the return code into a property. Modified: ant/core/trunk/src/main/org/apache/tools/tar/TarEntry.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/tar/TarEntry.java?rev=823136&r1=823135&r2=823136&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/tar/TarEntry.java (original) +++ ant/core/trunk/src/main/org/apache/tools/tar/TarEntry.java Thu Oct 8 11:54:22 2009 @@ -202,6 +202,9 @@ public TarEntry(String name, byte linkFlag) { this(name); this.linkFlag = linkFlag; + if (linkFlag == LF_GNUTYPE_LONGNAME) { + magic = new StringBuffer(GNU_TMAGIC); + } } /**