summaryrefslogtreecommitdiffstats
path: root/lib/libarchive
Commit message (Collapse)AuthorAgeFilesLines
* Permit ` as a pad character in the filename table.kientzle2009-02-011-4/+3
| | | | | This seems to fix the devel/zziplib port, which distributes its man pages in an ar archive.
* Fix ARCHIVE_EXTRACT_SPARSE handling in libarchive.kientzle2009-01-263-22/+305
| | | | | | | | Add a test to exercise this feature. This should fix --sparse/-S support in tar. Thanks to: Daichi GOTO MFC after: 1 week
* Merge-from-Googlecode r419kientzle2009-01-214-18/+81
| | | | | | | | | | | | | | | In archive_write_disk: If archive_write_header() fails to create the file, that's a failure and should return ARCHIVE_FAILED. Metadata restore failures still return ARCHIVE_WARN, because that's non-critical. Fix test_write_disk_secure test to verify the correct return code in one case; add test_write_disk_failures to do another very simple test of restore failure. This should fix cpio coredumping when it tries to restore to a write-protected directory. Thanks to: Giorgos Keramidas MFC after: 30 days
* "The first part is just to give more info, the latter part fixeskientzle2009-01-131-2/+5
| | | | | | | | an error to read files past the 32bit byte offset, for instance on DVDs." Submitted by: phk@ MFC after: 10 days
* Don't try to read the next Gzip header after we reach thekientzle2009-01-011-2/+3
| | | | | | | | end of the compressed stream. This is desirable behavior, but the implementation here is very broken and causes strange problems, so disable it for now. Thanks to Simon L. Nielsen for reporting this problem.
* If conversion from UTF8 fails, don't mark Unicode text as available.kientzle2008-12-231-1/+2
| | | | | Submitted by: Michihiro NAKAJIMA MFC after: 30 days
* Teach get_refdir() about FreeBSD's /usr/obj convention.kientzle2008-12-211-34/+45
| | | | | | In development, I run libarchive_test frequently by hand and it gets tedious having to specify a suitable -r path all of the time.
* Fill in a missing constkientzle2008-12-171-1/+1
|
* Exit earlier on failure in this test.kientzle2008-12-171-2/+2
|
* Once the test has failed, exit before the segfault.kientzle2008-12-171-2/+11
|
* Update the ar write test to give more detailed information about failures.kientzle2008-12-171-44/+44
|
* Clarify an 'ar' error message.kientzle2008-12-171-1/+1
|
* Obey the TMPDIR, TMP, TEMP, or TEMPDIR environment variableskientzle2008-12-081-1/+14
| | | | | when choosing a scratch directory for the tests. Fallback to "/tmp", of course.
* New tests:kientzle2008-12-069-0/+27367
| | | | | | | | | | | | * support for bzip2 file with multiple concatenated bzip2 streams * support for bzip2 file with junk after bzip2 stream * support for gzip file with junk after gzip stream * "fuzz" tester randomly modifies a bunch of input files in order to try to crash libarchive (this found an amusing hang in the ISO9660 code when trying to read images that advertised a zero blocksize). This test is implemented, but commented out for now: * support for gzip file with multiple concatenated gzip streams
* Strip ";1" and trailing "." from ISO9660 entries.kientzle2008-12-061-12/+21
| | | | This seems a better match for people's expectations.
* General improvements to Rockridge parsing and ISO9660 format detection.kientzle2008-12-061-156/+354
|
* Conditionalize a bunch of debugging messages; this alsokientzle2008-12-061-1/+10
| | | | eliminates what should be the only remaining stdio dependency.
* MfP4: Big read filter refactoring.kientzle2008-12-0615-1550/+1427
| | | | | | | | | | | | | | | | | | | | | | | This is an attempt to eliminate a lot of redundant code from the read ("decompression") filters by changing them to juggle arbitrary-sized blocks and consolidate reblocking code at a single point in archive_read.c. Along the way, I've changed the internal read/consume API used by the format handlers to a slightly different style originally suggested by des@. It does seem to simplify a lot of common cases. The most dramatic change is, of course, to archive_read_support_compression_none(), which has just evaporated into a no-op as the blocking code this used to hold has all been moved up a level. There's at least one more big round of refactoring yet to come before the individual filters are as straightforward as I think they should be...
* Style: tabs after #definekientzle2008-12-061-2/+2
|
* Use GCC-specific dead function markers only when using GCC.kientzle2008-12-061-1/+8
|
* Structure declarations can't be dllexported.kientzle2008-12-061-1/+1
|
* Style fixes:kientzle2008-12-061-29/+71
| | | | | | | | | | | | | | * Wrap long declarations to fit 80 chars * #undef macros that shouldn't be exported * Organize the version-dependent conditionals a bit more consistently Speculative: * libarchive 3.0 will (eventually) use int64_t instead of off_t. This is an attempt to avoid some the headaches caused by Linux LFS. (I'll still have to do ugly things for the struct stat references in archive_entry.h, of course.)
* A couple of portability fixes from Joerg Sonnenbergerkientzle2008-12-061-8/+8
|
* Recover after test failure.kientzle2008-12-061-1/+4
|
* Style: skipping() function correctly counts this as a skipped test.kientzle2008-12-061-1/+1
|
* Style improvements.kientzle2008-12-061-4/+6
|
* Better reporting of test failures.kientzle2008-12-061-4/+10
|
* Recover from a test failure here.kientzle2008-12-061-1/+4
|
* New internal archive_string_concat utility function.kientzle2008-12-062-0/+18
|
* Minor portability: Declare 'r' only within the conditionalkientzle2008-12-061-2/+2
| | | | block where it's used; S_ISLNK is more portable than S_ISLINK.
* Windows build now uses PLATFORM_CONFIG_H macro, so we can eliminate thekientzle2008-12-061-4/+1
| | | | special case for it.
* 2 is more portable than STDERR_FILENOkientzle2008-12-061-1/+1
|
* When running on a filesystem that lacks ACL support,kientzle2008-11-171-9/+9
| | | | just SKIP the test, don't report a test failure.
* Correct the documented declaration of the archive_write_callback tokientzle2008-11-011-2/+2
| | | | | | | | match the code. PR: docs/128089 Submitted by: Mel MFC after: 3 days
* Move va_end() updes2008-10-211-1/+1
|
* If we don't know the file size, leave the file size unset.kientzle2008-10-213-14/+28
| | | | | | | | | | | | If it's not a regular file, don't return any data, even if the size is unknown. Update the Zip test with a hand-tweaked Zip archive that has a directory (with length-at-end set), a regular file without length-at-end set, and a regular file with length-at-end set and a bad CRC. Update the test code to verify that the file size is unset for the regular file with length-at-end. MFC after: 7 days
* Add test to verify ACL restores on FreeBSD, verify kern/128203 (mtimekientzle2008-10-193-4/+248
| | | | | | | | restore fails if ACL provided), apply patch from kern/128203, and verify fix. PR: kern/128203 Submitted by: Udo Schweigert MFC after: 3 days
* Style: Mark private data 'static', correct an old comment.kientzle2008-10-191-5/+4
| | | | MFC after: 3 days
* Verify high-res birthtime support on FreeBSD.kientzle2008-09-301-0/+2
| | | | MFC after: 30 days
* MfP4: restore birth time data to disk + more thorough tests forkientzle2008-09-304-83/+320
| | | | | | time restore to disk. MFC after: 30 days
* MfP4: Store/read birthtime data in pax format.kientzle2008-09-304-0/+160
| | | | | Submitted by: Pedro Giffuni MFC after: 30 days
* MfP4: Support for storing birthtime in archive_entry objects.kientzle2008-09-307-0/+73
| | | | | Submitted by: Pedro Giffuni MFC after: 30 days
* MfP4: Generalize int64_t in the public headers to support compilerskientzle2008-09-182-5/+9
| | | | which have a 64-bit integer type but don't provide standard C99 definitions.
* Trying to distinguish different "versions" of mtree files was a silly idea.kientzle2008-09-183-4/+2
| | | | Submitted by: Joerg Sonnenberger
* Choose a flag-handling strategy based on platform capabilitieskientzle2008-09-142-6/+8
| | | | rather than on platform.
* Portability: Don't use symbolic constants when the values are morekientzle2008-09-121-7/+7
| | | | standard than the names are. Remove some trailing whitespace.
* Portability: Not everyone is lucky enough to have ftruncate()kientzle2008-09-122-0/+3
|
* Portability: Support platforms that lack (struct stat).st_blksize or SSIZE_MAXkientzle2008-09-123-0/+11
| | | | Of course, FreeBSD has both.
* Windows compatibility: The stub replacement for compression_programkientzle2008-09-121-0/+2
| | | | (which always returns an error when invoked) needs its prototype.
* Fix a type-aliasing problem in the libarchive test suite,kientzle2008-09-082-4/+5
| | | | restore WARNS=6.
OpenPOWER on IntegriCloud