summaryrefslogtreecommitdiffstats
path: root/lib/libarchive
Commit message (Collapse)AuthorAgeFilesLines
* MFV r248590,248594:mm2013-03-223-11/+69
| | | | | | | | | | | Update libarchive to 3.1.2 Some of new features: - support for lrzip and grzip compression - support for writing tar v7 format - b64encode and uuencode filters - support for __MACOSX directory in Zip archives - support for lzop compresion (external utility)
* Remove several MLINKS that were listed twice.brooks2013-01-231-7/+0
|
* Backport NFSv4 ACL fix from libarchive master branch.mm2012-07-303-1/+5
| | | | | | | Source: https://github.com/libarchive/libarchive/commit/f67370d5 Obtained from: libarchive (master branch)
* Catch up config_freebsd.h with libarchive 3.0.4mm2012-07-291-2/+0
|
* Update libarchive to 3.0.4mm2012-07-282-0/+9
|
* Silence alignment warnings from clang in libarchive's ppmd code (whichdim2012-03-231-0/+1
| | | | | is actually third-party code). Clang even warns about alignment issues on x86, and the warnings are not needed there.
* Update libarchive to 3.0.3mm2012-02-253-292/+520
| | | | | | | | | | | | | | Some of new features: - New readers: RAR, LHA/LZH, CAB reader, 7-Zip - New writers: ISO9660, XAR - Improvements to many formats, especially including ISO9660 and Zip - Stackable write filters to write, e.g., tar.gz.uu in a single pass - Exploit seekable input; new "seekable" Zip reader can exploit the Zip Central Directory when it's available; the old "streamable" Zip reader is still fully supported for cases where seeking is not possible. Full release notes available at: https://github.com/libarchive/libarchive/wiki/ReleaseNotes
* Use contrib sources for building libarchive, tar and cpio.mm2011-12-22256-75767/+30
| | | | | | Make "make test" fully operational. MFC after: 2 weeks
* Sync libarchive with vendor branch release/2.8:mm2011-12-205-13/+114
| | | | | | | | | | | | | | | | | | | | | | 3730: Fix issue 174 (Windows path names, not relevant for FreeBSD) 3734: Merge r1989: archive_clear_error should set errno to 0. 3735: Merge r3247 from trunk: Clear errors before returning from archive_read_support_format_all() 3799: Check the position before dereferencing the pointer. This avoids dereferencing one byte past the end of a string 3824: Merge r3823 from trunk for issue 199 (hang in iso9660 reading) Obtained from: http://code.google.com/p/libarchive MFC after: 2 weeks
* Update libarchive, tar and cpio to version 2.8.5mm2011-12-2020-37/+51
| | | | | | | | | | The following additional vendor revisions are applied: Revision 3740: Use archive_clear_error() to clear the error markers. Obtained from: http://code.google.com/p/libarchive MFC after: 2 weeks
* Merge vendor revision 3723:mm2011-12-201-1/+1
| | | | | | | | | | Fixes extraction of Zip entries that use length-at-end without specifying either the compressed or uncompressed length. In particular, fixes bsdtar extraction of such files. Obtained from: http://code.google.com/p/libarchive Reported by: Patrick Lamaiziere <patfbsd@davenulle.org> (freebsd-stable@) MFC after: 1 week
* Fix Buildworld WITHOUT_OPENSSL.kientzle2011-10-222-4/+32
| | | | | PR: kern/160922 MFC after: 3 days
* Correct the spelling of getgrgid and getpwuid in the man page.kientzle2011-10-221-6/+6
| | | | MFC after: 3 days
* Fix cpio on ARM.kientzle2011-09-132-4/+4
| | | | | | | PR: bin/160430 Submitted by: Ian Lepore Approved by: re (Kostik Belousov) MFC after: 7 days
* Import additional bugfix for reading and extracting makefs-createdmm2011-09-021-8/+14
| | | | | | | | | | | | | | | ISO images with tar. Vendor revision 3648 (merge of 3647): Additional fix to issue 168 because the change of r3642 was not sufficient. - Make sure "CL" entry appear after its "RE" entry which the "CL" entry should be connected with. - Give consideration to the case that the top level "RE" entry has already been exposed outside before its tree. Approved by: re (kib) Obtained from: libarchive (release/2.8, svn rev 3648) MFC after: 3 days
* Import bugfix for reading and extracting of FreeBSD ISO images with tar.mm2011-08-259-198/+391
| | | | | | | | | | | | | | | | | | | | Upstream revision 3645 (merge of 3642): Change the mechanism handling a rr_moved directory, which is Rockridge extension that can exceed the limitation of a maximum directory depth of ISO 9660. - Stop reading all entries at a time. - Connect "CL" entry to "RE" entry dynamically, which "CL" and "RE" have information to rebuild a full directory tree. - Tweak some related tests since we use Headsort for re-ordering entries and it cannot make a steady order when the keies of the entries are the same. http://code.google.com/p/libarchive/issues/detail?id=168 Reviewed by: kientzle Approved by: re (kib) Obtained from: libarchive (release/2.8, svn rev 3645) MFC after: 3 days
* Merge revision 3554 from libarchive's release/2.8 branch:mm2011-08-073-16/+27
| | | | | | | | | | | | Partial merge of 2431 from trunk: Retry writes on EINTR. This should fix the SIGINT handler in bsdtar. Note: The rest of r2431 can't be merged, since it interacts with a big write-side rearchitecture. PR: bin/149409 Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days
* Add compatibility for ISO images created with unfixed makefs thatmm2011-08-0711-35/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | violated ECMA-119 (ISO9660): allow reserved4 to be 0x20 in PVD. This allows tar to read FreeBSD distribution ISO images created with makefs prior to NetBSD bin/45217 bugfix (up to 9.0-BETA1). In addition, merge following important bugfixes from libarchive's release/2.8 branch: Revision 2812: Merge 2811 from trunk: Don't try to verify that compression-level=0 produces larger results than the default compression, since this isn't true for all versions of liblzma. Revision 2817: Merge 2814 from trunk: Fix Issue 121 (mtree parser error) http://code.google.com/p/libarchive/issues/detail?id=121 Revision 2820: Fix issue 119. Change the file location check that a file location does not exceed volume block. New one is that a file content does not exceed volume block(end of an ISO image). It is better than previous check even if the issue did not happen. While reading an ISO image generated by an older version of mkisofs utility, a file location indicates the end the ISO image if its file size is zero and it is the last file of all files of the ISO image, so it is possible that the location value is the same as the number of the total block of the ISO image. http://code.google.com/p/libarchive/issues/detail?id=119 Revision 2955: Issue 134: Fix libarchive 2.8 crashing in archive_write_finish() when the open has failed and we're trying to write Zip format. http://code.google.com/p/libarchive/issues/detail?id=134 Revision 2958: Followup on Issue 134: 1) Port test_open_failure to libarchive 2.8 branch to test the problem reported in Issue 134. This test also shows that archive_read_open() sometimes fails to report open errors correctly. 2) Fix the bug in archive_read.c 3) Comment out the tests that close functions are invoked promptly when open fails; that's fully fixed in libarchive 3.0, but I don't think it's worth fixing here. Revision 3484: Use uintmax_t with %ju Revision 3487: Fix issue 163. Correctly allocate enough memory for a input buffer saved. http://code.google.com/p/libarchive/issues/detail?id=163 Revision 3542: Merge 2516, 2536 from trunk: Allow path table offset values of 0 and 18, which are used by some ISO writers. Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days
* - Update libarchive to 2.8.4mm2011-07-1745-103/+5799
| | | | | | | | - Add support for extracting xar and rpm archives - Add libarchive_fe subdir (common code for tar and cpio) Approved by: kientzle MFC after: 2 weeks
* libarchive is mixing libmd and libcrypto -- correct to use one or the other.obrien2011-05-053-10/+24
| | | | | | | | | | [mixing the two can be quite bad -- they define the same context structures, but with differing structure members (and sizes)] Update the hash function support comments, and update config_freebsd.h to match. Approved by: kientzle
* Don't write data into an empty "file."kientzle2010-12-073-13/+12
| | | | | | | | In particular, this check avoids a warning when extracting directory entries from certain GNU tar archives that store directory contents. MFC after: 3 days
* If the Zip reader doesn't see a PK signature blockkientzle2010-11-073-3/+93
| | | | | | | | because there's inter-entry garbage, just scan forward to find the next one. This allows us to handle a lot of Zip archives that have been modified in-place. Thanks to: Gleb Kurtsou for sending me a sample archive
* Fix manpage markup.uqs2010-11-061-1/+0
|
* Clarify the naming: Methods that free an object shouldkientzle2010-11-0513-77/+114
| | | | | be called "free". Retain the old "finish" names to preserve source compatibility for now.
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-1/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* Fix typo.joel2010-08-031-1/+1
|
* s/an struct/a structbcr2010-07-171-3/+3
| | | | | | | | PR: docs/148660 Submitted by: Warren Block (wblock at wonkity dot com) Reviewed by: Tim Kientzle Mentored by: jkois MFC after: 7 days
* mdoc nitpicking: the title argument shall be uppercaseuqs2010-06-118-8/+8
|
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-191-1/+1
| | | | Reviewed by: ru
* Retry reads that fail with EINTR. This fixes a problemkientzle2010-05-182-12/+20
| | | | with bsdtar failing on SIGINT.
* Fix build.delphij2010-05-171-1/+1
|
* Reorganize slightly in preparation for making lzma and bz2 support conditional.kientzle2010-05-162-4/+10
|
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-131-25/+25
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* Enable liblzma support in libarchivemm2010-05-101-6/+3
| | | | | | | | Adjust dependencies for programs using libarchive Add xz and linkage against liblzma to rescue system Approved by: kientzle, delphij (mentor) MFC after: 2 weeks
* Remove redundant WARNS?=6 overrides and inherit the WARNS setting fromuqs2010-03-021-1/+0
| | | | | | | | the toplevel directory. This does not change any WARNS level and survives a make universe. Approved by: ed (co-mentor)
* Fix common misspelling of hierarchyuqs2010-02-201-2/+2
| | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)
* Add missing newline in last line of file.uqs2010-02-161-1/+1
| | | | | Uncovered via: fromcvs vs. svn Approved by: ed (co-mentor)
* Don't try to hardlink block or character device nodes that come outkientzle2010-01-231-2/+4
| | | | of cpio archives.
* Use a simpler memory-management strategy for the file objects.kientzle2010-01-231-46/+23
| | | | | | | Instead of trying to reference-count them and free them as soon as they are no longer needed, we now just keep them around and free them all when we release the archive object. This fixes a number of minor memory leaks, especially when reading damaged archives.
* If we can't stat a file, return the correct ARCHIVE_FAILED (this entry can'tkientzle2010-01-231-7/+16
| | | | | | be processed any further) and a suitable error string. In particular, this improves the error-reporting when cpio -o is given a nonexistent filename.
* Initialize the allocated 'struct zip'.kientzle2010-01-231-1/+1
|
* Fix a memory leak when a filter fails to initialize.kientzle2010-01-231-16/+27
|
* Build lib/ with WARNS=6 by default.ed2010-01-021-2/+0
| | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
* Remove some test files that are no longer used.kientzle2009-12-305-27092/+0
|
* Reserve constants for RPM unwrapper and XAR reader.kientzle2009-12-301-0/+2
|
* Libarchive in FreeBSD is now synced up with 2.7.901a fromkientzle2009-12-301-2/+2
| | | | libarchive.googlecode.com
* UU decoder. Now that libarchive can recursively taste input streams,kientzle2009-12-306-0/+767
| | | | you can do things like this: tar xvf archive.tar.gz.uu
* A raft of test changes and improvements from the Googlecode repository.kientzle2009-12-3073-1315/+6267
| | | | | In particular, this includes tests for the new features I've merged over the last few days.
* Merge Michihiro NAKAJIMA's significant work on the ISO9660 readerkientzle2009-12-301-323/+1659
| | | | | | | | | | from googlecode: * Support for zisofs compressed entries * Support for relocated deep directories * Direct calculation of link counts for accurate nlink values even on images that lack Rockridge extensions * Faster handling of the internal file lists. * Better detection of ISO variants
* Rationalize the support for cryptographic hashes.kientzle2009-12-292-105/+250
|
OpenPOWER on IntegriCloud