Index: src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>ISO-8859-1
===================================================================
--- src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java	(revision )
+++ src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java	(revision 68db5fa9ed38fb599c59be98d561daefc541d7da)
@@ -283,14 +283,7 @@
         }
 
         entryOffset = 0;
-
-        //Compress-330 Directories should always be sized 0 bytes. Otherwise we will lose our place in
-        //parsing the stream.
-        if(currEntry != null && currEntry.isDirectory() && currEntry.getSize() > 0) {
-            entrySize = 0;
-        } else {
-            entrySize = currEntry.getSize();
+        entrySize = currEntry.getSize();
-        }
 
         if (currEntry.isGNULongLinkEntry()) {
             byte[] longLinkData = getLongNameData();
Index: src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>ISO-8859-1
===================================================================
--- src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java	(revision )
+++ src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java	(revision 68db5fa9ed38fb599c59be98d561daefc541d7da)
@@ -146,21 +146,6 @@
     }
 
     @Test
-    public void testCompress330() throws Exception {
-        TarArchiveInputStream tar = getTestStream("/COMPRESS-330.tar");
-        try {
-            TarArchiveEntry entry = tar.getNextTarEntry();
-            while (entry != null) {
-                entry = tar.getNextTarEntry();
-            }
-        } catch (IOException e) {
-            fail("COMPRESS-330: " + e.getMessage());
-        } finally {
-            tar.close();
-        }
-    }
-
-    @Test
     public void shouldUseSpecifiedEncodingWhenReadingGNULongNames()
         throws Exception {
         ByteArrayOutputStream bos = new ByteArrayOutputStream();
