sudipta1411 / jtar

Automatically exported from code.google.com/p/jtar
0 stars 0 forks source link

Error in header #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Header seems to be per POSIX spec 
(http://en.wikipedia.org/wiki/Tar_%28computing%29) but there is an error in 
field 
UStar version which is supposed to be "00" but is NULL NULL instead.

Error is in tarheader.java that defines USTAR_MAGIC = "ustar" but does not 
define "00" anywhere. When bytes are written to header, null charactears appear 
because buffer is pre-zeroed.

Original issue reported on code.google.com by matjaz.p...@gmail.com on 8 Apr 2015 at 12:14