Skip to content

Commit

Permalink
Enable POSIX bignumber mode when creating tar files
Browse files Browse the repository at this point in the history
Closes gh-1612
  • Loading branch information
mhalbritter committed Jan 7, 2025
1 parent 765897a commit f08c635
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public ResponseEntity<byte[]> springTgz(R request) throws IOException {
private TarArchiveOutputStream createTarArchiveOutputStream(OutputStream output) {
try {
TarArchiveOutputStream out = new TarArchiveOutputStream(new GzipCompressorOutputStream(output));
out.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_POSIX);
out.setLongFileMode(TarArchiveOutputStream.LONGFILE_POSIX);
return out;
}
Expand Down

0 comments on commit f08c635

Please sign in to comment.