summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_extract.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue 409: archive_read_extract object leakedTim Kientzle2015-02-131-17/+0
| | | | | | Register the cleanup function for the object at the point where the object is actually allocated to ensure that it always gets cleaned up.
* Split archive_read_extract2 from archive_read_extractPaul Barker2014-04-061-104/+0
| | | | | | | | | | | | | | 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>
* Refactor archive_read_extractPaul Barker2014-04-061-27/+25
| | | | | | | | | | | | | | | | 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>
* Fix build failure on Win64.Michihiro NAKAJIMA2012-11-071-1/+1
|
* Issue #189: Don't rely on dev/ino being zero when theyTim Kientzle2011-11-031-2/+3
| | | | | | | | 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
* Test that archive_read_extract works correctly with Zip entriesTim Kientzle2011-09-191-1/+1
| | | | | | that use length-at-end. SVN-Revision: 3722
* Error out of copy_data if get_extract fails.Colin Percival2011-08-161-1/+3
| | | | | | | | While I'm here, fix some whitespace. Via: Tarsnap SVN-Revision: 3613
* Eliminate a bunch of off_t uses.Tim Kientzle2011-01-221-4/+0
| | | | | | | | 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
* Don't bother trying to write data into a zero-sized file.Tim Kientzle2010-04-111-1/+2
| | | | SVN-Revision: 2232
* Unbreak build on mingw.Michihiro NAKAJIMA2010-02-241-0/+4
| | | | SVN-Revision: 1971
* Rename archive_read_finish to archive_read_free andTim Kientzle2010-02-081-1/+1
| | | | | | | | | | | | | 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
* Rip out the rest of the legacy 1.x API.Tim Kientzle2010-02-071-4/+1
| | | | SVN-Revision: 1890
* IFCTim Kientzle2008-05-281-1/+1
| | | | SVN-Revision: 102
* archive_read_extract2() provides much of the convenience ofTim Kientzle2008-05-031-11/+17
| | | | | | | archive_read_extract() while allowing you to configure the archive_write_disk restore object. SVN-Revision: 20
* IFC to populate initial libarchive-portable tree.Tim Kientzle2008-04-291-0/+176
SVN-Revision: 1