Browse Source

properly indicate the oldgnu format for tar entries with long file names. PR 47653. Submitted by Lorenz Diener

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@823136 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
a4445df988
2 changed files with 8 additions and 1 deletions
  1. +5
    -1
      WHATSNEW
  2. +3
    -0
      src/main/org/apache/tools/tar/TarEntry.java

+ 5
- 1
WHATSNEW View File

@@ -503,6 +503,10 @@ Fixed bugs:
define the filterreader which is the recommended approach. define the filterreader which is the recommended approach.
Bugzilla Report 45439. 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: Other changes:
-------------- --------------


@@ -4110,7 +4114,7 @@ Other changes:
included, before performing file-by-file moves. This attempt will included, before performing file-by-file moves. This attempt will
be done only if filtering is off and if mappers are not used. This 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 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 * Exec task has extra attribute "resultproperty" to get the return code
into a property. into a property.


+ 3
- 0
src/main/org/apache/tools/tar/TarEntry.java View File

@@ -202,6 +202,9 @@ public class TarEntry implements TarConstants {
public TarEntry(String name, byte linkFlag) { public TarEntry(String name, byte linkFlag) {
this(name); this(name);
this.linkFlag = linkFlag; this.linkFlag = linkFlag;
if (linkFlag == LF_GNUTYPE_LONGNAME) {
magic = new StringBuffer(GNU_TMAGIC);
}
} }


/** /**


Loading…
Cancel
Save