Creating a xar archive with a bogus/missing filename for the -s option will generate a toc that looks malformed: the subdoc element encloses all other content.
For example:
% touch fff % xar -cf foo.xar fff -s xxx % xar -f foo.xar --dump-toc=/dev/stdout <?xml version="1.0" encoding="UTF-8"?> <xar> <subdoc subdoc_name="subdoc"> <toc> <file id="1"> <name>fff</name> <type>file</type> <mode>0664</mode> <uid>501</uid> <user>jberry</user> <gid>501</gid> <group>jberry</group> <atime>2007-04-24T17:11:50Z</atime> <mtime>2007-04-24T17:11:50Z</mtime> <ctime>2007-04-24T17:11:50Z</ctime> </file> <checksum style="sha1"> <size>20</size> <offset>0</offset> </checksum> </toc> </subdoc> <toc/> </xar>
Comment #1
Posted on Apr 24, 2007 by Happy DogThis should be resolved with commit r133.
Status: Fixed
Labels:
Type-Defect
Priority-Medium