summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge r585,r669 from libarchive.googlecode.com: If zlib is unavailable,kientzle2009-03-072-7/+8
| | | | | use external "gunzip" instead. With this in place, we can unconditionally enable gzip read support.
* Merge r550,584,587,609,647,674 from libarchive.googlecode.com:kientzle2009-03-074-123/+171
| | | | | | | | | | | | Refactor the read_compression_program to add two new abilities: * Public API: You can now include a signature string when you register a program; the program will run only on input that matches the signature string. * Internal API: You can use the init() function to instantiate an external program as part of a filter pipeline. This can be used for graceful fallback (if zlib is unavailable, use external gzip instead) and to use external programs with bidders that are more sophisticated than a static signature check.
* Merge r591 from libarchive.googlecode.com: signed/unsigned fixes.kientzle2009-03-071-4/+4
|
* Merge r558,567,569,571,581,582,583,598 from libarchive.googlecode.com:kientzle2009-03-075-33/+462
| | | | | | | Support Joliet extensions. This currently ignores Rockridge extensions if both exist on the same disk unless the '!joliet' option is provided. e.g.: tar -xvf example.iso --options '!joliet' Thanks to: Andreas Henriksson
* Merge r658 from libarchive.googlecode.com: Only flush and close thekientzle2009-03-073-23/+63
| | | | file if it was actually opened. Test for this case.
* Merge r714,r715 from libarchive.googlecode.com: Fix Debian bug #516577.kientzle2009-03-074-3/+31
| | | | | Don't crash if client does not provide a skip function. Extend one of the test cases to use archive_read_open2() with only a read callback.
* Merge r608 from libarchive.googlecode.com: Clear a newly-allocatedkientzle2009-03-071-1/+3
| | | | bidder object.
* Merge r564,r566 from libarchive.googlecode.com: Fix segfault whenkientzle2009-03-071-14/+22
| | | | | specifying an option and the current format doesn't have an options handler.
* Merge the rest of r453 from libarchive.googlecode.com: Test usingkientzle2009-03-071-0/+19
| | | | libarchive APIs to read extended attributes from disk on FreeBSD.
* Minor whitespace adjustment to reduce diffs with libarchive.googlecode.com.kientzle2009-03-071-1/+1
|
* Merge r552,r559 from libarchive.googlecode.com: Support high-resolutionkientzle2009-03-074-7/+46
| | | | timestamps on Tru64, AIX, and GNU Hurd. Thanks to Björn Jacke.
* Merge r283,r529 from libarchive.googlecode.com: Fix ext2_fs.h includeskientzle2009-03-072-7/+17
| | | | for Linux.
* Merge r659 from libarchive.googlecode.com: Correctly report "none"kientzle2009-03-075-4/+6
| | | | | | as the compression name when no other read filter bid. Add some assertions to various tests to verify that read filters are properly setting the textual name as well as the compression code.
* Add Bluetooth compatibility shims. Inspired by Linux BlueZ and NetBSD.emax2009-03-066-8/+548
| | | | | Discussed with: Iain Hibbert plunky -at- rya-online -dot- net of NetBSD MFC after: 1 month
* Merge r668 from libarchive.googlecode.com: Style correction to thekientzle2009-03-061-3/+3
| | | | | 'ar' reader: Don't redefine 'isdigit' and don't create a macro that's only used once.
* Merge r541,r542 from libarchive.googlecode.com: Two sign mismatcheskientzle2009-03-061-2/+3
| | | | in the Zip reader.
* Merge r491,493,500,507,510,530,543 from libarchive.googlecode.com:kientzle2009-03-0626-5/+508
| | | | | This implements the new generic options framework that provides a way to override format- and compression-specific parameters.
* Merge r448 from libarchive.googlecode.com: Suppress testing write_diskkientzle2009-03-061-1/+1
| | | | failures on Windows for now. Someday this will be revisited.
* Merge r403,702,721 from libarchive.googlecode.com: Handle oddkientzle2009-03-061-0/+54
| | | | | pathnames on Windows by mapping '\\' to '/' and converting illegal characters to '_'.
* Merge r505 from libarchive.googlecode.com: Fix %ju support. Simplifykientzle2009-03-063-26/+30
| | | | | | the code here a bit by making the int formatting functions static to archive_string_sprintf.c, which is the only place this has ever been used.
* Merge r457 from libarchive.googlecode.com: Stop appending strerror()kientzle2009-03-061-19/+0
| | | | | | | information to error strings. This caused a lot of unnecessary duplication in error messages; in particular, there are a few cases where error messages get copied from one archive object to another and this would cause the strerror() info to get appended each time.
* Merge r420,r494 from libarchive.googlecode.com: Prettify the testkientzle2009-03-061-5/+1
| | | | | harness a bit: remove a dead comment, tweak the wording of the summary report.
* Merge r435,r443 from libarchive.googlecode.com: Read config files fromkientzle2009-03-062-4/+4
| | | | include path; this makes it easier to support multiple build frameworks.
* Merge r416 from libarchive.googlecode.com:kientzle2009-03-064-8/+249
| | | | | | | Restoring POSIX.1e Extended Attributes on FreeBSD, part 1 This implements the basic ability to restore extended attributes on FreeBSD, including a test suite.
* Merge r407,r508 from libarchive.googlecode.com: Correctly handlekientzle2009-03-062-44/+44
| | | | | | | | | | Zip entries that are zero length but stored with deflate. This is arguably a silly thing to do (deflating a zero-length file actually makes it bigger) but apparently quite a few Zip writers do this. This was broken in two places: archive_write_disk disliked being asked to write data to zero-length files (even if the write was zero-length) and zip_read_file_header tripped over itself when non-regular files had compressed bodies.
* Merge r399,401,402,405,415,430,440,452,453,458,506,533,536,538,544,590kientzle2009-03-0610-0/+1231
| | | | | | | | | | | | | | | from libarchive.googlecode.com: Add a new "archive_read_disk" API that provides the important service of reading metadata from the disk. In particular, this will make it possible to remove all knowledge of extended attributes, ACLs, etc, from clients such as bsdtar and bsdcpio. Closely related, this API also provides pluggable uid->uname and gid->gname lookup and caching services similar to the uname->uid and gname->gid services provided by archive_write_disk. Remember this is also required for correct ACL management. Documentation is still pending...
* Merge r398 from libarchive.googlecode.com: Check that bidderkientzle2009-03-061-3/+3
| | | | object was allocated before we try to use it.
* Merge r394,r396 from libarchive.googlecode.com: Plug some memorykientzle2009-03-062-3/+16
| | | | leaks in the ACL test, correctly mark that FreeBSD has acl_get_perm_np().
* Merge r390,r391,r392,r397 from libarchive.googlecode.com: Virtualizekientzle2009-03-055-17/+42
| | | | | | "close" and "finish" across both read and write interfaces. (Someday, "finish" should be renamed to "free" to better reflect what it actually does...)
* Merge r389 from libarchive.googlecode.com: Fix a memorykientzle2009-03-051-1/+6
| | | | | leak in ISO9660 handler structure whenever a file entry has a nonsensical CE offset.
* Merge r386,r395,r451 from libarchive.googlecode.com: On Windows, breakkientzle2009-03-051-0/+6
| | | | | | into the debugger on test setup failures (otherwise, the console window just goes away and you can't see what went wrong). On all platforms, clean up a stray buffer before exiting.
* libc_r_* library is no more required, so just axe it.attilio2009-03-056-563/+0
| | | | | Approved by: marcel, emaste Sponsored by: Sandvine Incorporated
* Hopefully, improve the grammar and wording in the changes to shmctl(2)kib2009-03-051-4/+5
| | | | | | | manpage and UPDATING entry 20090302. UPDATING changes suggested by bf2006a yahoo com. man page corrections by bde.
* Argh. r189389 was supposed to include r539 from libarchive.googlecode.comkientzle2009-03-053-6/+9
| | | | but those compile fixes somehow got lost. This should fix the build.
* Merge r551,r561 from libarchive.googlecode.com: Update gzip read filterkientzle2009-03-052-231/+218
| | | | | to fully take advantage of the new peek/consume I/O support. In particular, this now properly handles concatenated gzip streams.
* Merge r364, r378, r379, r393, and r539 from libarchive.googlecode.com:kientzle2009-03-057-613/+506
| | | | | | | | | | | | | | | | This is the last phase of the "big decompression refactor" that puts a lazy reblocking layer between each pair of read filters. I've also changed the terminology for this area---the two kinds of objects are now called "read filters" and "read filter bidders"---and moved ownership of these objects to the archive_read core. This greatly simplifies implementing new read filters, which can now use peek/consume I/O semantics both for bidding (arbitrary look-ahead!) and for reading streams (look-ahead simplifies handling concatenated streams, for instance). The first merge here is the overhaul proper; the remainder are small fixes to correct errors in the initial implementation.
* Correct r189383, which mis-merged a change from libarchive.googlecode.com.kientzle2009-03-051-2/+2
|
* Our realloc(3) and reallocf(3) can handle NULL, which turns it into adelphij2009-03-054-21/+8
| | | | | | malloc(3) call, so don't test if a pointer is NULL. Obtained from: OpenBSD (in spirit)
* Merge r356 and r358 from libarchive.googlecode.com: Remove a Windowskientzle2009-03-052-9/+8
| | | | special case from archive_entry.c, add one to archive_check_magic.c.
* Merge r357 from libarchive.googlecode.com: bzip2 compressionkientzle2009-03-051-3/+3
| | | | | support can always be enabled even if bzlib doesn't exist on this platform; don't give up until we fail to open the file.
* Merge r362 from libarchive.googlecode.com: Minor fix tokientzle2009-03-051-2/+3
| | | | custom argument parser.
* Merge r342 from libarchive.googlecode.com: Remove somekientzle2009-03-051-28/+1
| | | | Windows special casing.
* Merge r344 from libarchive.googlecode.com: __LA_INT64_T and __LA_SSIZE_Tkientzle2009-03-051-3/+6
| | | | | are part of the public API and therefore need to be exposed. This is ugly; I'd like to find a better solution for this.
* Merge r341,r345,r346,347 from libarchive.googlecode.com: Stylekientzle2009-03-056-29/+59
| | | | | fixes to test harness and a few extra guards to detect tests that can't succeed on certain platforms.
* Add wcpcpy(3) and wcpncpy(3).das2009-03-045-3/+108
|
* Add dprintf() and vdprintf() from POSIX.1-2008. Like getline(),das2009-03-046-32/+198
| | | | | | dprintf() is a simple wrapper around another function, so we may as well implement it. But also like getline(), we can't prototype it by default right now because it would break too many ports.
* Fix a file descriptor leak in fts_child().das2009-03-041-1/+3
| | | | Obtained from: NetBSD
* Considerably improve the wording of this man page.bms2009-03-041-20/+77
|
* Update copyright.bms2009-03-041-16/+13
|
* Explicitly specify bit width for on-disk data structure.delphij2009-03-041-17/+17
| | | | Obtained from: OpenBSD
OpenPOWER on IntegriCloud