summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Track version # from the portable release.kientzle2008-01-231-1/+1
|
* The mtree.5 file has been moved to src/usr.sbin/mtree.kientzle2008-01-011-1/+0
|
* Update libarchive to 2.4.10. This includes a number of improvementskientzle2007-12-301-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | that I've been working on but put off committing until after the RELENG_7 branch, including: * New manpages: cpio.5 mtree.5 * New archive_entry_strmode() * New archive_entry_link_resolver() * New read support: mtree format * Internal API change: read format auction only runs once * Running the auction only once allowed simplifying a lot of bid logic. * Cpio robustness: search for next header after a sync error * Support device nodes on ISO9660 images * Eliminate a lot of unnecessary copies for uncompressed archives * Corrected handling of new GNU --sparse --posix formats * Correctly handle a zero-byte write to a compressed archive * Fixed memory leaks Many of these improvements were motivated by the upcoming bsdcpio front-end. There have also been extensive improvements to the libarchive_test test harness, which I'll commit separately.
* Add archive_entry_copy_gname() and archive_entry_copy_uname()kientzle2007-07-151-0/+2
| | | | | | | functions. Approved by: re (bmah) MFC after: 3 days
* Correct multiple security issues in how libarchive handles corruptcperciva2007-07-121-1/+1
| | | | | | | | tar archives, including a potentially exploitable buffer overflow. Approved by: re (kensmith, security blanket) Reviewed by: kientzle Security: FreeBSD-SA-07:05.libarchive
* Fix installworld: /usr/bin/printf isn't available then,kientzle2007-07-071-1/+3
| | | | | | | so use awk's printf for the formatting here instead. Pointy hat: Yours Truly Approved by: re
* New "version stamp" simplifies determining the exact versionkientzle2007-07-061-7/+11
| | | | | | | | of libarchive being used. I've been taking advantage of this with a recent round of updates to libarchive_test so that it can test older and newer versions of the library. Approved by: re (Ken Smith)
* Support for writing the 'newc' cpio format, plus a minimal test harnesskientzle2007-06-221-0/+1
| | | | | | | for the cpio formats. Thanks to: Rudolf Marek Approved by: re@
* libarchive 2.2.3kientzle2007-05-291-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * "compression_program" support uses an external program * Portability: no longer uses "struct stat" as a primary data interchange structure internally * Part of the above: refactor archive_entry to separate out copy_stat() and stat() functions * More complete tests for archive_entry * Finish archive_entry_clone() * Isolate major()/minor()/makedev() in archive_entry; remove these from everywhere else. * Bug fix: properly handle decompression look-ahead at end-of-data * Bug fixes to 'ar' support * Fix memory leak in ZIP reader * Portability: better timegm() emulation in iso9660 reader * New write_disk flags to suppress auto dir creation and not overwrite newer files (for future cpio front-end) * Simplify trailing-'/' fixup when writing tar and pax * Test enhancements: fix various compiler warnings, improve portability, add lots of new tests. * Documentation: document new functions, first draft of libarchive_internals.3 MFC after: 14 days Thanks to: Joerg Sonnenberger (compression_program) Thanks to: Kai Wang (ar) Thanks to: Colin Percival (many small fixes) Thanks to: Many others who sent me various patches and problem reports.
* s/@VERSION@/@ARCHIVE_VERSION@/cperciva2007-05-021-1/+1
| | | | | | | This is a no-op as far as FreeBSD is concerned, but makes libarchive more autoconf-friendly. Approved by: kientzle
* Consolidate numeric limit macros in one place; include themkientzle2007-04-151-1/+1
| | | | only on platforms that need them. FreeBSD doesn't.
* Overhaul of 'ar' support:kientzle2007-04-141-0/+1
| | | | | | | | | | | | | | | | | | | * use "AR_GNU" as the format name instead of AR_SVR4 (it's what everyone is going to call it anyway) * Simplify numeric parsing to unsigned (none of the numeric values should ever be negative); don't run off end of numeric fields. * Finish parsing the common header fields before the next I/O request (which might dump the contents) * Be smarter about format guessing and trimming filenames. * Most of the magic values are only used in one place, so just inline them. * Many more comments. * Be smarter about handling damaged entries; return something reasonable. * Call it a "filename table" instead of a "string table" * Update tests. Enable selection of 'ar', 'arbsd', and 'argnu' formats by name (this allows bsdtar to create ar format archives). The 'ar' writer still needs some work; it should reject entries that aren't regular files and should probably also strip leading paths from filenames.
* Fix the build by temporarily disabling 'ar' support untilkientzle2007-04-141-1/+0
| | | | I can clean it up.
* Fix the build.kientzle2007-04-141-1/+1
| | | | | | N.B. 'ar' format support is broken right now, it's not passing tests. If I can't find the problem soon, I'll back out the last commit.
* Conventionally, tar archives have always included a trailing '/'kientzle2007-04-141-1/+1
| | | | | | | | | | | | | for directories. bsdtar used to add this, but that recently got lost somehow. So now I'm adding it back in libarchive. The only odd part of doing this in libarchive: Adding a directory to a tar archive and then reading it back again can yield a different name. Add a test case to exercise some boundary conditions with tar filenames and ensure that trailing slashes are added to dir names only as necessary. Thanks to: Oliver Lehmann for bringing this regression to my attention.
* Now that libarchive is being built in more environments,kientzle2007-04-121-1/+2
| | | | | | factor out the platform-specific configuration header a bit more cleanly. Suggested by: Joerg Sonnenberger
* Enable 'ar' support; hook it up to the build andkientzle2007-04-071-1/+3
| | | | enable it with _read_support_format_all().
* Move archive_read_data_into_buffer into archive_read.c, simplify itscperciva2007-04-051-1/+0
| | | | | | | | implementation, and mark it as deprecated. It will be removed entirely in libarchive 3.0 (in FreeBSD 8.0?) but there's no reason for anyone to use it instead of archive_read_data. Approved by: kientzle
* Notice when mkdir() fails.kientzle2007-03-241-1/+1
| | | | | | | | Don't change permissions on an existing dir unless _EXTRACT_PERM is requested. In particular, bsdtar -x should not edit mode of existing dirs now; bsdtar -xp will.
* When ARCHIVE_EXTRACT_UNLINK is requested:kientzle2007-03-131-1/+1
| | | | | | | | * Only try to remove the existing item if we're not restoring a directory. * If unlink fails, try rmdir next. This should fix the broken --unlink option in bsdtar. Thanks again to: Kris Kennaway, for beating up bsdtar on pointyhat.
* Libarchive 2.0.23:kientzle2007-03-111-1/+1
| | | | | | | | | | | | * The ACL formatter was mis-formatting entries which had a user/group ID but no name. Make the parser tolerant of these, so that old archives can be correctly restored; fix the formatter to generate correct entries. * Fix overwrite detection by introducing a new "FAILED" return code that indicates the current entry cannot be continued but the archive as a whole is still sound. * Header cleanup: Remove some unused headers, add some that are required with new Linux systems.
* libarchive 2.0kientzle2007-03-031-2/+16
| | | | | | | | | | | | | | | | | | | * libarchive_test program exercises many of the core features * Refactored old "read_extract" into new "archive_write_disk", which uses archive_write methods to put entries onto disk. In particular, you can now use archive_write_disk to create objects on disk without having an archive available. * Pushed some security checks from bsdtar down into libarchive, where they can be better optimized. * Rearchitected the logic for creating objects on disk to reduce the number of system calls. Several common cases now use a minimum number of system calls. * Virtualized some internal interfaces to provide a clearer separation of read and write handling and make it simpler to override key methods. * New "empty" format reader. * Corrected return types (this ABI breakage required the "2.0" version bump) * Many bug fixes.
* Add support for a new archive format "empty" that reads empty files.kientzle2007-02-011-0/+1
|
* Bump the libarchive version number, correct the shell hackery to breakkientzle2006-11-261-5/+6
| | | | the full version down into major/minor values.
* Write-blocking cleanup, largely thanks to Colin Percival (cperciva@).kientzle2006-11-261-1/+3
| | | | | | | | | | | | | | | | | | * If write block size is zero, don't block at all. This supports the unusual requirement of applications that need "no-delay" writes. * Expose _write_finish_entry() to give such applications more control over write boundaries. (Normal applications do not need this, as entries are completed automatically.) * Correct the type of write callbacks; this is a minor API change that does not affect the ABI. * Correct the error handling in _write_next_header() around completing the previous entry. * Correct the documentation for block-size markers: Remove docs for the long-defunct _read_set_block_size(); document all of the write block size manipulators. MFC after: 14 days
* Unbreak libarchive on arm. Two parts of libarchive relied on akientzle2006-11-261-5/+0
| | | | | | | | | | | | | | | traditional shortcut of defining on-disk layouts using structures of character arrays. Unfortunately, as recently discussed on cvs-all@, this usage is not actually sanctioned by the standards and specifically fails on GCC/arm (unless your data structures happen to be "naturally aligned"). The new code defines offsets/sizes for data fields and accesses them using explicit pointer arithmetic, instead of casting to a structure and accessing structure fields. In particular, the new code is now clean with WARNS=6 on arm. MFC after: 14 days
* Connect four new files to the build.kientzle2006-11-241-1/+9
| | | | PR: bin/86742
* Officially rename archive_{read,write}_open_file() tokientzle2006-11-201-2/+4
| | | | | | | | | archive_{read,write}_open_filename(): * Update Makefile to build the files using the new name. * Update docs to document the new names, mentioning the old ones as "deprecated synonyms." * The old filenames will be reconnected to the build soon; I'll soon recyce those files for a slightly different purpose.
* Eliminate documentation references to a non-existent function.kientzle2006-11-061-1/+0
|
* Computing SHLIB_MAJOR is not a good idea. It's really a FreeBSDkientzle2006-11-061-6/+3
| | | | | | system value that has no real relation to the libarchive version. (Except, of course, that any ABI breakage will force both to be incremented.)
* Some minor corrections:kientzle2006-09-051-0/+4
| | | | | | | * Expose functions for setting the "skip file" dev/ino information * Expose functions for setting/querying the block size on reads * Correctly propagate errors out of archive_read_close/archive_write_close * Update manpage with information about new functions
* Simplify some of the wide-character handling, inspiredkientzle2006-05-011-1/+1
| | | | | | | in part by OpenBSD's not-quite-standard-compliant standard libraries. (No loss of functionality, just minor recoding to not rely on certain "standard" facilities that weren't actually needed.)
* POSIX.1e-style Extended Attribute supportkientzle2006-03-211-1/+1
| | | | | | | | | | | This commit implements storing/reading POSIX.1e-style extended attribute information in "pax" format archives. An outline of the storage format is in the tar.5 manpage. The archive_read_extract() function has code to restore those archives to disk for Linux; FreeBSD implementation is forthcoming. Many thanks to Jaakko Heinonen for finding flaws in earlier proposals and doing the bulk of the coding in this work.
* The idea of supporting 'tp' was a fun one, but it iskientzle2006-03-111-1/+0
| | | | | really not worth the effort to develop and maintain support for a format that hasn't been used for 30 years. ;-/
* Remove configure.ac.in and reorganize a few other things. This iskientzle2006-03-081-91/+27
| | | | | part of a program to remove the non-FreeBSD autoconf/automake build system for libarchive from the FreeBSD source tree.
* Fix an aliasing error in the new TP support and reenable it in the build.kientzle2006-01-261-0/+1
|
* Disable "tp" support until I figure out why it's breaking the build. <sigh>kientzle2006-01-181-1/+0
|
* Add support for "tp" format. tp was the standard systemkientzle2006-01-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | archiver for Fourth Edition through Sixth Edition Unix; it was replaced by tar in Seventh Edition. (First Edition through Third Edition used "tap.") Unfortunately, tp was not so very standard; there were a few different variants. The code here attempts to support what I believe were the most common variants. tp support is not yet enabled by archive_read_support_format_all(), as I'm not yet entirely comfortable with the detection heuristics. People interested in experimenting can add archive_read_support_format_tp() just after any calls to archive_read_support_format_all() in bsdtar to see how well this works. TODO: tp format is roughly similar in structure to dump/restore archive formats used by many systems. It should be possible to generalize this code to handle many dump/restore variants. Format detection heuristics are going to be rough, though. Thanks to: Warren Toomey, whose very basic tp extraction programs and documentation made this possible.
* Add missing shared library interdependencies.ru2005-11-101-0/+2
|
* Fix installworld breakage. <sigh>kientzle2005-10-141-2/+2
| | | | | | expr and printf are not available during installworld, so use /bin/sh arithmetic expansion instead of expr and simply give up on vanity formatting. ;-)
* 1) Use GNU libtool to build shared libraries on non-FreeBSDkientzle2005-10-131-21/+65
| | | | | | | | | | systems (or on FreeBSD systems when using ports). 2) Overhaul the versioning logic. In particular, SHLIB_MAJOR number is now computed as "major+minor", which ensures library versions are the same for the FreeBSD build system and the portable libtool/autoconf/automake build system.
* Add a lot of error checks, based on the patches provided by Dan Lukes.kientzle2005-09-211-1/+1
| | | | | | | Also fixes a memory leak reported by Andrew Turner. PR: bin/83476 Thanks to: Dan Lukes, Andrew Turner
* Style issue: Don't include <wchar.h> where it is not actually needed.kientzle2005-09-101-1/+1
| | | | | | | | | (wchar_t is defined in stddef.h, and only two files need more than that.) Portability: Since the wchar requirements are really quite modest, it's easy to define basic replacements for wcslen, wcscmp, wcscpy, etc, for use on systems that lack <wchar.h>. In particular, this allows libarchive to be used on older OpenBSD systems.
* Bump the shared library version number of all libraries that have notkensmith2005-07-221-1/+1
| | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
* Minor clean up for flags restoration: Use fchflags/lchflags whenkientzle2005-06-041-1/+1
| | | | | available, stub out flags restore on platforms that don't support it, update autoconf to probe for fchflags and lchflags support.
* Start to address the race issue between restoring a file's contentskientzle2005-05-211-1/+1
| | | | | | | | | | | | | | and restoring the metadata. In particular, the metadata-restore functions now all accept a file descriptor and a pathname. If the file descriptor is set and the platform supports the appropriate syscall, restore the metadata through the file descriptor. Otherwise, restore it through the pathname. This is complicated by varying syscall support (FreeBSD has an fchmod(2) but no fchflags(2), for example) and because non-file entries don't have an fd to use in restoring attributes (for example, mknod(2) doesn't return a file handle). MFC after: 14 days
* Fix broken ACL configuration on FreeBSD 4 and Linux.kientzle2005-04-231-2/+3
| | | | Thanks to: Greg Lewis, Juergen Lock, Jaakko Heinonen for reporting and testing
* Update "make distfile" to use newest automake/autoconf from ports.kientzle2005-04-171-2/+2
| | | | Thanks to: Juergen Lock
* Clean up the support for extracting very long pathnames.kientzle2005-03-291-1/+1
|
* Support extracting entries with pathnames longer than PATH_MAX. Inkientzle2005-03-131-1/+1
| | | | | testing, I've archived and restored dir trees with ~1MB pathnames. Most formats, of course, have much smaller limits.
OpenPOWER on IntegriCloud