]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Xiao-Long Chen [Tue, 16 Sep 2014 04:11:20 +0000 (00:11 -0400)]
Fix incorrect CMake test directory when building as a subproject
This is an extension of
e800985adbb0820c5692ea016b3a8499d69a73dc
Michihiro NAKAJIMA [Sun, 31 Aug 2014 11:40:32 +0000 (20:40 +0900)]
Fix issue 375: failure to read some larger .7z archives
Increase a maxinum entry limitation up to
100000000 from
1000000 .
Michihiro NAKAJIMA [Mon, 18 Aug 2014 14:42:06 +0000 (23:42 +0900)]
Add additional tests for lz4 compression in front-end applications.
Michihiro NAKAJIMA [Mon, 18 Aug 2014 13:07:48 +0000 (22:07 +0900)]
Add lz4 test for bsdcat.
- add test utility function canLz4()
- fix test_write_filter_lz4 to use canLz4()
Tim Kientzle [Mon, 18 Aug 2014 02:17:06 +0000 (19:17 -0700)]
Merge pull request #87 from hroptatyr/fix/cat-empty-file
Allow empty files (after filters) in bsdcat command.
Michihiro NAKAJIMA [Thu, 14 Aug 2014 12:52:45 +0000 (21:52 +0900)]
Document lz4 compression, lzop compression and other filters
which were not documented in archive_read_filter.3 or
archive_write_filter.3.
Michihiro NAKAJIMA [Thu, 14 Aug 2014 09:23:38 +0000 (18:23 +0900)]
Improve lha decompression performance.
Michihiro NAKAJIMA [Thu, 14 Aug 2014 09:07:34 +0000 (18:07 +0900)]
Update xxhash.c to lz4 r120 version;
o remove xxhash.h, which is unneeded in libarchive and causes
build failure for function definitions.
o convert single comment statements to block comment statements
because some C compiler cannot handle it.
Michihiro NAKAJIMA [Thu, 14 Aug 2014 08:11:41 +0000 (17:11 +0900)]
Add lz4 filter entry to archive_read_append_filter function.
Michihiro NAKAJIMA [Thu, 14 Aug 2014 08:04:54 +0000 (17:04 +0900)]
Avoid an analyzer error "Dereference of null pointer",
which will not happen but analyzer claims.
Michihiro NAKAJIMA [Thu, 14 Aug 2014 07:48:47 +0000 (16:48 +0900)]
Eliminate dead assignment.
Michihiro NAKAJIMA [Thu, 14 Aug 2014 02:14:37 +0000 (11:14 +0900)]
Display filename encoding test names respectively to know what encoding test
was successful, failed or skipped.
Michihiro NAKAJIMA [Thu, 14 Aug 2014 01:35:43 +0000 (10:35 +0900)]
Fix build failure on FreeBSD 8.x.
Michihiro NAKAJIMA [Thu, 14 Aug 2014 01:19:10 +0000 (10:19 +0900)]
Fix build failure with lz4 r120 and later.
Michihiro NAKAJIMA [Wed, 13 Aug 2014 23:31:49 +0000 (08:31 +0900)]
Add support for lz4 write filter.
Sebastian Freundt [Tue, 12 Aug 2014 14:55:28 +0000 (14:55 +0000)]
Allow empty files (after filters) in bsdcat command.
This changeset fixes an issue with empty compressed files, i.e.
files that after inflating are of size 0: bsdcat would report
unrecognized archive format for those because the raw reader is
unable to handle files of zero length.
Sebastian Freundt [Tue, 12 Aug 2014 15:25:07 +0000 (15:25 +0000)]
Provide regression test case for bsdcat on empty compressed files
Michihiro NAKAJIMA [Sun, 3 Aug 2014 06:08:41 +0000 (15:08 +0900)]
Properly set a error message when a client seeker callback is not
defined.
Michihiro NAKAJIMA [Sun, 3 Aug 2014 05:51:15 +0000 (14:51 +0900)]
Fix issue336:7zip can not be read when opened with archive_read_open_fd.
Implenent a seek callback in archive_read_open_fd by bringin the code
from archive_open_filename.
Michihiro NAKAJIMA [Sun, 3 Aug 2014 04:19:18 +0000 (13:19 +0900)]
Fix issue363:Unable to extract large 7z files.
Properly changing a variable type up to uint64_t.
Michihiro NAKAJIMA [Sun, 27 Jul 2014 09:15:44 +0000 (18:15 +0900)]
Simply finding a file name in mtree format to avoid redundant code.
Tim Kientzle [Fri, 18 Jul 2014 04:03:52 +0000 (21:03 -0700)]
Fix --one-file-system: do not descend, but do visit the root of a new filesystem
Tim Kientzle [Fri, 18 Jul 2014 02:56:29 +0000 (19:56 -0700)]
Do not assume dir atime updates; not everyone does
Michihiro NAKAJIMA [Sat, 12 Jul 2014 02:33:42 +0000 (11:33 +0900)]
Fix issue 356: properly skip a sparse file entry in a tar file.
Michihiro NAKAJIMA [Sun, 6 Jul 2014 04:40:53 +0000 (13:40 +0900)]
Add lz4 detection for CMake configuration.
Michihiro NAKAJIMA [Sun, 6 Jul 2014 04:10:26 +0000 (13:10 +0900)]
Style fix. space -> tab.
Michihiro NAKAJIMA [Sun, 6 Jul 2014 03:57:47 +0000 (12:57 +0900)]
Fix dereference of null pointer which Clang Static Analyser pointed out.
Michihiro NAKAJIMA [Sun, 6 Jul 2014 03:06:15 +0000 (12:06 +0900)]
Plug memory leaks which Clang Static Analyser pointed out.
Michihiro NAKAJIMA [Sun, 6 Jul 2014 02:49:41 +0000 (11:49 +0900)]
Fix garbag return value which Clang Static Analyser pointed out.
Michihiro NAKAJIMA [Sun, 6 Jul 2014 02:23:15 +0000 (11:23 +0900)]
Fix dead store which Clang Static Analyser pointed out,
and some style changes. No functional changes.
Michihiro NAKAJIMA [Thu, 3 Jul 2014 11:58:51 +0000 (20:58 +0900)]
Add a test for a bug fix of lha reader.
Michihiro NAKAJIMA [Thu, 3 Jul 2014 11:26:43 +0000 (20:26 +0900)]
Fix a bug in lha read format.
The bug was it could not correctly extract the compressed data
which had just one repated pattern.
Michihiro NAKAJIMA [Wed, 2 Jul 2014 12:12:42 +0000 (21:12 +0900)]
Properly set buffer,offset and size when lha format reader returns
ARCHIVE_WAR by getting CRC error.o
Michihiro NAKAJIMA [Sun, 29 Jun 2014 21:44:47 +0000 (06:44 +0900)]
Add support for lz4 read filter.
TODO: detecting liblz4 library by CMake.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 10:51:28 +0000 (19:51 +0900)]
Fix test_compat_mac failure on non-mac OS X platform.
It requries an option 'mac-ext' to pass the test
since commit
95e0b3a4f .
Michihiro NAKAJIMA [Sun, 29 Jun 2014 09:09:26 +0000 (18:09 +0900)]
Fix build failure on Ubuntu.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 08:16:20 +0000 (17:16 +0900)]
Fix builid failure on FreeBSD 10.
On FreeBSD 10, ENOTSUP and EOPNOTSUPP are the same value,
so it cannot be used in the same switch statement.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 07:32:54 +0000 (16:32 +0900)]
Fix a bug which uudecode filter wrongly decoded the uuencoded data
which size was more than 64K bytes.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 07:12:34 +0000 (16:12 +0900)]
Add a test utility function, copy_reference_file simply coping
a sample file to the current directory of a running test.
A uudecode filter test will use it for its new test.
TODO: make a symbolic link file insted of copying a sample file.
Historically, libarchive cannot handle uuencoded files when
libarchive's test suit was made. Now libarchive can handle it
directly by uudecode filter, I think, we can reduce copying
sample files to the directory test program expects they are
on an isolated directory for their test.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 05:30:51 +0000 (14:30 +0900)]
Add bsdcat_test.log and bsdcat_test.trs to .gitignore.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 05:28:04 +0000 (14:28 +0900)]
Apply recent changs in libarvhie/test/main.c to {tar,cpio,cat}/test/main.c for keeping maintenacebility.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 05:14:35 +0000 (14:14 +0900)]
Fix build failure.
error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
Tim Kientzle [Sun, 22 Jun 2014 17:50:17 +0000 (10:50 -0700)]
Reformat long calculation, make consistent across copies
Tim Kientzle [Sun, 22 Jun 2014 17:43:51 +0000 (10:43 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sun, 22 Jun 2014 17:43:44 +0000 (10:43 -0700)]
Tab after #define
Tim Kientzle [Sun, 22 Jun 2014 17:43:00 +0000 (10:43 -0700)]
Use ARCHIVE_VERSION macros instead of PACKAGE
Tim Kientzle [Sun, 22 Jun 2014 17:42:23 +0000 (10:42 -0700)]
Mark which tests have skips
Tim Kientzle [Sun, 22 Jun 2014 17:41:51 +0000 (10:41 -0700)]
interpret times in UTC, not local timezone
Tim Kientzle [Sat, 21 Jun 2014 21:19:30 +0000 (14:19 -0700)]
Merge pull request #82 from r0ro/master
Silently ignore lchmod failure in when not supported
Tim Kientzle [Sat, 21 Jun 2014 21:16:00 +0000 (14:16 -0700)]
Fix multi-line display
Tim Kientzle [Sat, 21 Jun 2014 21:15:37 +0000 (14:15 -0700)]
Replace \e with plain \
Tim Kientzle [Sat, 21 Jun 2014 20:42:09 +0000 (13:42 -0700)]
Don't put '' around options within literals
Tim Kientzle [Sat, 21 Jun 2014 20:37:33 +0000 (13:37 -0700)]
start/end display cannot have extra trailing whitespace
Tim Kientzle [Sat, 21 Jun 2014 20:27:09 +0000 (13:27 -0700)]
Fix environment tables
Tim Kientzle [Sat, 21 Jun 2014 20:24:16 +0000 (13:24 -0700)]
Generate crossrefs, fix some punctuation
Tim Kientzle [Sat, 21 Jun 2014 20:23:39 +0000 (13:23 -0700)]
Fix refs to libarchive.3 manpage
Tim Kientzle [Sat, 21 Jun 2014 20:23:09 +0000 (13:23 -0700)]
Remove extraneous {}
Tim Kientzle [Sat, 21 Jun 2014 18:31:38 +0000 (11:31 -0700)]
document Zip writer options
Tim Kientzle [Sat, 21 Jun 2014 05:05:45 +0000 (22:05 -0700)]
untar.c bootstrap program is public domain
Tim Kientzle [Sat, 21 Jun 2014 04:59:38 +0000 (21:59 -0700)]
returns >0 are not errors here
Tim Kientzle [Sat, 21 Jun 2014 04:40:16 +0000 (21:40 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sat, 21 Jun 2014 04:39:50 +0000 (21:39 -0700)]
Document the buggy return codes of archive_write_data when writing to an archive_write_disk handle; comment that this should change in libarchive 4
Romain Fliedel [Fri, 20 Jun 2014 13:45:09 +0000 (15:45 +0200)]
Silently ignore lchmod failure in when not supported
lchmod might be defined but not supported by the platform,
(this is the case with musl implementation of fchmodat) in
this case we can safely ignore the error.
Tim Kientzle [Tue, 10 Jun 2014 23:26:28 +0000 (16:26 -0700)]
Merge pull request #81 from hroptatyr/feat/format-warc
Feat/format warc
Sebastian Freundt [Tue, 10 Jun 2014 13:42:41 +0000 (13:42 +0000)]
Check for legal HTTP but illegal unix filenames in WARCs archives.
This changeset will refuse to extract WARCs that contain filenames
a la http://example.com/implicit/content/
There is a todo note in archive_read_support_format_warc.c discussing
possible archive options to extract filenames like those either by
explicit user input or by some sort of heuristic as used in wget
for example.
Sebastian Freundt [Tue, 10 Jun 2014 13:03:31 +0000 (13:03 +0000)]
Set archive format, and archive format name.
This changeset adheres to the previously imported read test.
The archive format is hard-set to ARCHIVE_FORMAT_WARC, while the
format name is the stringified WARC/x.y version designator, which
for performance reasons will be cached between calls to the header
reader _warc_rdhdr().
Sebastian Freundt [Tue, 10 Jun 2014 12:24:00 +0000 (12:24 +0000)]
Tests, provide known-good archive read test.
Sebastian Freundt [Tue, 10 Jun 2014 12:46:32 +0000 (12:46 +0000)]
Hygiene, set unconsumed slot exactly once for each branch
in _warc_read(). Also kick __archive_read_consume() because the writer
will consume the bytes for us. So for the EOF case, set unconsumed to 0,
for the non-EOF case set unconsumed to the minimum of the number of bytes
read and the content length.
Sebastian Freundt [Tue, 10 Jun 2014 12:28:18 +0000 (12:28 +0000)]
Hygiene, always use xmemmem() because memmem() is a GNU extension
Sebastian Freundt [Tue, 10 Jun 2014 11:20:08 +0000 (11:20 +0000)]
Hygiene, use FALLTHROUGH instead of lint's @fallthrough@
Sebastian Freundt [Tue, 10 Jun 2014 11:15:42 +0000 (11:15 +0000)]
Hygiene, trust __archive_read_ahead() and kick superfluous check.
Heeding Tim's advice, a non-NULL from __archive_read_ahead() is
guaranteed to be of at least the minimum size, therefore no need to
check for this condition again.
Sebastian Freundt [Tue, 10 Jun 2014 11:01:06 +0000 (11:01 +0000)]
Hygiene, protect against NULL filenames in _warc_header()
Return ARCHIVE_WARN immediately.
Sebastian Freundt [Tue, 10 Jun 2014 11:00:20 +0000 (11:00 +0000)]
Fix, an empty WARC archive needs a bit more than 256 bytes.
Sebastian Freundt [Tue, 10 Jun 2014 10:40:45 +0000 (10:40 +0000)]
Tests, heed Tim's advice and emit ARCHIVE_FAILED for entries ...
that cannot be stored (natively) in WARC format.
Brad King [Mon, 9 Jun 2014 14:34:32 +0000 (10:34 -0400)]
Fix compilation on Tru64 with F_SETTIMES
The parent commit left a typo in the conditional code path for Tru64.
Add the missing '.'.
Rolf Eike Beer [Fri, 6 Jun 2014 15:44:16 +0000 (17:44 +0200)]
Fix compilation on newer HP-UX versions
Newer HP-UX versions (e.g. 11.31) also offers F_SETTIMES, but with a
different struct for the timing information.
Suggested-by: Eric Berge <ericmberge@gmail.com>
Tim Kientzle [Wed, 4 Jun 2014 23:57:42 +0000 (16:57 -0700)]
Issue #359: Rar drops file if previous filename is a prefix
Sebastian Freundt [Fri, 23 May 2014 08:36:54 +0000 (08:36 +0000)]
Hygiene, clean up xmemmem() code a little, use xor sums.
Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Sebastian Freundt [Fri, 23 May 2014 08:19:02 +0000 (08:19 +0000)]
Store and read back mtimes through Last-Modified custom header
Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Sebastian Freundt [Wed, 21 May 2014 15:18:41 +0000 (15:18 +0000)]
Fix, actually consume data between calls to _warc_read()
Sebastian Freundt [Wed, 21 May 2014 14:32:05 +0000 (14:32 +0000)]
Obey gcc warnings,
in particular: Don't compare integers of different signedness,
always initialise all members of a struct explicitly.
Sebastian Freundt [Wed, 21 May 2014 14:11:32 +0000 (14:11 +0000)]
fix, WARC files urgently need the filesize to be known when the header is written
Sebastian Freundt [Wed, 21 May 2014 14:10:48 +0000 (14:10 +0000)]
fix, request just the bare minimum for a WARC header
Moreover, assume a response of less than the bare minimum header
length to be the archive's EOF.
Sebastian Freundt [Wed, 21 May 2014 12:32:50 +0000 (12:32 +0000)]
fix, never write more bytes in _warc_data() than ...
previously announce in _warc_header().
The test suite (as is) is one offender. It populates a 9-byte string, mimicking an IFREG file
but by the time the header makes it into the archive, the size changes from 0 to 9.
Sebastian Freundt [Wed, 21 May 2014 11:24:55 +0000 (11:24 +0000)]
Provide WARC read/write tests
Sebastian Freundt [Wed, 21 May 2014 11:20:35 +0000 (11:20 +0000)]
Implant WARC support in tar's get_format_code()
Sebastian Freundt [Tue, 20 May 2014 13:26:50 +0000 (13:26 +0000)]
Provide ISO 28500:2009 reader (aka warc, aka web archive)
Sebastian Freundt [Tue, 20 May 2014 08:19:38 +0000 (08:19 +0000)]
Provide ISO 28500:2009 writer (aka warc, aka web archive)
Tim Kientzle [Sat, 10 May 2014 04:00:30 +0000 (21:00 -0700)]
Merge pull request #80 from sergiud/master
Check whether file handle is valid
Sergiu Dotenco [Mon, 5 May 2014 14:18:51 +0000 (16:18 +0200)]
check handle validity when closing a file
This eliminates an assertion under Windows that occurs when an archive cannot be
opened.
Tim Kientzle [Sun, 4 May 2014 05:59:31 +0000 (22:59 -0700)]
Zip: Adjust streaming extension field to match the final spec worked out with Info-Zip folks
Tim Kientzle [Thu, 17 Apr 2014 01:08:28 +0000 (18:08 -0700)]
Merge pull request #79 from maksqwe/duplicate_expression_fix
Remove duplicate expressions
Maks Naumov [Wed, 16 Apr 2014 22:03:53 +0000 (01:03 +0300)]
remove duplicate expressions in file_information()
Maks Naumov [Wed, 16 Apr 2014 22:02:39 +0000 (01:02 +0300)]
remove duplicate expressions in entry_copy_bhfi()
Tim Kientzle [Wed, 16 Apr 2014 01:56:37 +0000 (18:56 -0700)]
Merge pull request #77 from biometrics/additional_libs_scope
just link the archive_static with ADDITIONAL_LIBS
Josh Klontz [Tue, 15 Apr 2014 20:53:41 +0000 (16:53 -0400)]
just link the archive_static with ADDITIONAL_LIBS
Tim Kientzle [Tue, 15 Apr 2014 02:19:05 +0000 (19:19 -0700)]
Merge pull request #76 from biometrics/additional_libs_scope
fixed 'current scope has no parent' warning
Josh Klontz [Mon, 14 Apr 2014 20:48:10 +0000 (16:48 -0400)]
fixed 'current scope has no parent' warning
Tim Kientzle [Sat, 12 Apr 2014 20:56:29 +0000 (13:56 -0700)]
Add lafe files to cat project
Tim Kientzle [Sat, 12 Apr 2014 20:56:04 +0000 (13:56 -0700)]
Add missing file.