浏览代码

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 16 年前
父节点
当前提交
a4445df988
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. +5
    -1
      WHATSNEW
  2. +3
    -0
      src/main/org/apache/tools/tar/TarEntry.java

+ 5
- 1
WHATSNEW 查看文件

@@ -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 查看文件

@@ -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);
}
} }


/** /**


正在加载...
取消
保存