<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libarchive/test/test_write_format_ar.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2011-12-22T08:42:07Z</updated>
<entry>
<title>Use contrib sources for building libarchive, tar and cpio.</title>
<updated>2011-12-22T08:42:07Z</updated>
<author>
<name>Martin Matuska</name>
<email>mm@FreeBSD.org</email>
</author>
<published>2011-12-22T08:42:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=45d3b226a6370e9c8a99d042320250d96c9daf32'/>
<id>urn:sha1:45d3b226a6370e9c8a99d042320250d96c9daf32</id>
<content type='text'>
Make "make test" fully operational.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Merge r294:337,r348:350 from libarchive.googlecode.com: A lot</title>
<updated>2009-03-03T17:02:51Z</updated>
<author>
<name>Tim Kientzle</name>
<email>kientzle@FreeBSD.org</email>
</author>
<published>2009-03-03T17:02:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=690f818afd6c3c0721202dd1e075aeaaae004704'/>
<id>urn:sha1:690f818afd6c3c0721202dd1e075aeaaae004704</id>
<content type='text'>
of work to make libarchive work on Windows.
</content>
</entry>
<entry>
<title>Update the ar write test to give more detailed information about failures.</title>
<updated>2008-12-17T19:03:44Z</updated>
<author>
<name>Tim Kientzle</name>
<email>kientzle@FreeBSD.org</email>
</author>
<published>2008-12-17T19:03:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=da9157722db3dbdb01788c97c3795aa41fada245'/>
<id>urn:sha1:da9157722db3dbdb01788c97c3795aa41fada245</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Style:  Use ARCHIVE_VERSION_NUMBER to conditionalize tests on</title>
<updated>2008-09-01T05:38:33Z</updated>
<author>
<name>Tim Kientzle</name>
<email>kientzle@FreeBSD.org</email>
</author>
<published>2008-09-01T05:38:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0c35edadaaffdc116c7be1a2ecc38359d91f0901'/>
<id>urn:sha1:0c35edadaaffdc116c7be1a2ecc38359d91f0901</id>
<content type='text'>
the particular libarchive version being tested instead of the
deprecated ARCHIVE_API_VERSION and ARCHIVE_VERSION_STAMP macros.
</content>
</entry>
<entry>
<title>MFp4: libarchive 2.5.4b.  (Still 'b' until I get a bit more</title>
<updated>2008-05-26T17:00:24Z</updated>
<author>
<name>Tim Kientzle</name>
<email>kientzle@FreeBSD.org</email>
</author>
<published>2008-05-26T17:00:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fa07de5eeb36516701b3393f13acc1e1f702c634'/>
<id>urn:sha1:fa07de5eeb36516701b3393f13acc1e1f702c634</id>
<content type='text'>
feedback, but the 2.5 branch is shaping up nicely.)

In addition to many small bug fixes and code improvements:
 * Another iteration of versioning; I think I've got it right now.
 * Portability:  A lot of progress on Windows support (though I'm
   not committing all of the Windows support files to FreeBSD CVS)
 * Explicit tracking of MBS, WCS, and UTF-8 versions of strings
   in archive_entry; the archive_entry routines now correctly return
   NULL only when something is unset, setting NULL properly clears
   string values.  Most charset conversions have been pushed down to
   archive_string.
 * Better handling of charset conversion failure when writing or
   reading UTF-8 headers in pax archives
 * archive_entry_linkify() provides multiple strategies for
   hardlink matching to suit different format expectations
 * More accurate bzip2 format detection
 * Joerg Sonnenberger's extensive improvements to mtree support
 * Rough support for self-extracting ZIP archives.  Not an ideal
   approach, but it works for the archives I've tried.
 * New "sparsify" option in archive_write_disk converts blocks of nulls
   into seeks.
 * Better default behavior for the test harness; it now reports
   all failures by default instead of coredumping at the first one.
</content>
</entry>
<entry>
<title>Current 'ar' read support in libarchive can only handle a GNU/SVR4</title>
<updated>2008-03-12T21:10:26Z</updated>
<author>
<name>Kai Wang</name>
<email>kaiw@FreeBSD.org</email>
</author>
<published>2008-03-12T21:10:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a739eb83744fdf2f72ebe46953ecdc13a0fe6c57'/>
<id>urn:sha1:a739eb83744fdf2f72ebe46953ecdc13a0fe6c57</id>
<content type='text'>
filename table whose size is less than 65536 bytes.

The original intention was to not consume the filename table, so the
client will have a chance to look at it. To achieve that, the library
call decompressor-&gt;read_ahead to read(look ahead) but do not call
decompressor-&gt;consume to consume the data, thus a limit was raised
since read_ahead call can only look ahead at most BUFFER_SIZE(65536)
bytes at the moment, and you can not "look any further" before you
consume what you already "saw".

This commit will turn GNU/SVR4 filename table into "archive format
data", i.e., filename table will be consumed by libarchive, so the
65536-bytes limit will be gone, but client can no longer have access
to the content of filename table.

'ar' support test suite is changed accordingly. BSD ar(1) is not
affected by this change since it doesn't look at the filename table.

Reported by:	erwin
Discussed with:	jkoshy, kientzle
Reviewed by:	jkoshy, kientzle
Approved by:	jkoshy(mentor), kientzle
</content>
</entry>
<entry>
<title>Make test suite work with libarchive 1.3.1:  Take advantage of</title>
<updated>2007-07-06T15:43:11Z</updated>
<author>
<name>Tim Kientzle</name>
<email>kientzle@FreeBSD.org</email>
</author>
<published>2007-07-06T15:43:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dbb4eb7d9cd676c9a69989fdee748ee94fb1306f'/>
<id>urn:sha1:dbb4eb7d9cd676c9a69989fdee748ee94fb1306f</id>
<content type='text'>
ARCHIVE_VERSION_STAMP to selectively disable tests that don't
apply to that version; new "skipping()" function reports skipped
tests; modify final summary to report component test failures and
skips.

Note:  I don't currently intend to MFC the test suite itself;
anyone interested should just checkout and use this version
of the test suite, which should work for any library version.

Approved by: re (Ken Smith, blanket)
</content>
</entry>
<entry>
<title>Make 'ar' write test a tad more portable.</title>
<updated>2007-06-13T03:40:02Z</updated>
<author>
<name>Tim Kientzle</name>
<email>kientzle@FreeBSD.org</email>
</author>
<published>2007-06-13T03:40:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d02e3c38ab95cce69dbd193aaa95855bd052945e'/>
<id>urn:sha1:d02e3c38ab95cce69dbd193aaa95855bd052945e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libarchive 2.2.3</title>
<updated>2007-05-29T01:00:21Z</updated>
<author>
<name>Tim Kientzle</name>
<email>kientzle@FreeBSD.org</email>
</author>
<published>2007-05-29T01:00:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b48b40f1f8ccea70fb209a05ed3eee1031790500'/>
<id>urn:sha1:b48b40f1f8ccea70fb209a05ed3eee1031790500</id>
<content type='text'>
  * "compression_program" support uses an external program
  * Portability: no longer uses "struct stat" as a primary
    data interchange structure internally
  * Part of the above: refactor archive_entry to separate
    out copy_stat() and stat() functions
  * More complete tests for archive_entry
  * Finish archive_entry_clone()
  * Isolate major()/minor()/makedev() in archive_entry; remove
    these from everywhere else.
  * Bug fix: properly handle decompression look-ahead at end-of-data
  * Bug fixes to 'ar' support
  * Fix memory leak in ZIP reader
  * Portability: better timegm() emulation in iso9660 reader
  * New write_disk flags to suppress auto dir creation and not
    overwrite newer files (for future cpio front-end)
  * Simplify trailing-'/' fixup when writing tar and pax
  * Test enhancements:  fix various compiler warnings, improve
    portability, add lots of new tests.
  * Documentation: document new functions, first draft of
    libarchive_internals.3

MFC after: 14 days
Thanks to: Joerg Sonnenberger (compression_program)
Thanks to: Kai Wang (ar)
Thanks to: Colin Percival (many small fixes)
Thanks to: Many others who sent me various patches and problem reports.
</content>
</entry>
<entry>
<title>Overhaul of 'ar' support:</title>
<updated>2007-04-14T22:34:10Z</updated>
<author>
<name>Tim Kientzle</name>
<email>kientzle@FreeBSD.org</email>
</author>
<published>2007-04-14T22:34:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=37320c757531fe4f065ed23bc44671e92af68963'/>
<id>urn:sha1:37320c757531fe4f065ed23bc44671e92af68963</id>
<content type='text'>
  * use "AR_GNU" as the format name instead of AR_SVR4 (it's what everyone is going to call it anyway)
  * Simplify numeric parsing to unsigned (none of the numeric values should ever be negative); don't run off end of numeric fields.
  * Finish parsing the common header fields before the next I/O request (which might dump the contents)
  * Be smarter about format guessing and trimming filenames.
  * Most of the magic values are only used in one place, so just inline them.
  * Many more comments.
  * Be smarter about handling damaged entries; return something reasonable.
  * Call it a "filename table" instead of a "string table"
  * Update tests.

Enable selection of 'ar', 'arbsd', and 'argnu' formats by name
(this allows bsdtar to create ar format archives).

The 'ar' writer still needs some work; it should reject
entries that aren't regular files and should probably also
strip leading paths from filenames.
</content>
</entry>
</feed>
