Closed GoogleCodeExporter closed 9 years ago
Adding padding manually seems to solve this issue. I suggest changing
JTarTest.java.
Original comment by konr4...@gmail.com
on 5 Feb 2012 at 10:49
Original comment by xeus....@gmail.com
on 16 Feb 2012 at 3:52
Original comment by xeus....@gmail.com
on 16 Feb 2012 at 3:52
Padding is not a good idea. This actually breaks the Solaris tar - it stops on
directory entries containing zeros. The root problem seems to be that
File.length() behaves different on Windows (returns 0)/Unix (returns a size). A
Tar directory entry does not need any data/size - so the correct fix imho is to
change TarEntry.extractTarHeader() to something like this:
...
if(file.isDirectory()) {
...
header.size = 0;
} else {
...
header.size = file.length();
}
Original comment by holger.p...@gmail.com
on 16 Apr 2012 at 7:03
Original comment by xeus....@gmail.com
on 1 May 2012 at 9:13
Original issue reported on code.google.com by
konr4...@gmail.com
on 5 Feb 2012 at 10:03