ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
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 GMT
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);
+        }
     }
 
     /**



Mime
View raw message