Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 38ee502

Browse filesBrowse files
authored
Use POSIX extensions for tar archives (#1787)
Closes #1747 triggered error like ``` group id '1718009175' is too big ( > 2097151 ). Use STAR or POSIX extensions to overcome this limit ``` Use POSIX/PAX extensions to store big numbers in the archive. Use POSIX/PAX extensions to store long file names in the archive.
1 parent a31aff8 commit 38ee502
Copy full SHA for 38ee502

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎docker-java-core/src/main/java/com/github/dockerjava/core/util/CompressArchiveUtil.java

Copy file name to clipboardExpand all lines: docker-java-core/src/main/java/com/github/dockerjava/core/util/CompressArchiveUtil.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public static File archiveTARFiles(File base, Iterable<File> files, String archi
9898
tarFile.deleteOnExit();
9999
try (TarArchiveOutputStream tos = new TarArchiveOutputStream(new GZIPOutputStream(new BufferedOutputStream(
100100
new FileOutputStream(tarFile))))) {
101-
tos.setLongFileMode(TarArchiveOutputStream.LONGFILE_GNU);
101+
tos.setLongFileMode(TarArchiveOutputStream.LONGFILE_POSIX);
102+
tos.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_POSIX);
102103
for (File file : files) {
103104
// relativize with method using Path otherwise method with File resolves the symlinks
104105
// and this is not want we want. If the file is a symlink, the relativized path should

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.