Author: ebourg Date: Fri Aug 9 08:32:40 2013 New Revision: 1512201 URL: http://svn.apache.org/r1512201 Log: Don't check the length of empty links
Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java?rev=1512201&r1=1512200&r2=1512201&view=diff ============================================================================== --- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java (original) +++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java Fri Aug 9 08:32:40 2013 @@ -275,7 +275,7 @@ public class TarArchiveOutputStream exte TarConstants.LF_GNUTYPE_LONGNAME); final String linkName = entry.getLinkName(); - boolean paxHeaderContainsLinkPath = linkName != null + boolean paxHeaderContainsLinkPath = linkName != null && linkName.length() > 0 && handleLongName(linkName, paxHeaders, "linkpath", TarConstants.LF_GNUTYPE_LONGLINK);