summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2016-10-27 17:54:02 +0200
committerSimon Rettberg2016-10-27 17:54:02 +0200
commite891757345e2c582983bdcc28c499fc38e1b7a5a (patch)
tree4bc196d448c005ca40c2b34c0ab47bd2a0704c9f
parent[CompileIPxe] Support usb stick generation (diff)
downloadtmlite-bwlp-e891757345e2c582983bdcc28c499fc38e1b7a5a.tar.gz
tmlite-bwlp-e891757345e2c582983bdcc28c499fc38e1b7a5a.tar.xz
tmlite-bwlp-e891757345e2c582983bdcc28c499fc38e1b7a5a.zip
[util/Archive] Enable long filename support (POSIX extension)
-rw-r--r--src/main/java/org/openslx/satserver/util/Archive.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/satserver/util/Archive.java b/src/main/java/org/openslx/satserver/util/Archive.java
index dcc1380..8ad2123 100644
--- a/src/main/java/org/openslx/satserver/util/Archive.java
+++ b/src/main/java/org/openslx/satserver/util/Archive.java
@@ -91,7 +91,9 @@ public class Archive
return null;
}
try {
- return new TarArchiveOutputStream( compressedOutputStream );
+ TarArchiveOutputStream stream = new TarArchiveOutputStream( compressedOutputStream );
+ stream.setLongFileMode( TarArchiveOutputStream.LONGFILE_POSIX );
+ return stream;
} catch ( Throwable t ) {
compressedOutputStream.close();
return null;