summaryrefslogtreecommitdiffstats
path: root/lib/libarchive
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Essentially eliminate problems with false hardlinks in POSIX cpiokientzle2009-12-291-16/+91
| | | | | archives by generating synthetic ino values and mapping values from disk into the new values.
* Clear extraneous error messages.kientzle2009-12-291-0/+2
|
* Zip write support for libarchive.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.
* If we're linking against liblzma, allow the decompressor to use up tokientzle2009-12-291-23/+87
| | | | | | | | 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.
* Minor style fixes plus a fix for an obscure crash on certain malformedkientzle2009-12-291-11/+5
| | | | mtree files.
* Be a little more skeptical of dev/ino matches when reading cpio files.kientzle2009-12-291-35/+35
| | | | This eliminates some false-positives in the hardlink detection logic.
* Style and portability fixes for pax writer. Mostly very routine, except for:kientzle2009-12-291-32/+26
| | | | | * Use ino64 where appropriate * Don't pass atime or nsec to ustar formatter
* Style fixes to tar reader: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.
* Various style fixes to the 'newc' cpio writer: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
* Various fixes when creating objects on disk: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
* Catch decompression failures earlier. In particular, this giveskientzle2009-12-291-0/+8
| | | | immediate feedback if we fail to fork an external decompression program.
* Various style and portability fixes, including: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
* 64-bit ino support and discourage bad use of this header.kientzle2009-12-291-1/+5
|
* Portability.kientzle2009-12-281-1/+3
|
* Remove some dead assignments, fix some declarations.kientzle2009-12-281-3/+1
|
* Clarify an example so Linux folks won't keep getting confused by this point.kientzle2009-12-281-0/+3
|
* Compatibility with old systems with non-POSIX getpwuid_r/getgrgid_r.kientzle2009-12-281-0/+2
|
* Fix some unused variables and dead assignments.kientzle2009-12-283-5/+2
|
* Remove an unused variable and an unreachable statement.kientzle2009-12-281-3/+1
|
* Fix line endings.kientzle2009-12-281-187/+187
|
* Discourage external use of this header.kientzle2009-12-281-0/+4
|
OpenPOWER on IntegriCloud