| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Register the cleanup function for the object at the point
where the object is actually allocated to ensure that
it always gets cleaned up.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The function archive_read_extract requires a call to
archive_write_disk_set_standard_lookup but the functions archive_read_extract2
and archive_read_extract_set_progress_callback do not. Therefore, the latter
pair of functions, the internal function __archive_read_get_extract and the
static function copy_data are moved out of archive_read_extract.c into the new
file archive_read_extract2.c.
This ensures that when statically linking, the standard user and group lookup
functions will not be linked into a program unless they are really needed.
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The initialisation of the archive_write_disk object and the call to
archive_write_disk_set_standard_lookup are only needed in the
archive_read_extract function, not in archive_read_extract2 or other related
functions. Therefore this initialisation is merged into archive_read_extract.
The static function get_extract is renamed to __archive_read_get_extract so that
is can be made non-static. The struct extract is renamed to archive_read_extract
so that it can be placed in a header file without risk of namespace clashes.
Both these declarations are then moved to the archive_read_private.h header.
This preparation is necessary so that the contents of archive_read_extract.c can
be split between two source files.
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
|
| |
|
|
|
|
|
|
|
|
| |
have not been set. Instead, explicitly track when these
values are set. In particular, this fixes the check
that prevents adding an archive to itself on NetBSD.
SVN-Revision: 3743
|
|
|
|
|
|
| |
that use length-at-end.
SVN-Revision: 3722
|
|
|
|
|
|
|
|
| |
While I'm here, fix some whitespace.
Via: Tarsnap
SVN-Revision: 3613
|
|
|
|
|
|
|
|
| |
Most of these are from the libarchive 2 API that's no longer supported.
A few are places where int64_t offsets need to be mapped down to system
APIs that might only be 32 bits; those are a little trickier.
SVN-Revision: 2937
|
|
|
|
| |
SVN-Revision: 2232
|
|
|
|
| |
SVN-Revision: 1971
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
archive_write_finish to archive_write_free. Update all clients,
tests, and documentation to use the new names exclusively. (Though
I've not yet run a global search-and-replace against the Wiki. I'll
do that shortly.)
I've preserved the old names as aliases, scheduled to be removed with
libarchive 4.x, so there is no immediate impact to existing code from
this change.
SVN-Revision: 1891
|
|
|
|
| |
SVN-Revision: 1890
|
|
|
|
| |
SVN-Revision: 102
|
|
|
|
|
|
|
| |
archive_read_extract() while allowing you to configure the
archive_write_disk restore object.
SVN-Revision: 20
|
|
SVN-Revision: 1
|