Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/libarchive/dist Import libarchive 3.4.0
details: https://anonhg.NetBSD.org/src/rev/e25dfc40331a
branches: trunk
changeset: 462080:e25dfc40331a
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Jul 24 13:50:20 2019 +0000
description:
Import libarchive 3.4.0
diffstat:
external/bsd/libarchive/dist/COPYING | 9 +-
external/bsd/libarchive/dist/NEWS | 28 +
external/bsd/libarchive/dist/README.md | 8 +-
external/bsd/libarchive/dist/cat/bsdcat.c | 19 +-
external/bsd/libarchive/dist/cat/test/list.h | 18 +
external/bsd/libarchive/dist/cat/test/test_empty.zst.uu | 4 +
external/bsd/libarchive/dist/cat/test/test_empty_zstd.c | 41 +
external/bsd/libarchive/dist/cat/test/test_expand.zst.uu | 4 +
external/bsd/libarchive/dist/cat/test/test_expand_zstd.c | 41 +
external/bsd/libarchive/dist/cat/test/test_stdin.c | 42 +
external/bsd/libarchive/dist/cpio/bsdcpio.1 | 5 +
external/bsd/libarchive/dist/cpio/cmdline.c | 1 +
external/bsd/libarchive/dist/cpio/cpio.c | 38 +-
external/bsd/libarchive/dist/cpio/cpio.h | 3 +-
external/bsd/libarchive/dist/cpio/test/test_basic.c | 64 +-
external/bsd/libarchive/dist/cpio/test/test_extract.cpio.zst.uu | 6 +
external/bsd/libarchive/dist/cpio/test/test_extract_cpio_zstd.c | 48 +
external/bsd/libarchive/dist/cpio/test/test_format_newc.c | 47 +-
external/bsd/libarchive/dist/cpio/test/test_gcpio_compat.c | 2 +-
external/bsd/libarchive/dist/cpio/test/test_option_L_upper.c | 14 +-
external/bsd/libarchive/dist/cpio/test/test_option_Z_upper.c | 5 +-
external/bsd/libarchive/dist/cpio/test/test_option_a.c | 8 +-
external/bsd/libarchive/dist/cpio/test/test_option_b64encode.c | 2 +
external/bsd/libarchive/dist/cpio/test/test_option_c.c | 2 +-
external/bsd/libarchive/dist/cpio/test/test_option_grzip.c | 3 +-
external/bsd/libarchive/dist/cpio/test/test_option_lrzip.c | 3 +-
external/bsd/libarchive/dist/cpio/test/test_option_lz4.c | 7 +
external/bsd/libarchive/dist/cpio/test/test_option_lzma.c | 4 +
external/bsd/libarchive/dist/cpio/test/test_option_lzop.c | 3 +-
external/bsd/libarchive/dist/cpio/test/test_option_t.c | 8 +-
external/bsd/libarchive/dist/cpio/test/test_option_uuencode.c | 2 +
external/bsd/libarchive/dist/cpio/test/test_option_xz.c | 4 +
external/bsd/libarchive/dist/cpio/test/test_option_y.c | 6 +-
external/bsd/libarchive/dist/cpio/test/test_option_z.c | 3 +-
external/bsd/libarchive/dist/cpio/test/test_option_zstd.c | 85 +
external/bsd/libarchive/dist/libarchive/archive_acl.c | 90 +-
external/bsd/libarchive/dist/libarchive/archive_blake2.h | 194 +
external/bsd/libarchive/dist/libarchive/archive_blake2_impl.h | 160 +
external/bsd/libarchive/dist/libarchive/archive_blake2s_ref.c | 367 +
external/bsd/libarchive/dist/libarchive/archive_blake2sp_ref.c | 359 +
external/bsd/libarchive/dist/libarchive/archive_cmdline.c | 6 +-
external/bsd/libarchive/dist/libarchive/archive_cryptor.c | 9 +-
external/bsd/libarchive/dist/libarchive/archive_cryptor_private.h | 2 +-
external/bsd/libarchive/dist/libarchive/archive_disk_acl_freebsd.c | 2 +
external/bsd/libarchive/dist/libarchive/archive_disk_acl_sunos.c | 6 +-
external/bsd/libarchive/dist/libarchive/archive_entry.c | 322 +-
external/bsd/libarchive/dist/libarchive/archive_entry.h | 13 +-
external/bsd/libarchive/dist/libarchive/archive_entry_misc.3 | 62 +
external/bsd/libarchive/dist/libarchive/archive_entry_private.h | 3 +
external/bsd/libarchive/dist/libarchive/archive_entry_sparse.c | 4 +-
external/bsd/libarchive/dist/libarchive/archive_hmac.c | 1 +
external/bsd/libarchive/dist/libarchive/archive_match.c | 37 +-
external/bsd/libarchive/dist/libarchive/archive_platform.h | 19 +
external/bsd/libarchive/dist/libarchive/archive_ppmd7.c | 10 +-
external/bsd/libarchive/dist/libarchive/archive_ppmd7_private.h | 4 +-
external/bsd/libarchive/dist/libarchive/archive_ppmd8.c | 1287 +++
external/bsd/libarchive/dist/libarchive/archive_ppmd8_private.h | 148 +
external/bsd/libarchive/dist/libarchive/archive_ppmd_private.h | 7 -
external/bsd/libarchive/dist/libarchive/archive_read.c | 24 +-
external/bsd/libarchive/dist/libarchive/archive_read_append_filter.c | 4 +
external/bsd/libarchive/dist/libarchive/archive_read_disk_posix.c | 78 +-
external/bsd/libarchive/dist/libarchive/archive_read_disk_windows.c | 199 +-
external/bsd/libarchive/dist/libarchive/archive_read_filter.3 | 6 +-
external/bsd/libarchive/dist/libarchive/archive_read_open_file.c | 3 +-
external/bsd/libarchive/dist/libarchive/archive_read_private.h | 3 +
external/bsd/libarchive/dist/libarchive/archive_read_set_format.c | 3 +
external/bsd/libarchive/dist/libarchive/archive_read_support_filter_all.c | 2 +
external/bsd/libarchive/dist/libarchive/archive_read_support_filter_gzip.c | 52 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_filter_lz4.c | 6 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_filter_zstd.c | 292 +
external/bsd/libarchive/dist/libarchive/archive_read_support_format_7zip.c | 32 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_all.c | 1 +
external/bsd/libarchive/dist/libarchive/archive_read_support_format_ar.c | 9 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_by_code.c | 3 +
external/bsd/libarchive/dist/libarchive/archive_read_support_format_cab.c | 158 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_cpio.c | 12 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_lha.c | 6 +
external/bsd/libarchive/dist/libarchive/archive_read_support_format_mtree.c | 293 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_rar.c | 50 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_rar5.c | 4030 ++++++++++
external/bsd/libarchive/dist/libarchive/archive_read_support_format_raw.c | 4 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_tar.c | 39 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_warc.c | 8 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_xar.c | 79 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_zip.c | 1086 ++-
external/bsd/libarchive/dist/libarchive/archive_string.c | 12 +-
external/bsd/libarchive/dist/libarchive/archive_util.c | 6 +-
external/bsd/libarchive/dist/libarchive/archive_version_details.c | 18 +
external/bsd/libarchive/dist/libarchive/archive_virtual.c | 11 +-
external/bsd/libarchive/dist/libarchive/archive_windows.c | 3 +-
external/bsd/libarchive/dist/libarchive/archive_windows.h | 5 +-
external/bsd/libarchive/dist/libarchive/archive_write.c | 2 +-
external/bsd/libarchive/dist/libarchive/archive_write_add_filter.c | 1 +
external/bsd/libarchive/dist/libarchive/archive_write_add_filter_b64encode.c | 10 +-
external/bsd/libarchive/dist/libarchive/archive_write_add_filter_by_name.c | 1 +
external/bsd/libarchive/dist/libarchive/archive_write_add_filter_gzip.c | 7 +-
external/bsd/libarchive/dist/libarchive/archive_write_add_filter_xz.c | 7 +-
external/bsd/libarchive/dist/libarchive/archive_write_add_filter_zstd.c | 335 +
external/bsd/libarchive/dist/libarchive/archive_write_disk_posix.c | 372 +-
external/bsd/libarchive/dist/libarchive/archive_write_disk_set_standard_lookup.c | 6 +-
external/bsd/libarchive/dist/libarchive/archive_write_disk_windows.c | 300 +-
external/bsd/libarchive/dist/libarchive/archive_write_filter.3 | 6 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_7zip.c | 20 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_cpio.c | 3 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_cpio_newc.c | 3 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_gnutar.c | 5 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_iso9660.c | 4 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_mtree.c | 4 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_pax.c | 40 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_v7tar.c | 11 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_xar.c | 15 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_zip.c | 9 +-
external/bsd/libarchive/dist/libarchive/libarchive_changes.3 | 1 +
external/bsd/libarchive/dist/libarchive/test/read_open_memory.c | 2 +
external/bsd/libarchive/dist/libarchive/test/test.h | 6 +
external/bsd/libarchive/dist/libarchive/test/test_acl_platform_nfs4.c | 2 +
external/bsd/libarchive/dist/libarchive/test/test_archive_read_close_twice_open_filename.c | 4 +-
external/bsd/libarchive/dist/libarchive/test/test_archive_write_add_filter_by_name.c | 5 +
external/bsd/libarchive/dist/libarchive/test/test_compat_zip.c | 26 +
external/bsd/libarchive/dist/libarchive/test/test_compat_zip_8.zip.uu | 6 +
external/bsd/libarchive/dist/libarchive/test/test_compat_zstd.c | 82 +
external/bsd/libarchive/dist/libarchive/test/test_compat_zstd_1.tar.zst.uu | 12 +
external/bsd/libarchive/dist/libarchive/test/test_entry.c | 41 +-
external/bsd/libarchive/dist/libarchive/test/test_extattr_freebsd.c | 46 +-
external/bsd/libarchive/dist/libarchive/test/test_fuzz.c | 17 +
external/bsd/libarchive/dist/libarchive/test/test_read_disk_directory_traversals.c | 297 +-
external/bsd/libarchive/dist/libarchive/test/test_read_extract.c | 2 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_mtree.c | 26 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_mtree_noprint.mtree.uu | 4 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar.c | 39 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5.c | 1196 ++
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_arm.rar.uu | 916 ++
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_blake2.rar.uu | 18 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_compressed.rar.uu | 13 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_distance_overflow.rar.uu | 9 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_extra_field_version.rar.uu | 10 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_fileattr.rar.uu | 13 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_hardlink.rar.uu | 6 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_invalid_dict_reference.rar.uu | 9 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_leftshift1.rar.uu | 9 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_leftshift2.rar.uu | 6 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive.part01.rar.uu | 345 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive.part02.rar.uu | 345 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive.part03.rar.uu | 345 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive.part04.rar.uu | 345 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive.part05.rar.uu | 345 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive.part06.rar.uu | 345 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive.part07.rar.uu | 345 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive.part08.rar.uu | 208 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive_solid.part01.rar.uu | 299 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive_solid.part02.rar.uu | 299 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive_solid.part03.rar.uu | 299 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiarchive_solid.part04.rar.uu | 76 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiple_files.rar.uu | 40 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_multiple_files_solid.rar.uu | 19 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_nonempty_dir_stream.rar.uu | 9 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_owner.rar.uu | 8 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_readtables_overflow.rar.uu | 15 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_solid.rar.uu | 27 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_stored.rar.uu | 6 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_stored_manyfiles.rar.uu | 61 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_symlink.rar.uu | 8 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_truncated_huff.rar.uu | 7 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar5_win32.rar.uu | 69 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_rar_ppmd_use_after_free.rar.uu | 10 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_raw.c | 27 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_raw.data.gz.uu | 4 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_tar_empty_with_gnulabel.c | 53 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_tar_empty_with_gnulabel.tar.uu | 231 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_xar.c | 163 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip.c | 608 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_7075_utf8_paths.c | 102 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_7075_utf8_paths.zip.uu | 20 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_bz2_hang.zip.uu | 5 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_bzip2.zipx.uu | 19 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_bzip2_multi.zipx.uu | 96 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_extra_padding.c | 93 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_extra_padding.zip.uu | 7 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_lzma.zipx.uu | 19 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_lzma_alone_leak.zipx.uu | 5 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_lzma_multi.zipx.uu | 95 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_ppmd8.zipx.uu | 17 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_ppmd8_crash_1.zipx.uu | 4 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_ppmd8_crash_2.zipx.uu | 4 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_ppmd8_multi.zipx.uu | 84 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip_xz_multi.zipx.uu | 125 +
external/bsd/libarchive/dist/libarchive/test/test_sparse_basic.c | 110 +-
external/bsd/libarchive/dist/libarchive/test/test_write_disk_perms.c | 33 +
external/bsd/libarchive/dist/libarchive/test/test_write_disk_symlink.c | 156 +-
external/bsd/libarchive/dist/libarchive/test/test_write_filter_gzip.c | 30 +-
external/bsd/libarchive/dist/libarchive/test/test_write_filter_zstd.c | 201 +
external/bsd/libarchive/dist/libarchive/test/test_write_format_pax.c | 14 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_zip_compression_store.c | 15 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_zip_large.c | 14 +-
external/bsd/libarchive/dist/libarchive/xxhash.c | 12 +-
external/bsd/libarchive/dist/libarchive_fe/line_reader.c | 3 +-
external/bsd/libarchive/dist/libarchive_fe/passphrase.c | 97 +-
external/bsd/libarchive/dist/tar/bsdtar.1 | 105 +-
external/bsd/libarchive/dist/tar/bsdtar.c | 103 +-
external/bsd/libarchive/dist/tar/bsdtar.h | 4 +-
external/bsd/libarchive/dist/tar/cmdline.c | 2 +
external/bsd/libarchive/dist/tar/creation_set.c | 4 +-
external/bsd/libarchive/dist/tar/test/test_basic.c | 4 +-
external/bsd/libarchive/dist/tar/test/test_copy.c | 4 +-
external/bsd/libarchive/dist/tar/test/test_extract.tar.zst.uu | 6 +
external/bsd/libarchive/dist/tar/test/test_extract_tar_zstd.c | 48 +
external/bsd/libarchive/dist/tar/test/test_option_C_mtree.c | 89 +
external/bsd/libarchive/dist/tar/test/test_option_H_upper.c | 36 +-
external/bsd/libarchive/dist/tar/test/test_option_L_upper.c | 28 +-
external/bsd/libarchive/dist/tar/test/test_option_U_upper.c | 18 +-
external/bsd/libarchive/dist/tar/test/test_option_acls.c | 4 +-
external/bsd/libarchive/dist/tar/test/test_option_exclude_vcs.c | 230 +
external/bsd/libarchive/dist/tar/test/test_option_fflags.c | 4 +
external/bsd/libarchive/dist/tar/test/test_option_n.c | 81 +
external/bsd/libarchive/dist/tar/test/test_option_s.c | 18 +-
external/bsd/libarchive/dist/tar/test/test_option_zstd.c | 85 +
external/bsd/libarchive/dist/tar/test/test_strip_components.c | 11 +-
external/bsd/libarchive/dist/tar/test/test_symlink_dir.c | 26 +-
external/bsd/libarchive/dist/tar/write.c | 14 +-
219 files changed, 20165 insertions(+), 1320 deletions(-)
diffs (truncated from 26778 to 300 lines):
diff -r 0fffc2968ae6 -r e25dfc40331a external/bsd/libarchive/dist/COPYING
--- a/external/bsd/libarchive/dist/COPYING Wed Jul 24 13:12:33 2019 +0000
+++ b/external/bsd/libarchive/dist/COPYING Wed Jul 24 13:50:20 2019 +0000
@@ -23,6 +23,13 @@
* The following source files are in the public domain:
libarchive/archive_getdate.c
+* The following source files are triple-licensed with the ability to choose
+ from CC0 1.0 Universal, OpenSSL or Apache 2.0 licenses:
+ libarchive/archive_blake2.h
+ libarchive/archive_blake2_impl.h
+ libarchive/archive_blake2s_ref.c
+ libarchive/archive_blake2sp_ref.c
+
* The build files---including Makefiles, configure scripts,
and auxiliary scripts used as part of the compile process---have
widely varying licensing terms. Please check individual files before
@@ -34,7 +41,7 @@
seems to be an unavoidable mess.
-Copyright (c) 2003-2009 <author(s)>
+Copyright (c) 2003-2018 <author(s)>
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff -r 0fffc2968ae6 -r e25dfc40331a external/bsd/libarchive/dist/NEWS
--- a/external/bsd/libarchive/dist/NEWS Wed Jul 24 13:12:33 2019 +0000
+++ b/external/bsd/libarchive/dist/NEWS Wed Jul 24 13:50:20 2019 +0000
@@ -1,3 +1,31 @@
+Jun 11, 2019: libarchive 3.4.0 released
+
+May 18, 2019: Fixes for reading Android APK and JAR archives
+
+Apr 16, 2019: Support for non-recursive list and extract
+
+Apr 14, 2019: New tar option: --exclude-vcs
+
+Mar 27, 2019: Support for file and directory symlinks on Windows
+
+Mar 12, 2019: Important fixes for storing file attributes and flags
+
+Jan 20, 2019: Support for xz, lzma, ppmd8 and bzip2 decompression in ZIP files
+
+Oct 06, 2018: RAR 5.0 reader
+
+Sep 03, 2018: libarchive 3.3.3 released
+
+Jul 19, 2018: Avoid super-linear slowdown on malformed mtree files
+
+Jan 27, 2018: Many fixes for building with Visual Studio
+
+Oct 19, 2017: NO_OVERWRITE doesn't change existing directory attributes
+
+Aug 12, 2017: New support for Zstandard read and write filters
+
+Jul 09, 2017: libarchive 3.3.2 released
+
Mar 16, 2017: NFSv4 ACL support for Linux (librichacl)
Feb 26, 2017: libarchive 3.3.1 released
diff -r 0fffc2968ae6 -r e25dfc40331a external/bsd/libarchive/dist/README.md
--- a/external/bsd/libarchive/dist/README.md Wed Jul 24 13:12:33 2019 +0000
+++ b/external/bsd/libarchive/dist/README.md Wed Jul 24 13:50:20 2019 +0000
@@ -78,16 +78,16 @@
* POSIX pax interchange format
* POSIX octet-oriented cpio
* SVR4 ASCII cpio
- * POSIX octet-oriented cpio
* Binary cpio (big-endian or little-endian)
* ISO9660 CD-ROM images (with optional Rockridge or Joliet extensions)
* ZIP archives (with uncompressed or "deflate" compressed entries, including support for encrypted Zip archives)
+ * ZIPX archives (with support for bzip2, ppmd8, lzma and xz compressed entries)
* GNU and BSD 'ar' archives
* 'mtree' format
* 7-Zip archives
* Microsoft CAB format
* LHA and LZH archives
- * RAR archives (with some limitations due to RAR's proprietary status)
+ * RAR and RAR 5.0 archives (with some limitations due to RAR's proprietary status)
* XAR archives
The library also detects and handles any of the following before evaluating the archive:
@@ -99,6 +99,7 @@
* lzma, lzip, and xz compression
* lz4 compression
* lzop compression
+ * zstandard compression
The library can create archives in any of the following formats:
* POSIX ustar
@@ -125,6 +126,7 @@
* lzma, lzip, and xz compression
* lz4 compression
* lzop compression
+ * zstandard compression
## Notes about the Library Design
@@ -159,7 +161,7 @@
* On read, compression and format are always detected automatically.
-* The same API is used for all formats; in particular, it's very
+* The same API is used for all formats; it should be very
easy for software using libarchive to transparently handle
any of libarchive's archiving formats.
diff -r 0fffc2968ae6 -r e25dfc40331a external/bsd/libarchive/dist/cat/bsdcat.c
--- a/external/bsd/libarchive/dist/cat/bsdcat.c Wed Jul 24 13:12:33 2019 +0000
+++ b/external/bsd/libarchive/dist/cat/bsdcat.c Wed Jul 24 13:50:20 2019 +0000
@@ -61,7 +61,7 @@
static void
version(void)
{
- printf("bsdcat %s - %s\n",
+ printf("bsdcat %s - %s \n",
BSDCAT_VERSION_STRING,
archive_version_details());
exit(0);
@@ -70,6 +70,12 @@
void
bsdcat_next(void)
{
+ if (a != NULL) {
+ if (archive_read_close(a) != ARCHIVE_OK)
+ bsdcat_print_error();
+ archive_read_free(a);
+ }
+
a = archive_read_new();
archive_read_support_filter_all(a);
archive_read_support_format_empty(a);
@@ -100,8 +106,10 @@
;
else if (archive_read_data_into_fd(a, 1) != ARCHIVE_OK)
bsdcat_print_error();
- if (archive_read_free(a) != ARCHIVE_OK)
+ if (archive_read_close(a) != ARCHIVE_OK)
bsdcat_print_error();
+ archive_read_free(a);
+ a = NULL;
}
int
@@ -135,15 +143,14 @@
if (*bsdcat->argv == NULL) {
bsdcat_current_path = "<stdin>";
bsdcat_read_to_stdout(NULL);
- } else
+ } else {
while (*bsdcat->argv) {
bsdcat_current_path = *bsdcat->argv++;
bsdcat_read_to_stdout(bsdcat_current_path);
bsdcat_next();
}
-
- if (a != NULL)
- archive_read_free(a);
+ archive_read_free(a); /* Help valgrind & friends */
+ }
exit(exit_status);
}
diff -r 0fffc2968ae6 -r e25dfc40331a external/bsd/libarchive/dist/cat/test/list.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libarchive/dist/cat/test/list.h Wed Jul 24 13:50:20 2019 +0000
@@ -0,0 +1,18 @@
+DEFINE_TEST(test_0)
+DEFINE_TEST(test_empty_gz)
+DEFINE_TEST(test_empty_lz4)
+DEFINE_TEST(test_empty_xz)
+DEFINE_TEST(test_empty_zstd)
+DEFINE_TEST(test_error)
+DEFINE_TEST(test_error_mixed)
+DEFINE_TEST(test_expand_bz2)
+DEFINE_TEST(test_expand_gz)
+DEFINE_TEST(test_expand_lz4)
+DEFINE_TEST(test_expand_mixed)
+DEFINE_TEST(test_expand_plain)
+DEFINE_TEST(test_expand_xz)
+DEFINE_TEST(test_expand_Z)
+DEFINE_TEST(test_expand_zstd)
+DEFINE_TEST(test_help)
+DEFINE_TEST(test_stdin)
+DEFINE_TEST(test_version)
diff -r 0fffc2968ae6 -r e25dfc40331a external/bsd/libarchive/dist/cat/test/test_empty.zst.uu
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libarchive/dist/cat/test/test_empty.zst.uu Wed Jul 24 13:50:20 2019 +0000
@@ -0,0 +1,4 @@
+begin 644 test_empty.zst
+-*+4O_010`0``F>G840``
+`
+end
diff -r 0fffc2968ae6 -r e25dfc40331a external/bsd/libarchive/dist/cat/test/test_empty_zstd.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libarchive/dist/cat/test/test_empty_zstd.c Wed Jul 24 13:50:20 2019 +0000
@@ -0,0 +1,41 @@
+/*-
+ * Copyright (c) 2017 Sean Purcell
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+#include "test.h"
+
+DEFINE_TEST(test_empty_zstd)
+{
+ const char *reffile = "test_empty.zst";
+ int f;
+
+ extract_reference_file(reffile);
+ f = systemf("%s %s >test.out 2>test.err", testprog, reffile);
+ if (f == 0 || canZstd()) {
+ assertEqualInt(0, f);
+ assertEmptyFile("test.out");
+ assertEmptyFile("test.err");
+ } else {
+ skipping("It seems zstd is not supported on this platform");
+ }
+}
diff -r 0fffc2968ae6 -r e25dfc40331a external/bsd/libarchive/dist/cat/test/test_expand.zst.uu
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libarchive/dist/cat/test/test_expand.zst.uu Wed Jul 24 13:50:20 2019 +0000
@@ -0,0 +1,4 @@
+begin 644 test_expand.zst
+J*+4O_010Z0``8V]N=&5N=',@;V8@=&5S=%]E>'!A;F0N>G-T+@J;23#F
+`
+end
diff -r 0fffc2968ae6 -r e25dfc40331a external/bsd/libarchive/dist/cat/test/test_expand_zstd.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libarchive/dist/cat/test/test_expand_zstd.c Wed Jul 24 13:50:20 2019 +0000
@@ -0,0 +1,41 @@
+/*-
+ * Copyright (c) 2017 Sean Purcell
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+#include "test.h"
+
+DEFINE_TEST(test_expand_zstd)
+{
+ const char *reffile = "test_expand.zst";
+ int f;
+
+ extract_reference_file(reffile);
+ f = systemf("%s %s >test.out 2>test.err", testprog, reffile);
+ if (f == 0 || canZstd()) {
+ assertEqualInt(0, f);
+ assertTextFileContents("contents of test_expand.zst.\n", "test.out");
+ assertEmptyFile("test.err");
+ } else {
+ skipping("It seems zstd is not supported on this platform");
+ }
+}
diff -r 0fffc2968ae6 -r e25dfc40331a external/bsd/libarchive/dist/cat/test/test_stdin.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libarchive/dist/cat/test/test_stdin.c Wed Jul 24 13:50:20 2019 +0000
@@ -0,0 +1,42 @@
+/*-
+ * Copyright (c) 2017 Sean Purcell
+ * All rights reserved.
+ *
Home |
Main Index |
Thread Index |
Old Index