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>
Original issue reported on code.google.com by ja...@jberry.us on 24 Apr 2007 at 5:15
Original issue reported on code.google.com by
ja...@jberry.us
on 24 Apr 2007 at 5:15