aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive
Commit message (Collapse)AuthorAgeFilesLines
* libarchive is mixing libmd and libcrypto -- correct to use one or the other.David E. O'Brien2011-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 Notes: svn path=/head/; revision=221472
* Don't write data into an empty "file."Tim 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 Notes: svn path=/head/; revision=216258
* If the Zip reader doesn't see a PK signature blockTim Kientzle2010-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 Notes: svn path=/head/; revision=214905
* Fix manpage markup.Ulrich Spörlein2010-11-061-1/+0
| | | | Notes: svn path=/head/; revision=214867
* Clarify the naming: Methods that free an object shouldTim Kientzle2010-11-0513-77/+114
| | | | | | | | be called "free". Retain the old "finish" names to preserve source compatibility for now. Notes: svn path=/head/; revision=214822
* mdoc: drop redundant .Pp and .LP callsUlrich Spörlein2010-10-081-1/+0
| | | | | | | They have no effect when coming in pairs, or before .Bl/.Bd Notes: svn path=/head/; revision=213573
* Fix typo.Joel Dahl2010-08-031-1/+1
| | | | Notes: svn path=/head/; revision=210825
* s/an struct/a structBenedict Reuschling2010-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 Notes: svn path=/head/; revision=210191
* mdoc nitpicking: the title argument shall be uppercaseUlrich Spörlein2010-06-118-8/+8
| | | | Notes: svn path=/head/; revision=209031
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>Ulrich Spörlein2010-05-191-1/+1
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=208291
* Retry reads that fail with EINTR. This fixes a problemTim Kientzle2010-05-182-12/+20
| | | | | | | with bsdtar failing on SIGINT. Notes: svn path=/head/; revision=208263
* Fix build.Xin LI2010-05-171-1/+1
| | | | Notes: svn path=/head/; revision=208184
* Reorganize slightly in preparation for making lzma and bz2 support conditional.Tim Kientzle2010-05-162-4/+10
| | | | Notes: svn path=/head/; revision=208169
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theUlrich Spörlein2010-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 Notes: svn path=/head/; revision=208027
* Enable liblzma support in libarchiveMartin Matuska2010-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 Notes: svn path=/head/; revision=207849
* Remove redundant WARNS?=6 overrides and inherit the WARNS setting fromUlrich Spörlein2010-03-021-1/+0
| | | | | | | | | | | the toplevel directory. This does not change any WARNS level and survives a make universe. Approved by: ed (co-mentor) Notes: svn path=/head/; revision=204596
* Fix common misspelling of hierarchyUlrich Spörlein2010-02-201-2/+2
| | | | | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor) Notes: svn path=/head/; revision=204111
* Add missing newline in last line of file.Ulrich Spörlein2010-02-161-1/+1
| | | | | | | | Uncovered via: fromcvs vs. svn Approved by: ed (co-mentor) Notes: svn path=/head/; revision=203952
* Don't try to hardlink block or character device nodes that come outTim Kientzle2010-01-231-2/+4
| | | | | | | of cpio archives. Notes: svn path=/head/; revision=202873
* Use a simpler memory-management strategy for the file objects.Tim 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. Notes: svn path=/head/; revision=202872
* If we can't stat a file, return the correct ARCHIVE_FAILED (this entry can'tTim Kientzle2010-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. Notes: svn path=/head/; revision=202871
* Initialize the allocated 'struct zip'.Tim Kientzle2010-01-231-1/+1
| | | | Notes: svn path=/head/; revision=202869
* Fix a memory leak when a filter fails to initialize.Tim Kientzle2010-01-231-16/+27
| | | | Notes: svn path=/head/; revision=202868
* Build lib/ with WARNS=6 by default.Ed Schouten2010-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. Notes: svn path=/head/; revision=201381
* Remove some test files that are no longer used.Tim Kientzle2009-12-305-27092/+0
| | | | Notes: svn path=/head/; revision=201253
* Reserve constants for RPM unwrapper and XAR reader.Tim Kientzle2009-12-301-0/+2
| | | | Notes: svn path=/head/; revision=201250
* Libarchive in FreeBSD is now synced up with 2.7.901a fromTim Kientzle2009-12-301-2/+2
| | | | | | | libarchive.googlecode.com Notes: svn path=/head/; revision=201249
* UU decoder. Now that libarchive can recursively taste input streams,Tim Kientzle2009-12-306-0/+767
| | | | | | | you can do things like this: tar xvf archive.tar.gz.uu Notes: svn path=/head/; revision=201248
* A raft of test changes and improvements from the Googlecode repository.Tim Kientzle2009-12-3073-1315/+6267
| | | | | | | | In particular, this includes tests for the new features I've merged over the last few days. Notes: svn path=/head/; revision=201247
* Merge Michihiro NAKAJIMA's significant work on the ISO9660 readerTim Kientzle2009-12-301-321/+1657
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=201246
* Rationalize the support for cryptographic hashes.Tim Kientzle2009-12-292-105/+250
| | | | Notes: svn path=/head/; revision=201171
* Essentially eliminate problems with false hardlinks in POSIX cpioTim Kientzle2009-12-291-16/+91
| | | | | | | | archives by generating synthetic ino values and mapping values from disk into the new values. Notes: svn path=/head/; revision=201170
* Clear extraneous error messages.Tim Kientzle2009-12-291-0/+2
| | | | Notes: svn path=/head/; revision=201169
* Zip write support for libarchive.Tim Kientzle2009-12-295-0/+671
| | | | | | | | The initial implementation was developed by Anselm Strauss as part of Google Summer of Code 2008, then completed by Joerg Sonnenberger. Notes: svn path=/head/; revision=201168
* If we're linking against liblzma, allow the decompressor to use up toTim Kientzle2009-12-291-21/+85
| | | | | | | | | | | 1<<30 bytes of memory, which is required for some streams. Also, try to make the taster more discriminating about raw lzma streams. The detection here is still really weak, though; please use xz instead of lzma. Notes: svn path=/head/; revision=201167
* Minor style fixes plus a fix for an obscure crash on certain malformedTim Kientzle2009-12-291-11/+5
| | | | | | | mtree files. Notes: svn path=/head/; revision=201165
* Be a little more skeptical of dev/ino matches when reading cpio files.Tim Kientzle2009-12-291-33/+33
| | | | | | | This eliminates some false-positives in the hardlink detection logic. Notes: svn path=/head/; revision=201163
* Style and portability fixes for pax writer. Mostly very routine, except for:Tim Kientzle2009-12-291-31/+25
| | | | | | | | * Use ino64 where appropriate * Don't pass atime or nsec to ustar formatter Notes: svn path=/head/; revision=201162
* Style fixes to tar reader:Tim Kientzle2009-12-291-16/+16
| | | | | | | | | | For portability, prefer int64_t to off_t. Improve numeric overflow handling when parsing. Fix some variable types. Eliminate some unused results. Notes: svn path=/head/; revision=201161
* Various style fixes to the 'newc' cpio writer:Tim Kientzle2009-12-291-17/+26
| | | | | | | | | * Warn about truncation of ino * Use a macro to hide the somewhat obscure pad-to-multiple-of-4 calculation * Eliminate some unused variables Notes: svn path=/head/; revision=201160
* Various fixes when creating objects on disk:Tim Kientzle2009-12-291-23/+74
| | | | | | | | | | | | * Write xattrs last instead of first (required on platforms that use system xattrs for security attributes) * Better handling of chdir() failures * Don't bother trying to shorten files via seek()/write() * Fix build on systems that lack link()/symlink()/mknod() * Prefer futimens()/utimensat() when they're present Notes: svn path=/head/; revision=201159
* Catch decompression failures earlier. In particular, this givesTim Kientzle2009-12-291-0/+8
| | | | | | | immediate feedback if we fail to fork an external decompression program. Notes: svn path=/head/; revision=201157
* Various style and portability fixes, including:Tim Kientzle2009-12-291-12/+35
| | | | | | | | | * Enforce option interface can only be used before the archive is opened * Correctly handle large skips on platforms with 32-bit off_t * Use int64_t instead of off_t Notes: svn path=/head/; revision=201156
* 64-bit ino support and discourage bad use of this header.Tim Kientzle2009-12-291-1/+5
| | | | Notes: svn path=/head/; revision=201155
* Portability.Tim Kientzle2009-12-281-1/+3
| | | | Notes: svn path=/head/; revision=201112
* Remove some dead assignments, fix some declarations.Tim Kientzle2009-12-281-3/+1
| | | | Notes: svn path=/head/; revision=201111
* Clarify an example so Linux folks won't keep getting confused by this point.Tim Kientzle2009-12-281-0/+3
| | | | Notes: svn path=/head/; revision=201110
* Compatibility with old systems with non-POSIX getpwuid_r/getgrgid_r.Tim Kientzle2009-12-281-0/+2
| | | | Notes: svn path=/head/; revision=201109
* Fix some unused variables and dead assignments.Tim Kientzle2009-12-283-5/+2
| | | | Notes: svn path=/head/; revision=201108
* Remove an unused variable and an unreachable statement.Tim Kientzle2009-12-281-3/+1
| | | | Notes: svn path=/head/; revision=201107