]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Joe Damato [Mon, 24 Mar 2014 08:32:11 +0000 (08:32 +0000)]
Fix shadowing warning for identifier symlink
Tim Kientzle [Tue, 18 Mar 2014 03:43:07 +0000 (20:43 -0700)]
Merge pull request #68 from guidefloripa/master
Fix memory leak for 7zip/xz
Guilherme Steinmann [Mon, 17 Mar 2014 13:10:55 +0000 (10:10 -0300)]
Update xz compatibility for reading xz.
Guilherme Steinmann [Mon, 17 Mar 2014 13:01:59 +0000 (10:01 -0300)]
Update xz compatibility for reading 7zip.
Tim Kientzle [Sun, 16 Mar 2014 17:27:20 +0000 (10:27 -0700)]
Merge pull request #63 from sergiud/master
Do not redefine _WIN32_WINNT and WINVER
Tim Kientzle [Sun, 16 Mar 2014 17:25:49 +0000 (10:25 -0700)]
Merge pull request #61 from kevinoid/ignore_zeros
Add --ignore-zeros option to bsdtar
Tim Kientzle [Sun, 16 Mar 2014 17:23:20 +0000 (10:23 -0700)]
Merge pull request #55 from NiLuJe/cmake-pkgconfig
Make the CMake build more pkg-config friendly
Tim Kientzle [Sun, 16 Mar 2014 17:20:45 +0000 (10:20 -0700)]
Merge pull request #67 from jmalak/master
fixes to build by Open Watcom toolchain
Jiri Malak [Wed, 12 Mar 2014 07:50:51 +0000 (08:50 +0100)]
fixes for test programs to be buildable by Open Watcom
correct buffers to be realy local for each test as expected by logic
Jiri Malak [Wed, 12 Mar 2014 07:02:37 +0000 (08:02 +0100)]
rest of changes to be buildable by Open Watcom
Jiri Malak [Wed, 12 Mar 2014 06:32:22 +0000 (07:32 +0100)]
fixes to build by Open Watcom toolchain
Tim Kientzle [Sun, 2 Mar 2014 17:20:46 +0000 (09:20 -0800)]
Merge pull request #65 from Bluewind/working
mtree: Make reading additional information from the fs optional
Florian Pritz [Sat, 1 Mar 2014 16:21:47 +0000 (17:21 +0100)]
mtree: Make reading additional information from the fs optional
This feature is not needed if users just want to read in the content of
an mtree file and do validation against the file system themselves.
It is needed for `bsdtar cvf out.tar @input.mtree` which is why the
option is enabled in bsdtar.
Since the mtree tests rely on this feature, this patch also enables it
there.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Tim Kientzle [Sun, 23 Feb 2014 17:34:43 +0000 (09:34 -0800)]
Return correct error when multiple modules match an option spec
Tim Kientzle [Sun, 23 Feb 2014 17:33:44 +0000 (09:33 -0800)]
streaming zip reader does not support mac extensions
Tim Kientzle [Sun, 23 Feb 2014 17:17:22 +0000 (09:17 -0800)]
Enable mac extensions for mac extension test
Tim Kientzle [Sun, 23 Feb 2014 17:16:34 +0000 (09:16 -0800)]
Fix: process directory entries even when mac extensions are turned off
Tim Kientzle [Sun, 23 Feb 2014 16:49:02 +0000 (08:49 -0800)]
Zip: Make Mac extension handling optional with "mac-ext" option for Zip, default true on Mac OS"
NiLuJe [Sun, 16 Feb 2014 18:53:01 +0000 (19:53 +0100)]
Merge remote-tracking branch 'upstream/master' into cmake-pkgconfig
Tim Kientzle [Sun, 16 Feb 2014 18:48:15 +0000 (10:48 -0800)]
Merge pull request #64 from NiLuJe/fix-warning
Fix a couple of minor warnings.
Sergiu Dotenco [Mon, 27 Jan 2014 13:51:10 +0000 (14:51 +0100)]
Do not redefine _WIN32_WINNT and WINVER
NiLuJe [Sat, 25 Jan 2014 00:24:24 +0000 (01:24 +0100)]
Fix a couple of minor warnings.
Just so that the build passes w/ -Werror
NiLuJe [Fri, 24 Jan 2014 21:34:52 +0000 (22:34 +0100)]
Merge remote-tracking branch 'upstream/master' into cmake-pkgconfig
Tim Kientzle [Fri, 17 Jan 2014 04:12:49 +0000 (20:12 -0800)]
Make the backslash line continuations more consistent for automatic updating; update the libarchive test data
Tim Kientzle [Fri, 17 Jan 2014 04:02:05 +0000 (20:02 -0800)]
Fix the zip tests that were inadvertently disabled (and hence broken).
Extend them to verify with/without forcing zip64 and with/without 'el' extension.
Tim Kientzle [Fri, 17 Jan 2014 04:01:44 +0000 (20:01 -0800)]
Include missing test in cmake build, sort the file list.
Tim Kientzle [Fri, 17 Jan 2014 04:01:17 +0000 (20:01 -0800)]
Include tests for new zip64 functionality in autoconf-based build.
Paul Barker [Thu, 16 Jan 2014 15:16:31 +0000 (15:16 +0000)]
Fix out-of-tree build
When building outside the source tree, the directories 'libarchive/test',
'tar/test' and 'cpio/test' need to be created before the commands in Makefile.am
are executed which create list.h files in these directories.
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Tim Kientzle [Thu, 16 Jan 2014 15:50:50 +0000 (07:50 -0800)]
Merge pull request #62 from kientzle/master
Zip64 refactoring
Kevin Locke [Wed, 15 Jan 2014 03:05:40 +0000 (20:05 -0700)]
Add --ignore-zeros option to bsdtar
This option is an alias for --options read_concatenated_archive
introduced for compatibility with GNU tar.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Brad King [Mon, 13 Jan 2014 14:36:15 +0000 (09:36 -0500)]
Do not require LibXml2 to configure
In commit
033fc31e (Allow fine grained control over dependancies,
2013-05-16, committed 2013-12-12) the find_package(LibXml2) line was
accidentally given a REQUIRED specifier. Remove it now.
Tim Kientzle [Mon, 13 Jan 2014 02:26:18 +0000 (18:26 -0800)]
Merge pull request #59 from NiLuJe/fix-warning
Fix a minor sign issue.
Kevin Locke [Sat, 11 Jan 2014 23:40:16 +0000 (16:40 -0700)]
Add a test for read_concatenated_archives
Make sure that we are reading the concatenated contents when requested
and only when requested.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Kevin Locke [Sat, 11 Jan 2014 23:38:52 +0000 (16:38 -0700)]
[PATCH v3] Add read_concatenated_archives
As discussed in http://code.google.com/p/libarchive/issues/detail?id=348
the read_concatenated_archives option provides functionality similar to
the GNUtar --ignore-zeros option in order to support reading from
archives which have been concatenated together.
Changes in v2:
* Replace recursion with looping for reading concatenated archives.
Changes in v3:
* Improve comments about archive format detection and looping when
reading concatenated archives.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Tim Kientzle [Sun, 12 Jan 2014 19:45:53 +0000 (11:45 -0800)]
Verify that Zip writer rejects too-large files when Zip64 is disabled.
Interestingly, this found a bug in the write core: if the
writer rejects a file, the write core would erroneously transition to
state DATA.
Tim Kientzle [Sun, 12 Jan 2014 19:21:02 +0000 (11:21 -0800)]
Verify the end-of-archive information as part of the large zip test.
Fix a bug that breaks compat with Info-Zip 'unzip' program.
Tim Kientzle [Sun, 12 Jan 2014 17:18:57 +0000 (09:18 -0800)]
Merge branch 'master' of github.com:kientzle/libarchive-zip64
Kevin Locke [Sat, 11 Jan 2014 23:35:21 +0000 (16:35 -0700)]
Only consume a second all-null record
Currently any record following an all-null record will be consumed.
This is probably not the intended behavior, as it does not match the
comment and consumes/ignores unexpected and unrecognized data. In
particular, for the read_concatenated_archives case, it could
incorrectly consume a non-null header.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Tim Kientzle [Thu, 9 Jan 2014 05:20:10 +0000 (21:20 -0800)]
Only enable the still-experimental 'el' extra block
if option 'zip:experimental' is specified.
This should limit the use of this option until the
final format is actually nailed down.
Tim Kientzle [Sun, 5 Jan 2014 05:46:57 +0000 (21:46 -0800)]
Issue #329: https://code.google.com/p/libarchive/issues/detail?id=329
Fix POSIX.1e draft ACL handling on Linux systems that lack NFSv4 ACL libraries.
NiLuJe [Fri, 3 Jan 2014 23:44:50 +0000 (00:44 +0100)]
Fix a minor sign issue.
archive_read_support_format_tar.c:802:16: error: comparison between
signed and unsigned integer expressions [-Werror=sign-compare]
NiLuJe [Fri, 3 Jan 2014 23:20:59 +0000 (00:20 +0100)]
Merge remote-tracking branch 'upstream/master' into cmake-pkgconfig
Tim Kientzle [Fri, 3 Jan 2014 03:25:02 +0000 (19:25 -0800)]
Change new extra block from 'LA' to 'el' to follow updated draft spec
Tim Kientzle [Thu, 2 Jan 2014 14:14:20 +0000 (06:14 -0800)]
Add a bitmap to indicate which fields are included for compression and for future expansion
Tim Kientzle [Tue, 31 Dec 2013 18:11:48 +0000 (10:11 -0800)]
Change the first field of the 'LA' extra block to the full 'version made by'
Tim Kientzle [Tue, 31 Dec 2013 17:54:34 +0000 (09:54 -0800)]
Improve memory management in the large zip test
Tim Kientzle [Tue, 31 Dec 2013 17:19:52 +0000 (09:19 -0800)]
Only write the new 'LA' experimental extra block if it's explicitly enabled.
Enable it in the appropriate tests.
E.g.,
$ bsdtar cf - --format=zip --option zip:experimental .
The syntax supports multiple experiments;
use --option zip:experiment_la to enable just the 'LA' experiment.
Tim Kientzle [Tue, 31 Dec 2013 04:51:26 +0000 (20:51 -0800)]
A couple of changes to the experimental new extra block, as suggested by Steven Schweda.
* Name changed from 'at' to 'LA' (Local Attributes)
* Trimmed 'version made by' down to just 1 byte system code
Tim Kientzle [Mon, 30 Dec 2013 17:43:25 +0000 (09:43 -0800)]
Be stricter about the checksum field; reduce false-positives on the bid
Tim Kientzle [Mon, 30 Dec 2013 04:57:17 +0000 (20:57 -0800)]
Support experimental "at" extra block for better streaming.
The writer now writes this extra block with every local
file header; the reader recognizes it and uses it.
This allows streaming extraction to properly restore
file permissions and symlinks.
Without this, streaming extraction of Zip archives is
somewhat hobbled by the lack of full information in
the local file header.
Here's a detailed description of the new extra block.
The details here are subject to change at any time.
-Extended Local File Header Extra Field (0x7461):
The following is the layout of the extended local file
header "extra" block. This allows information to be
included with the local file header that could previously
only be stored with the central directory file header.
Note: all fields stored in Intel low-byte/high-byte order.
Value Size Description
----- ---- -----------
0x7461 2 bytes Tag for this "extra" block type
Size 2 bytes Size of this "extra" block
Version
Made By 2 bytes See "Version Made By" above
Internal File
Attributes 2 bytes See "Internal File Attributes" above
External File
Attributes 4 bytes See "External File Attributes" above
This extra block should only be used with the local
file header. The values stored should exactly match
the corresponding values in the central directory
file header.
Tim Kientzle [Sun, 29 Dec 2013 22:26:21 +0000 (14:26 -0800)]
Comment the definitive Zip documentation for future maintainers; note the history of this code.
Tim Kientzle [Sun, 29 Dec 2013 22:05:17 +0000 (14:05 -0800)]
Convert some booleans into more compact bitfields
Tim Kientzle [Sun, 29 Dec 2013 21:29:38 +0000 (13:29 -0800)]
More code rearranging
Tim Kientzle [Sun, 29 Dec 2013 19:37:24 +0000 (11:37 -0800)]
Update some comments, fine-tune the streaming bid
Tim Kientzle [Sun, 29 Dec 2013 19:21:54 +0000 (11:21 -0800)]
Remove some redundant vars; more code reorg
Tim Kientzle [Sun, 29 Dec 2013 18:45:41 +0000 (10:45 -0800)]
Optimize skipping entries in seeking mode
Tim Kientzle [Sun, 29 Dec 2013 18:36:06 +0000 (10:36 -0800)]
Clarify the wording.
Tim Kientzle [Sun, 29 Dec 2013 06:33:37 +0000 (22:33 -0800)]
Move a 1MB buffer off the stack and onto the heap.
Tim Kientzle [Sun, 29 Dec 2013 03:50:07 +0000 (19:50 -0800)]
Eliminate zip reader's redundant tracking of file position (the archive already does this).
Tim Kientzle [Sun, 29 Dec 2013 03:27:33 +0000 (19:27 -0800)]
Make zip->offset tracking more consistent.
Tim Kientzle [Sun, 29 Dec 2013 03:17:24 +0000 (19:17 -0800)]
Fix large zip test in streaming mode.
Tim Kientzle [Sat, 28 Dec 2013 23:58:36 +0000 (15:58 -0800)]
Return uncompressed size if it's known, even if compressed size and/or CRC are deferred.
Tim Kientzle [Sat, 28 Dec 2013 23:36:36 +0000 (15:36 -0800)]
Skip stored data quickly when size is known at beginning even when CRC is at end
Tim Kientzle [Sat, 28 Dec 2013 23:30:04 +0000 (15:30 -0800)]
Update some comments
Tim Kientzle [Sat, 28 Dec 2013 23:13:59 +0000 (15:13 -0800)]
Extend large zip test to cover streaming reader as well.
Tim Kientzle [Sat, 28 Dec 2013 21:40:47 +0000 (13:40 -0800)]
Expand the large zip test a bit
Tim Kientzle [Sat, 28 Dec 2013 21:36:56 +0000 (13:36 -0800)]
Parse out the extra data before trying to insert into the tree.
Since the tree is organized by offset, we
need the full offset from the extra data
(in the case of 64-bit offsets) before we do the
insertion.
While here, fix an obvious blooper: initialize the CRC function.
Tim Kientzle [Sat, 28 Dec 2013 09:45:32 +0000 (01:45 -0800)]
Test for large Zip archives, following code for large Tar test.
Fix several bugs:
* comparison function for ordering entries in reader was wrong
* writer wasn't including 64-bit sizes for entries of exactly 0xffffffff bytes
Also, add options to suppress CRC calculations and checks
(otherwise, this test spends a *lot* of time in CRC routines).
Tim Kientzle [Fri, 27 Dec 2013 08:41:48 +0000 (00:41 -0800)]
Read Zip64 EOCD; work around an Info-Zip bug.
Tim Kientzle [Fri, 27 Dec 2013 07:17:29 +0000 (23:17 -0800)]
Fix whitespace
Tim Kientzle [Fri, 27 Dec 2013 07:00:30 +0000 (23:00 -0800)]
Finish the detailed verification of zip archive with single entry for both zip64 and non-zip64 cases.
Fix a few minor issues this uncovers.
Tim Kientzle [Fri, 27 Dec 2013 03:52:53 +0000 (19:52 -0800)]
Test detailed zip format for regular file entry.
Fix tests when built w/o zlib.
Tim Kientzle [Fri, 27 Dec 2013 03:39:59 +0000 (19:39 -0800)]
Don't try to verify deflated data if zlib is unavailable.
Tim Kientzle [Fri, 27 Dec 2013 01:55:05 +0000 (17:55 -0800)]
Rename write/read round-trip test.
Tim Kientzle [Thu, 26 Dec 2013 23:43:58 +0000 (15:43 -0800)]
Comment this test a little bit.
Tim Kientzle [Thu, 26 Dec 2013 23:40:06 +0000 (15:40 -0800)]
Test that we can read the Zip64 extensions that we write.
Tim Kientzle [Thu, 26 Dec 2013 23:29:52 +0000 (15:29 -0800)]
Be more careful about enabling zip64 (fixes zip_compression_store test)
Add test for empty zip64 file
Fix reader to read empty zip64 files
Tim Kientzle [Thu, 26 Dec 2013 23:27:05 +0000 (15:27 -0800)]
More error reporting on these assertions.
Tim Kientzle [Thu, 26 Dec 2013 22:02:03 +0000 (14:02 -0800)]
Adjust expected permissions; zip code has slightly tightened
the default permissions used when extracting files.
Tim Kientzle [Thu, 26 Dec 2013 21:59:55 +0000 (13:59 -0800)]
Fix all current tests:
* When searching for start of Central directory, DTRT if there are no entries.
* Find end-of-archive marker when it is exactly at end of file
* Recognize zip64 central directory locator (not yet fully parsed)
* Don't return entry size if length-at-end, even if size looks reasonable
Tim Kientzle [Thu, 26 Dec 2013 21:59:00 +0000 (13:59 -0800)]
Out-of-range seeks should fail, not truncate the seek.
Tim Kientzle [Thu, 26 Dec 2013 21:58:41 +0000 (13:58 -0800)]
Set compiler flags for Clang.
Tim Kientzle [Thu, 26 Dec 2013 21:57:26 +0000 (13:57 -0800)]
Break Zip compatibility test into 5 separate tests.
Tim Kientzle [Thu, 26 Dec 2013 19:20:04 +0000 (11:20 -0800)]
Fix mismatched sign warning
Tim Kientzle [Thu, 26 Dec 2013 19:19:16 +0000 (11:19 -0800)]
Fix warnings: mismatched signs, unused variables.
Tim Kientzle [Wed, 25 Dec 2013 17:57:37 +0000 (09:57 -0800)]
Merge branch 'master' of github.com:kientzle/libarchive-zip64
NiLuJe [Wed, 25 Dec 2013 11:12:31 +0000 (12:12 +0100)]
Merge branch 'master' into cmake-pkgconfig
Tim Kientzle [Wed, 25 Dec 2013 01:32:33 +0000 (17:32 -0800)]
Fix typo
Tim Kientzle [Wed, 25 Dec 2013 01:25:55 +0000 (17:25 -0800)]
Merge recent changes from libarchive master repository.
Tim Kientzle [Wed, 25 Dec 2013 01:24:41 +0000 (17:24 -0800)]
Cleanups for zip64 support
Tim Kientzle [Wed, 25 Dec 2013 01:13:30 +0000 (17:13 -0800)]
Move the strsep() implementation to the mtree reader, which is
the only place it's used.
NiLuJe [Tue, 24 Dec 2013 18:08:44 +0000 (19:08 +0100)]
Harmless typo in a comment.
NiLuJe [Tue, 24 Dec 2013 17:49:48 +0000 (18:49 +0100)]
Merge branch 'master' into fix-mingw
NiLuJe [Tue, 24 Dec 2013 17:49:18 +0000 (18:49 +0100)]
Merge branch 'master' into cmake-pkgconfig
NiLuJe [Tue, 24 Dec 2013 17:46:31 +0000 (18:46 +0100)]
Move .pc generation to a dedicated script (#55).
Tim Kientzle [Tue, 24 Dec 2013 06:55:49 +0000 (22:55 -0800)]
Merge pull request #57 from NiLuJe/fix-has_encrypted_entries
Make sure has_encrypted_entries is a signed int
Tim Kientzle [Tue, 24 Dec 2013 06:49:22 +0000 (22:49 -0800)]
Merge pull request #54 from NiLuJe/fix-autotools-build
Fix autotools build.
Tim Kientzle [Tue, 24 Dec 2013 06:47:27 +0000 (22:47 -0800)]
Merge pull request #53 from NiLuJe/fix-issue-317
Fix issue 317
NiLuJe [Mon, 23 Dec 2013 18:57:50 +0000 (19:57 +0100)]
Missed two tests!
(Mentioned in #58, thanks!)
NiLuJe [Mon, 23 Dec 2013 00:44:45 +0000 (01:44 +0100)]
Make sure has_encrypted_entries is a signed int
Related to
cd1740912b18f748a4f9b491a32b44c1712a7478
Trying to assign -1 (ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW)
to a data type we're not sure will always be signed is a bad idea
(blew up on ARM, for instance).