diff --git a/WHATSNEW b/WHATSNEW index 18708f9cd..6fbf8c29f 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -18,6 +18,10 @@ Fixed bugs: jars. This resulted in jar files that couldn't be read by Java5. Bugzilla Report 58428 + * will now detect GNU tar longname/link records even if they + don't use the names used by GNU tar itself. star is known to + create archives of that kind. + https://issues.apache.org/jira/browse/COMPRESS-324 Other changes: -------------- diff --git a/src/main/org/apache/tools/tar/TarEntry.java b/src/main/org/apache/tools/tar/TarEntry.java index a9c96f13c..de15a1c71 100644 --- a/src/main/org/apache/tools/tar/TarEntry.java +++ b/src/main/org/apache/tools/tar/TarEntry.java @@ -706,8 +706,7 @@ public class TarEntry implements TarConstants { * @return true if this is a long name extension provided by GNU tar */ public boolean isGNULongLinkEntry() { - return linkFlag == LF_GNUTYPE_LONGLINK - && name.equals(GNU_LONGLINK); + return linkFlag == LF_GNUTYPE_LONGLINK; } /** @@ -716,8 +715,7 @@ public class TarEntry implements TarConstants { * @return true if this is a long name extension provided by GNU tar */ public boolean isGNULongNameEntry() { - return linkFlag == LF_GNUTYPE_LONGNAME - && name.equals(GNU_LONGLINK); + return linkFlag == LF_GNUTYPE_LONGNAME; } /**