You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/05/06 11:12:44 UTC

[commons-compress] branch master updated: fix TarFileTest.testDirectoryWithLongNameEndsWithSlash (#289)

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new 199abaa6 fix TarFileTest.testDirectoryWithLongNameEndsWithSlash (#289)
199abaa6 is described below

commit 199abaa671f2e172c7613dcc8605e44589533fc4
Author: Matt Juntunen <da...@users.noreply.github.com>
AuthorDate: Fri May 6 07:12:39 2022 -0400

    fix TarFileTest.testDirectoryWithLongNameEndsWithSlash (#289)
---
 .../java/org/apache/commons/compress/archivers/tar/TarFileTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/compress/archivers/tar/TarFileTest.java b/src/test/java/org/apache/commons/compress/archivers/tar/TarFileTest.java
index 73421ea5..5e7e85d4 100644
--- a/src/test/java/org/apache/commons/compress/archivers/tar/TarFileTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/tar/TarFileTest.java
@@ -266,7 +266,7 @@ public class TarFileTest extends AbstractTestCase {
             File tarF = new File(rootPath + "/tar" + i + ".tar");
             try (OutputStream dest = Files.newOutputStream(tarF.toPath());
                  TarArchiveOutputStream out = new TarArchiveOutputStream(new BufferedOutputStream(dest))) {
-                out.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_STAR);
+                out.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_POSIX);
                 out.setLongFileMode(TarArchiveOutputStream.LONGFILE_GNU);
 
                 File file = new File(rootPath, fileName);