]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Jakub Wilk [Tue, 28 Feb 2017 17:24:54 +0000 (18:24 +0100)]
Fix typos
Martin Matuska [Tue, 28 Feb 2017 16:02:50 +0000 (17:02 +0100)]
Fix compilation on Mac OS X versions without ACL_SYNCHRONIZE
Martin Matuska [Tue, 28 Feb 2017 16:01:38 +0000 (17:01 +0100)]
Compare full file flags in test_option_fflags
Joerg Sonnenberger [Tue, 28 Feb 2017 10:38:46 +0000 (11:38 +0100)]
Missing commas
Joerg Sonnenberger [Tue, 28 Feb 2017 10:37:43 +0000 (11:37 +0100)]
Fix markup
Joerg Sonnenberger [Tue, 28 Feb 2017 10:36:36 +0000 (11:36 +0100)]
Fix markup
Joerg Sonnenberger [Tue, 28 Feb 2017 00:21:44 +0000 (01:21 +0100)]
Move documentation from archive_write_disk(3) into individual man pages.
Joerg Sonnenberger [Tue, 28 Feb 2017 00:14:45 +0000 (01:14 +0100)]
Drop documentation for functions with their own man page.
Joerg Sonnenberger [Tue, 28 Feb 2017 00:14:27 +0000 (01:14 +0100)]
Drop trailing comma.
Joerg Sonnenberger [Tue, 28 Feb 2017 00:08:06 +0000 (01:08 +0100)]
Fix typos.
Martin Matuska [Sun, 26 Feb 2017 22:43:56 +0000 (23:43 +0100)]
test_main: compact canNodump() source code a bit
Joerg Sonnenberger [Sun, 26 Feb 2017 17:36:03 +0000 (18:36 +0100)]
mdoc should not contain empty lines.
Joerg Sonnenberger [Sun, 26 Feb 2017 14:56:10 +0000 (15:56 +0100)]
Mark function that doesn't return as dead.
Joerg Sonnenberger [Sun, 26 Feb 2017 14:55:54 +0000 (15:55 +0100)]
Add format function annotation.
Joerg Sonnenberger [Sun, 26 Feb 2017 14:55:19 +0000 (15:55 +0100)]
Mark functions that don't return as dead.
Joerg Sonnenberger [Sun, 26 Feb 2017 14:54:51 +0000 (15:54 +0100)]
Be more friendly to format string checkers.
Joerg Sonnenberger [Sun, 26 Feb 2017 14:54:24 +0000 (15:54 +0100)]
Use ctype macros with unsigned char arguments.
Joerg Sonnenberger [Sun, 26 Feb 2017 14:54:06 +0000 (15:54 +0100)]
Mark functions that don't return as dead.
Martin Matuska [Sun, 26 Feb 2017 00:17:54 +0000 (01:17 +0100)]
bsdtar tests: add test_option_fflags
Martin Matuska [Sat, 25 Feb 2017 21:37:48 +0000 (22:37 +0100)]
bsdtar manpage: be more precise what -p and --no-same-permissions does
Joerg Sonnenberger [Sat, 25 Feb 2017 20:01:56 +0000 (21:01 +0100)]
Use types consistent with the prototypes in the header.
Tim Kientzle [Sat, 25 Feb 2017 19:39:55 +0000 (11:39 -0800)]
After the 3.3.1 release, bump the version to 3.3.2dev and go back to debug building.
Tim Kientzle [Sat, 25 Feb 2017 19:31:44 +0000 (11:31 -0800)]
Libarchive 3.3.1
Tim Kientzle [Sat, 25 Feb 2017 19:18:26 +0000 (11:18 -0800)]
CMake builds now default to "Release" in releases
Martin Matuska [Fri, 24 Feb 2017 14:47:19 +0000 (15:47 +0100)]
First round of fixing autotools build on MSYS2-MINGW
Martin Matuska [Fri, 24 Feb 2017 13:53:46 +0000 (14:53 +0100)]
WARC reader: avoid use of isblank()
Fixes #874
Martin Matuska [Fri, 24 Feb 2017 14:22:02 +0000 (15:22 +0100)]
Merge pull request #875 from tpgxyz/master
fix liblzma.h detect
Martin Matuska [Fri, 24 Feb 2017 14:21:29 +0000 (15:21 +0100)]
Merge pull request #876 from bradking/bcrypt-vs2010
Define bcrypt macro not available in Win 7 SDK
Martin Matuska [Fri, 24 Feb 2017 13:43:19 +0000 (14:43 +0100)]
Merge pull request #873 from bradking/avoid-decl-after-stmt
Avoid using C99 declaration-after-statement syntax
Brad King [Fri, 24 Feb 2017 12:26:35 +0000 (07:26 -0500)]
Define bcrypt macro not available in Win 7 SDK
VS 2010 comes with the Win 7 SDK and its bcrypt.h does not define the
`BCRYPT_HASH_REUSABLE_FLAG` macro. Provide the definition locally if
it is not available.
Brad King [Thu, 23 Feb 2017 12:01:25 +0000 (07:01 -0500)]
Avoid using C99 declaration-after-statement syntax
Add a dedicated `{}` block to contain a local variable instead.
Martin Matuska [Fri, 24 Feb 2017 01:33:40 +0000 (02:33 +0100)]
Do not archive NFSv4 ACLs on Mac OS X by default.
This avoids wrtiting ACLs to tar files twice. Preferred method is
via copyfile(3) (tar option --mac-metadata). If user wants to create
archives with portable NFSv4 ACLs only (SCHILY.acl.ace header with no
GUID data) the --acls and --no-mac-metadata options must be specified
on the command line.
In the manual page be more specific which types of ACLs are stored
with --acls and --mac-metadata options.
Martin Matuska [Thu, 23 Feb 2017 21:56:40 +0000 (22:56 +0100)]
tar: add new options to allow fine-tuning of --preserve-permissions
Allow enabling and disabling reading or writing of:
Access Control Lists (--acls, --no-acls)
Extended file flags (--fflags, --no-fflags)
Extended attributes (--xattrs, --no-xattrs)
Mac OS X metadata in AppleDouble (--mac-metadata, --no-mac-metadata)
Make --disable-copyfile an alias to --no-mac-metadata.
Martin Matuska [Thu, 23 Feb 2017 14:18:25 +0000 (15:18 +0100)]
Mac OS: write ACLs to disk when ARCHIVE_EXTRACT_MAC_METADATA is not set
Martin Matuska [Thu, 23 Feb 2017 11:02:13 +0000 (12:02 +0100)]
Add ARCHIVE_READDISK_NO_FFLAGS to suppress reading file flags from disk
Martin Matuska [Fri, 24 Feb 2017 00:56:50 +0000 (01:56 +0100)]
Fix broken Linux fflags code since kernel 3.7 (Dec 2012)
tpg [Thu, 23 Feb 2017 22:38:22 +0000 (23:38 +0100)]
fix liblzma.h detect
Joerg Sonnenberger [Thu, 23 Feb 2017 21:46:03 +0000 (22:46 +0100)]
Fix portability of test use.
Martin Matuska [Thu, 23 Feb 2017 02:02:24 +0000 (03:02 +0100)]
Martin Matuska [Wed, 22 Feb 2017 20:39:48 +0000 (21:39 +0100)]
tar: use option_flags bitfield for boolean options
Martin Matuska [Wed, 22 Feb 2017 22:28:40 +0000 (23:28 +0100)]
Revert "CMake: fix HAVE_LZMA_STREAM_ENCODER_MT test"
This reverts commit
5f70aa2252b5cee16127697f5f690648bfccfeb2 .
Martin Matuska [Wed, 22 Feb 2017 21:42:56 +0000 (22:42 +0100)]
Use ARCHIVE_READDISK_* flags as a internal bitfield, too
Martin Matuska [Wed, 22 Feb 2017 13:25:42 +0000 (14:25 +0100)]
Add ARCHIVE_READDISK_NO_ACL option to suppress reading ACLs from disk
tpg [Wed, 22 Feb 2017 00:20:27 +0000 (01:20 +0100)]
CMake: fix HAVE_LZMA_STREAM_ENCODER_MT test
Fixes #816
Martin Matuska [Tue, 21 Feb 2017 23:45:43 +0000 (00:45 +0100)]
Improve verbosity of common functions for ACL tests
Martin Matuska [Tue, 21 Feb 2017 20:30:30 +0000 (21:30 +0100)]
Merge pull request #868 from bradking/fix-windows-build
Avoid using ssize_t in public header
Martin Matuska [Tue, 21 Feb 2017 15:46:45 +0000 (16:46 +0100)]
test suite: use a single main test file for all tests
Martin Matuska [Tue, 21 Feb 2017 12:12:07 +0000 (13:12 +0100)]
Merge pull request #871 from praiskup/dev-in-version
Unify version test among tests and allow trailing "dev" in version.
Pavel Raiskup [Mon, 20 Feb 2017 19:25:24 +0000 (20:25 +0100)]
testsuite: allow 'dev' in version
Brad King [Mon, 20 Feb 2017 14:13:31 +0000 (09:13 -0500)]
Avoid using ssize_t in public header
This type is not available on Windows compilers, so define `la_ssize_t`
for use in `archive_entry.h` as we do in `archive.h` already.
Tim Kientzle [Mon, 20 Feb 2017 04:39:50 +0000 (20:39 -0800)]
Bump version to 3.3.1dev
Tim Kientzle [Mon, 20 Feb 2017 04:35:52 +0000 (20:35 -0800)]
Libarchive 3.3.0
Tim Kientzle [Sun, 19 Feb 2017 03:55:21 +0000 (19:55 -0800)]
Correctly report 0 compression when nothing has yet been written.
Martin Matuska [Sun, 19 Feb 2017 00:45:03 +0000 (01:45 +0100)]
Replace archive_entry_acl_count() with archive_entry_acl_types()
in one more place.
Martin Matuska [Sat, 18 Feb 2017 23:08:43 +0000 (00:08 +0100)]
posix writer: when creating hardinks call open() on regular files only
Fixes #724
Martin Matuska [Sat, 18 Feb 2017 21:38:38 +0000 (22:38 +0100)]
disk read: improve path handling for acls, xattrs and mac_metadata
- Do not execute pathname code at all if we have a fd. The only exception
is setup_acls() for directory entries where default ACLs can be
retrieved only with acl_get_file() - e.g. on Linux.
- Do not fail if tree_enter_working_dir() fails. Fallback to
archive_entry_pathname() instead and try with path-based functions.
- Do not fail if open_on_current_dir() fails. Try with path-based
functions.
- Pass pathname to setup_xattr() to avoid execution of duplicate code.
Martin Matuska [Sat, 18 Feb 2017 16:06:24 +0000 (17:06 +0100)]
Test default ACLs against a nested directory. This verifies path handling.
Martin Matuska [Sat, 18 Feb 2017 01:36:20 +0000 (02:36 +0100)]
disk read: rework handling of paths for acls, xattrs and mac_metadata
If path is read from archive_entry_sourcepath(), always enter tree
working dir. If path is read from archive_entry_pathname(), don't.
This prevents reading acls, xattrs or mac_metadata from wrong files
or not at all if no fd is provided (e.g. default ACLs on Linux can
be read only from a pathname).
Fixes #501
Martin Matuska [Fri, 17 Feb 2017 21:31:16 +0000 (22:31 +0100)]
tar reader: fail if negative entry_bytes_remaining in gnu_sparse_10_read()
Do not subtract error value from entry_bytes_remaining in tar_read_header()
Fixes #864
Martin Matuska [Wed, 15 Feb 2017 19:47:40 +0000 (20:47 +0100)]
Fix typo in archive_entry_acl.3
Martin Matuska [Wed, 15 Feb 2017 19:46:18 +0000 (20:46 +0100)]
Bump manpage date in archive_entry_acl.3
Martin Matuska [Wed, 15 Feb 2017 19:43:54 +0000 (20:43 +0100)]
New archive_acl_to_text() style flag: ARCHIVE_ENTRY_ACL_STYLE_COMPACT
- outputs NFSv4 permission and flags fields without minus characters
Use new compact format as default for the SCHILY.acl.ace pax header
Tim Kientzle [Mon, 13 Feb 2017 01:38:51 +0000 (17:38 -0800)]
Merge pull request #863 from Tarsnap/spelling-upload
Spelling fixes
Martin Matuska [Sun, 12 Feb 2017 21:42:40 +0000 (22:42 +0100)]
NFSv4 ACL parser: allow empty permission and flag fields
Tim Kientzle [Sun, 12 Feb 2017 20:42:38 +0000 (12:42 -0800)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sun, 12 Feb 2017 20:39:45 +0000 (12:39 -0800)]
Zip reader: Guard against 64-bit overflow for file sizes and offsets
We use `uint64_t` consistently when parsing values from the archive
but then assign them to `int64_t` variables. This can result in
nonsensical negative file sizes or offsets in some cases.
Reported-By: OSS-Fuzz issue 556
Martin Matuska [Sun, 12 Feb 2017 12:53:27 +0000 (13:53 +0100)]
NFSv4 ACL maps: make const and deduplicate a bit
Graham Percival [Mon, 6 Feb 2017 23:07:58 +0000 (15:07 -0800)]
Spelling fixes
Sponsored by: Tarsnap Backup Inc.
Martin Matuska [Tue, 7 Feb 2017 23:23:08 +0000 (00:23 +0100)]
mtree reader: limit the range of nanoseconds (0 to
999999999 )
Prevents a possible integer overflow in archive_entry_set_mtime()
Reported-By: OSS-Fuzz issue 538
Martin Matuska [Mon, 6 Feb 2017 23:57:18 +0000 (00:57 +0100)]
cpio reader: compare TRAILER!!! against pathname only
If entry was a symlink, the old code replaced the pointer with linkname.
Reported-By: OSS-Fuzz issue 504
Martin Matuska [Mon, 6 Feb 2017 02:07:33 +0000 (03:07 +0100)]
WARC reader: skip whitespace and check for first digit in _warc_rdlen()
Fixes possible heap-buffer-overflow.
Reported-By: OSS-Fuzz issue 552
Martin Matuska [Mon, 6 Feb 2017 01:48:24 +0000 (02:48 +0100)]
XAR reader: implement checksum_cleanup() to avoid memory leaks on error
Reported-By: OSS-Fuzz issue 551
Tim Kientzle [Sun, 5 Feb 2017 20:45:35 +0000 (12:45 -0800)]
Add missing test file
Tim Kientzle [Sun, 5 Feb 2017 19:56:01 +0000 (11:56 -0800)]
Fix spelling of test file
Martin Matuska [Sun, 5 Feb 2017 01:29:14 +0000 (02:29 +0100)]
WARC reader: additonal sanity checks
- only WARC versions 0.12 to 1.0 are supported
- do not probe for unsupported types
- do not accept spaces inside URI
- verify that URI is CRLF terminated
Martin Matuska [Sat, 4 Feb 2017 00:30:53 +0000 (01:30 +0100)]
WARC reader: always check against valid line end
Change the way how WARC version number is determined.
Reported-By: OSS-Fuzz issue 511, 526, 532
Martin Matuska [Wed, 1 Feb 2017 23:11:40 +0000 (00:11 +0100)]
Mention Mac OS NFSv4 ACL support in NEWS
Martin Matuska [Wed, 1 Feb 2017 00:44:43 +0000 (01:44 +0100)]
Repair detected memory leaks in libarchive tests
Fix test_callbacks() in test_read_disk_directory_traversals
Martin Matuska [Tue, 31 Jan 2017 19:23:20 +0000 (20:23 +0100)]
Free leaked archive_string in create_filesystem_object()
Martin Matuska [Tue, 31 Jan 2017 19:22:07 +0000 (20:22 +0100)]
ISO9960 reader: free leaked archive_string in parse_file_info()
Martin Matuska [Tue, 31 Jan 2017 03:03:31 +0000 (04:03 +0100)]
Plug memory leak in zip_read_local_file_header()
Martin Matuska [Tue, 31 Jan 2017 02:51:49 +0000 (03:51 +0100)]
Plug memory leak in __archive_read_program()
Martin Matuska [Tue, 31 Jan 2017 00:20:20 +0000 (01:20 +0100)]
Properly free memory allocated by acl_get_qualifier()
Plug memory leaks in acl tests
Martin Matuska [Mon, 30 Jan 2017 15:46:29 +0000 (16:46 +0100)]
Plug memory leak in XAR reader and one in XAR writer
Martin Matuska [Mon, 30 Jan 2017 00:39:03 +0000 (01:39 +0100)]
Disable automatic detection of liblzo2
Replace liblzo with lzop in Travis CI builds
Fix lzop tests
Distribution of libarchive binaries linked against LZO violates
LZO GPL license. liblzo2 can still be linked with --with-lzo2
Martin Matuska [Sun, 29 Jan 2017 23:52:13 +0000 (00:52 +0100)]
Free data->program_name in __archive_write_program_free()
(memory leak introduced in
67028d9f3c484810c3485f13737f01dbaa204ea8 )
Martin Matuska [Sun, 29 Jan 2017 14:51:02 +0000 (15:51 +0100)]
Add NFSv4 ACL support for Mac OS X
Mac OS X supports user and group NFSv4-style ACLs only (extended ACLs).
File-mode ACLs (owner@, group@ and everyone@) are not supported.
Behavior on Mac OS X:
- libarchive does not store GUID of Mac OS X extended ACLs. Only
uid or gid (and the corresponding user or group name) are stored.
- When extracting an archive entry that has mac_metadata, NFSv4 ACLs
are not written to disk (mac_metadata already contains ACLs)
- When writing ACLs to disk from an archive entry with NFSv4 ACLs
owner@, group@ and everyone@ ACLs are ignored. User and group ids
are converted to a GUID (this may lead to a fabricated GUID if
the user or group ID is not present on the system)
- When reading ACL from disk and there is at least one user or group
extended ACL entry, owner@, group@ and everyone@ entries mirroring
the file mode are added to the end of the entry's ACL.
Tim Kientzle [Sun, 29 Jan 2017 05:15:37 +0000 (21:15 -0800)]
Issue #857: Clarify the padding/blocking behavior of the convenience functions
This is a more expansive documentation change than the one suggested
by @bigpet in PR#857.
Tim Kientzle [Sun, 29 Jan 2017 04:56:20 +0000 (20:56 -0800)]
Merge pull request #805 from bsergean/patch-1
Fix compiler warning about comparison of integers of different signs
This specifically works around a bug in Android, whose `struct stat` does not satisfy POSIX.
Tim Kientzle [Sun, 29 Jan 2017 04:48:55 +0000 (20:48 -0800)]
Merge pull request #844 from yaneurabeya/tar-coverity-fixes
Fix coverity issues with tar
Tim Kientzle [Sun, 29 Jan 2017 04:42:29 +0000 (20:42 -0800)]
Merge pull request #845 from yaneurabeya/libarchive-coverity-fixes
Fix coverity issues with libarchive/
Tim Kientzle [Sun, 29 Jan 2017 04:25:36 +0000 (20:25 -0800)]
Merge pull request #858 from SixTrack/fix_CYGWIN64-MSYS
Fix cygwin64 compilation
Kyrre Sjobak [Thu, 26 Jan 2017 13:36:56 +0000 (14:36 +0100)]
Correctly convert 32-bit time_t to __time64_t
Martin Matuska [Wed, 25 Jan 2017 22:14:59 +0000 (23:14 +0100)]
Avoid endless loop when parsing MSZIP signature in cab archives
Reported-By: OSS-Fuzz issue 335
Martin Matuska [Wed, 25 Jan 2017 21:54:14 +0000 (22:54 +0100)]
cpio reader: use strncmp() when comparing against TRAILER!!!
Reported-By: OSS-Fuzz issue 422
Martin Matuska [Wed, 25 Jan 2017 01:41:54 +0000 (02:41 +0100)]
mtree reader: check line length when looking for /set and /unset
Fixes possible heap-buffer-overflow.
Reported-By: OSS-Fuzz issue 421, 443
Martin Matuska [Wed, 25 Jan 2017 00:29:16 +0000 (01:29 +0100)]
WARC reader: do not consider CR or LF as space in xstrpisotime()
Fixes possible heap-buffer-overflow.
Reported-By: OSS-Fuzz issue 382, 458
Martin Matuska [Tue, 24 Jan 2017 22:50:04 +0000 (23:50 +0100)]
Fix possible null pointer dereference in lz4_filter_read_legacy_stream()
Reported-By: OSS-Fuzz issue 453
Kyrre Sjobak [Tue, 24 Jan 2017 15:58:07 +0000 (16:58 +0100)]
Fix typo in comment
Kyrre Sjobak [Tue, 24 Jan 2017 15:09:23 +0000 (16:09 +0100)]
Silence unused-parameter compiler warnings.