diff options
author | LibArchive Upstream <libarchive-discuss@googlegroups.com> | 2015-10-21 08:47:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-21 13:37:00 (GMT) |
commit | 1a8c7bc2c649781d1163c1966245a45e0fb829ba (patch) | |
tree | 9be1fb64019a5ef371a2f4136831e275546dc5a6 /libarchive/archive_read_extract.c | |
parent | 37f225b72c8e4c440025a98f68eda9914f7ba5f7 (diff) | |
download | CMake-1a8c7bc2c649781d1163c1966245a45e0fb829ba.zip CMake-1a8c7bc2c649781d1163c1966245a45e0fb829ba.tar.gz CMake-1a8c7bc2c649781d1163c1966245a45e0fb829ba.tar.bz2 |
libarchive 3.1.2-601-g3bfe5f1 (reduced)
Extract upstream libarchive using the following shell code.
url=git://github.com/libarchive/libarchive.git &&
v=3.1.2-601-g3bfe5f1 &&
r=3bfe5f1 &&
paths="
CMakeLists.txt
COPYING
CTestConfig.cmake
build/cmake
build/pkgconfig
build/utils
build/version
libarchive/*.*
" &&
mkdir libarchive-$v-g$r-reduced &&
git clone $url libarchive-git &&
date=$(cd libarchive-git && git log -n 1 --format='%cd' $r) &&
(cd libarchive-git && git archive --format=tar $r -- $paths) |
(cd libarchive-$v-g$r-reduced && tar xv) &&
fromdos libarchive-$v-g$r-reduced/build/cmake/Find*.cmake &&
echo "g$r date: $date"
Diffstat (limited to 'libarchive/archive_read_extract.c')
-rw-r--r-- | libarchive/archive_read_extract.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libarchive/archive_read_extract.c b/libarchive/archive_read_extract.c index ce76a6c..b7973fa 100644 --- a/libarchive/archive_read_extract.c +++ b/libarchive/archive_read_extract.c @@ -35,8 +35,6 @@ __FBSDID("$FreeBSD: src/lib/libarchive/archive_read_extract.c,v 1.61 2008/05/26 #include "archive_private.h" #include "archive_read_private.h" -static int archive_read_extract_cleanup(struct archive_read *); - int archive_read_extract(struct archive *_a, struct archive_entry *entry, int flags) { @@ -55,23 +53,8 @@ archive_read_extract(struct archive *_a, struct archive_entry *entry, int flags) return (ARCHIVE_FATAL); } archive_write_disk_set_standard_lookup(extract->ad); - a->cleanup_archive_extract = archive_read_extract_cleanup; } archive_write_disk_set_options(extract->ad, flags); return (archive_read_extract2(&a->archive, entry, extract->ad)); } - -/* - * Cleanup function for archive_extract. - */ -static int -archive_read_extract_cleanup(struct archive_read *a) -{ - int ret = ARCHIVE_OK; - - ret = archive_write_free(a->extract->ad); - free(a->extract); - a->extract = NULL; - return (ret); -} |