Message195949
when tarfile generates a tar, it uses TarInfo objects which are packed to the binary format. This packing uses "itn" format for filling the "devmajor" and "devminor" fields of the tar file entry, with a default value of zero. The field length is 8 characters, and the formatting will format the values as octal strings, followed by a NUL byte, eg. '0000000\x00'.
However, other common tar tools do not exhibit this behavior, instead leaving the field filled with NUL bytes in case the earlier type field does not indicate a device type. Explicitly, the value generated by other tools is then '\x00\x00\x00\x00\x00\x00\x00\x00'.
This causes no interoperability issues (that I am aware of), but makes it hard to attempt to replicate the tar files generated by other tools exactly.
I am attaching a simple diff fixing this, but there are probably better ways to fix this. |
|
Date |
User |
Action |
Args |
2013-08-23 07:56:10 | Nuutti.Kotivuori | set | recipients:
+ Nuutti.Kotivuori |
2013-08-23 07:56:10 | Nuutti.Kotivuori | set | messageid: <1377244570.17.0.881759543234.issue18819@psf.upfronthosting.co.za> |
2013-08-23 07:56:10 | Nuutti.Kotivuori | link | issue18819 messages |
2013-08-23 07:56:09 | Nuutti.Kotivuori | create | |
|