]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
14 years agoRefactor the code handling of the decompression of 7-Zip reader.
Michihiro NAKAJIMA [Sun, 11 Dec 2011 14:45:28 +0000 (09:45 -0500)] 
Refactor the code handling of the decompression of 7-Zip reader.
 * When decompressing a header, use the same function as decompressing the file contents as much as possible.
 * Change the interface of decompression function so that it cloud be relatively easy to support BCJ2 or
   Decryption.
 * Remove an unused variable, entry_uncompressed_bytes_read.
 * Rename some variables to be easily understanding for what to be used.
 * Set a clear message about encrypted header and file contents, which 7-Zip reader currently does not support.
 * Slightly reduce the amount of memory for a header.

SVN-Revision: 3907

14 years agoFreeBSD libmd support for hash functions.
Tim Kientzle [Sun, 11 Dec 2011 08:07:12 +0000 (03:07 -0500)] 
FreeBSD libmd support for hash functions.

SVN-Revision: 3906

14 years agoInclude ripemd.h header for FreeBSD libmd.
Tim Kientzle [Sun, 11 Dec 2011 08:05:59 +0000 (03:05 -0500)] 
Include ripemd.h header for FreeBSD libmd.

SVN-Revision: 3905

14 years agoCrypto checks are cumulative; the test program needs
Tim Kientzle [Sun, 11 Dec 2011 08:00:25 +0000 (03:00 -0500)] 
Crypto checks are cumulative; the test program needs
to link against all crypto libs that have been found so far.

Add in probes for FreeBSD libmd hash functions.

SVN-Revision: 3904

14 years agoFor out-of-tree builds, the placeholder config file
Tim Kientzle [Sun, 11 Dec 2011 07:09:31 +0000 (02:09 -0500)] 
For out-of-tree builds, the placeholder config file
here is in the build directory, specify -I. so it can
be found.

SVN-Revision: 3903

14 years agoRemove some debugging printfs.
Tim Kientzle [Sun, 11 Dec 2011 06:36:19 +0000 (01:36 -0500)] 
Remove some debugging printfs.

SVN-Revision: 3902

14 years agoCopy -u option support to bsdtar_test and bsdcpio_test.
Tim Kientzle [Sun, 11 Dec 2011 06:34:10 +0000 (01:34 -0500)] 
Copy -u option support to bsdtar_test and bsdcpio_test.
Fill in a variable initialization.

SVN-Revision: 3901

14 years agoAdd archive_read_support_format_by_code(), including documentation.
Tim Kientzle [Fri, 9 Dec 2011 06:39:08 +0000 (01:39 -0500)] 
Add archive_read_support_format_by_code(), including documentation.

SVN-Revision: 3900

14 years agoIssue 201: Make Zip tests pass without zlib.
Tim Kientzle [Fri, 2 Dec 2011 06:27:16 +0000 (01:27 -0500)] 
Issue 201: Make Zip tests pass without zlib.

Note:  I didn't actually change the tests (apart from a few
tweaks to match slightly adjusted error codes).  Instead,
I improved the Zip reader to correctly skip entry bodies
of unrecognized compression when streaming.  (Key point:
the same techniques implemented earlier to properly
handle uncompressed bodies are also useful when handling
unrecognized compressed bodies.)

SVN-Revision: 3899

14 years agoInstead of having read_data_skip call read_data, just inline the
Tim Kientzle [Fri, 2 Dec 2011 05:55:52 +0000 (00:55 -0500)] 
Instead of having read_data_skip call read_data, just inline the
necessary logic.

Next step will reshuffle this logic considerably; we should be
able to successfully skip in cases where we can't actually read the data.

SVN-Revision: 3898

14 years agoMinor refactor of zip_read_data_skip.
Tim Kientzle [Fri, 2 Dec 2011 05:15:02 +0000 (00:15 -0500)] 
Minor refactor of zip_read_data_skip.
Deal with the easy cases first.

SVN-Revision: 3897

14 years agoMove the PK\007\010 marker check into each separate data
Tim Kientzle [Fri, 2 Dec 2011 04:57:02 +0000 (23:57 -0500)] 
Move the PK\007\010 marker check into each separate data
reader, since the none and deflate readers handle it so differently.

SVN-Revision: 3896

14 years agoInitialize offset/size/buff once at the top of read_data.
Tim Kientzle [Fri, 2 Dec 2011 04:40:42 +0000 (23:40 -0500)] 
Initialize offset/size/buff once at the top of read_data.
Since offset is very consistent, we can eliminate a lot
of other places it was being set.

SVN-Revision: 3895

14 years agoentry_offset and entry_uncompressed_bytes_read were synonyms, so
Tim Kientzle [Fri, 2 Dec 2011 04:36:38 +0000 (23:36 -0500)] 
entry_offset and entry_uncompressed_bytes_read were synonyms, so
get rid of entry_offset.

SVN-Revision: 3894

14 years agoRemove the last vestiges of this old macro.
Tim Kientzle [Fri, 2 Dec 2011 04:33:45 +0000 (23:33 -0500)] 
Remove the last vestiges of this old macro.

SVN-Revision: 3893

14 years agoRework the tracking of not-yet-consumed bytes.
Tim Kientzle [Thu, 1 Dec 2011 07:11:21 +0000 (02:11 -0500)] 
Rework the tracking of not-yet-consumed bytes.
There are really only a few places we need to explicitly realign.

SVN-Revision: 3892

14 years agoRefactor the Zip header read:
Tim Kientzle [Thu, 1 Dec 2011 06:35:11 +0000 (01:35 -0500)] 
Refactor the Zip header read:
 * Move some common initialization into read_local_file_header
 * Ensure that the file pointer is always pointing to the start of
   the local file header when calling read_local_file_header
 * Merge old search_next_signature into streamable_read_header
   and simplify the resulting code

SVN-Revision: 3891

14 years agoCheck the PK\003\004 signature within zip_local_file_header.
Tim Kientzle [Thu, 1 Dec 2011 06:07:40 +0000 (01:07 -0500)] 
Check the PK\003\004 signature within zip_local_file_header.
Remove an extraneous variable.

SVN-Revision: 3890

14 years agoIf we lack libz, just drop the compression selector.
Tim Kientzle [Thu, 1 Dec 2011 06:04:16 +0000 (01:04 -0500)] 
If we lack libz, just drop the compression selector.

SVN-Revision: 3889

14 years agoIssue 201: Since we're using the seeking Zip reader here, we only
Tim Kientzle [Thu, 1 Dec 2011 05:35:22 +0000 (00:35 -0500)] 
Issue 201: Since we're using the seeking Zip reader here, we only
have to suppress the actual read if we lack libz.  We
don't expect an error when reading the next header.

SVN-Revision: 3888

14 years agoSet a clear error message about BCJ2.
Michihiro NAKAJIMA [Wed, 30 Nov 2011 09:15:59 +0000 (04:15 -0500)] 
Set a clear error message about BCJ2.

SVN-Revision: 3887

14 years agoUpdate comments in 7-Zip reader.
Michihiro NAKAJIMA [Wed, 30 Nov 2011 08:47:51 +0000 (03:47 -0500)] 
Update comments in 7-Zip reader.

SVN-Revision: 3886

14 years agoFix build failure without liblzma. A change of r3884 made that.
Michihiro NAKAJIMA [Wed, 30 Nov 2011 03:52:46 +0000 (22:52 -0500)] 
Fix build failure without liblzma. A change of r3884 made that.

SVN-Revision: 3885

14 years agoEnable BCJ + LZMA1 in the 7-Zip reader.
Michihiro NAKAJIMA [Tue, 29 Nov 2011 14:52:15 +0000 (09:52 -0500)] 
Enable BCJ + LZMA1 in the 7-Zip reader.

SVN-Revision: 3884

14 years agoIf ENABLE_ICONV is OFF, clean up ICONV variables in CACHE in case ENABLE_ICONV is...
Michihiro NAKAJIMA [Mon, 28 Nov 2011 23:27:16 +0000 (18:27 -0500)] 
If ENABLE_ICONV is OFF, clean up ICONV variables in CACHE in case ENABLE_ICONV is changed from ON to OFF.
That remaining variables caused build failure.

SVN-Revision: 3883

14 years agoFix some tests failure on using iconv on Windows.
Michihiro NAKAJIMA [Mon, 28 Nov 2011 23:05:51 +0000 (18:05 -0500)] 
Fix some tests failure on using iconv on Windows.

SVN-Revision: 3882

14 years agoAdd a 7-Zip PPMd sample file into test_fuzz entries.
Michihiro NAKAJIMA [Mon, 28 Nov 2011 12:30:19 +0000 (07:30 -0500)] 
Add a 7-Zip PPMd sample file into test_fuzz entries.

SVN-Revision: 3881

14 years agoAdd support for PPMd.
Michihiro NAKAJIMA [Mon, 28 Nov 2011 07:47:23 +0000 (02:47 -0500)] 
Add support for PPMd.

SVN-Revision: 3880

14 years agoLibarchive 3.0.1b TEST release v3.0.1b
Tim Kientzle [Sun, 27 Nov 2011 22:05:37 +0000 (17:05 -0500)] 
Libarchive 3.0.1b TEST release

SVN-Revision: 3879

14 years agoUnbreak build.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 14:10:02 +0000 (09:10 -0500)] 
Unbreak build.

SVN-Revision: 3866

14 years agoSimplify 7-Zip codec ID handing.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 13:22:55 +0000 (08:22 -0500)] 
Simplify 7-Zip codec ID handing.

SVN-Revision: 3865

14 years agoEliminate warnings on Visual Studio.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 11:50:18 +0000 (06:50 -0500)] 
Eliminate warnings on Visual Studio.

SVN-Revision: 3864

14 years agoReplace "7Zip" by "7-Zip".
Michihiro NAKAJIMA [Sun, 27 Nov 2011 11:47:43 +0000 (06:47 -0500)] 
Replace "7Zip" by "7-Zip".

SVN-Revision: 3863

14 years agoThe memory leaks I fixed in r3854 happened when liblzma verion < 5.0.3
Michihiro NAKAJIMA [Sun, 27 Nov 2011 11:17:12 +0000 (06:17 -0500)] 
The memory leaks I fixed in r3854 happened when liblzma verion < 5.0.3

SVN-Revision: 3862

14 years agoAdd support for 7-Zip SFX archive files.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 10:42:13 +0000 (05:42 -0500)] 
Add support for 7-Zip SFX archive files.

SVN-Revision: 3861

14 years agoRemove unneeded statements.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 06:08:48 +0000 (01:08 -0500)] 
Remove unneeded statements.

SVN-Revision: 3860

14 years agoUpdate NEWS with recent changes.
Tim Kientzle [Sun, 27 Nov 2011 05:56:17 +0000 (00:56 -0500)] 
Update NEWS with recent changes.

SVN-Revision: 3859

14 years agoarchive_string_sprintf (used by archive_set_error) doesn't support
Tim Kientzle [Sun, 27 Nov 2011 05:39:53 +0000 (00:39 -0500)] 
archive_string_sprintf (used by archive_set_error) doesn't support
field-width modifiers, so remove those.

SVN-Revision: 3856

14 years agoCorrect a bit flag check. do not confuse SCONV_FROM_UTF16BE and SCONV_FROM_UTF16LE.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 05:05:44 +0000 (00:05 -0500)] 
Correct a bit flag check. do not confuse SCONV_FROM_UTF16BE and SCONV_FROM_UTF16LE.

SVN-Revision: 3855

14 years agoFix memory leaks.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 03:44:07 +0000 (22:44 -0500)] 
Fix memory leaks.

SVN-Revision: 3854

14 years agoFix build failure on linux.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 03:10:44 +0000 (22:10 -0500)] 
Fix build failure on linux.

SVN-Revision: 3852

14 years agoAdd support for 7-Zip.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 00:58:45 +0000 (19:58 -0500)] 
Add support for 7-Zip.
This new 7Zip reader supports COPY,Deflate,BZ2,LZMA and LZMA2.
This also supports BCJ + LZMA2, DELTA + LZMA and DELTA + LZMA2.
(BCJ + LZMA is not supported, there is some problems to support it.)

This 7Zip reader cannot work on stream because of its format:
its header is placed at the bottom of the archive file, so we
have to call seek().

SVN-Revision: 3844

14 years agoSupport UTF-16LE for archive_string for reading from an archive.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 00:45:24 +0000 (19:45 -0500)] 
Support UTF-16LE for archive_string for reading from an archive.
7Zip reader will use this.

SVN-Revision: 3843

14 years agoInclude some omitted files.
Tim Kientzle [Sat, 26 Nov 2011 20:33:28 +0000 (15:33 -0500)] 
Include some omitted files.

SVN-Revision: 3842

14 years agor3839 broken length-at-end handling; if we're using length-at-end semantics,
Tim Kientzle [Sat, 26 Nov 2011 07:17:39 +0000 (02:17 -0500)] 
r3839 broken length-at-end handling; if we're using length-at-end semantics,
we can't limit to the advertised size.

SVN-Revision: 3841

14 years agoAdd a -u (until failure) option to libarchive_test to make
Tim Kientzle [Sat, 26 Nov 2011 07:01:34 +0000 (02:01 -0500)] 
Add a -u (until failure) option to libarchive_test to make
it easier to run tests continuously in a loop.

SVN-Revision: 3840

14 years agoWhen reading deflate data, we should still treat the "compressed size"
Tim Kientzle [Sat, 26 Nov 2011 07:00:43 +0000 (02:00 -0500)] 
When reading deflate data, we should still treat the "compressed size"
value as a limit instead of assuming the deflate stream will agree.
This fixes an internal assertion failure when trying to read certain
inconsistent Zip archives.

SVN-Revision: 3839

14 years agoFail if CE size/offset doesn't lie within the current block.
Tim Kientzle [Sat, 26 Nov 2011 06:58:14 +0000 (01:58 -0500)] 
Fail if CE size/offset doesn't lie within the current block.

SVN-Revision: 3838

14 years agoFurther the robustness of the ISO reader against corrupted ISO images.
Michihiro NAKAJIMA [Thu, 24 Nov 2011 16:10:09 +0000 (11:10 -0500)] 
Further the robustness of the ISO reader against corrupted ISO images.
 - Do not allow a negative location when the file is not empty since
   it's too large and it will makes a negative file offset, which the
   ISO reader dose not expect to use the offset for non empty files at all.

SVN-Revision: 3837

14 years agoIssue 152: With a little work, we actually can extract
Tim Kientzle [Thu, 24 Nov 2011 08:56:20 +0000 (03:56 -0500)] 
Issue 152:  With a little work, we actually can extract
this type of archive even with the streaming reader.

The end-of-data marker used with length-at-end storage
is actually more distinctive than I had at first thought.
This commit changes the streaming reader to look
for the end-of-data marker when scanning uncompressed
bodies.

SVN-Revision: 3836

14 years agoIssue 199: Improve robustness against corrupted ISO images.
Michihiro NAKAJIMA [Thu, 24 Nov 2011 04:03:55 +0000 (23:03 -0500)] 
Issue 199: Improve robustness against corrupted ISO images.
  - Back out r3823. it was not insufficient for such corrupted ISO images.
  - Check "RE" extension strictly: stop just clearing "RE" extension
    as if it were not defined.
  - Check "CL" extension strictly:
    * "CL" does not point at itself.
    * "CL" does not point at its parents.
    * A directory file cannot have "CL" extension.
    * A file which has "CL" extension is not on the top level of
      a directory tree.

SVN-Revision: 3835

14 years agoIssue 152: Now that we have a seeking Zip reader that understands
Tim Kientzle [Wed, 23 Nov 2011 09:15:30 +0000 (04:15 -0500)] 
Issue 152:  Now that we have a seeking Zip reader that understands
Central Directory, we can take the sample Zip file from this issue
and build a test around it.

This mostly involves cleaning up the handling of data that appears
in both the central directory and the local file header.  In
particular, some writers set crc and size fields to zero in the
local file header for no apparent reason.  Fixing this also changes
a few tests that assumed the Zip reader didn't always have accurate
file information.  It now does have accurate file information
from the central directory in the seek case.

SVN-Revision: 3834

14 years agoWhen we do an implicit data-skip during a header request, be
Tim Kientzle [Wed, 23 Nov 2011 07:47:46 +0000 (02:47 -0500)] 
When we do an implicit data-skip during a header request, be
a little more careful about errors:
  * FATAL during the data-skip is very bad (obviously)
  * EOF during the data-skip is very bad (EOF should only ever be
    returned by next-header)
  * EOF from the header fetch always has to be returned, even if we
    drop a warning to do so.  (In theory, we could defer the warning
    until close, but that's a little weird, too.)
  * Otherwise, return whichever is worst.

SVN-Revision: 3833

14 years agoNew seeking Zip reader does read file modes.
Tim Kientzle [Tue, 22 Nov 2011 06:28:51 +0000 (01:28 -0500)] 
New seeking Zip reader does read file modes.

SVN-Revision: 3832

14 years agoRefactor Zip read tests to exercise both seeking and streaming readers.
Tim Kientzle [Tue, 22 Nov 2011 06:27:48 +0000 (01:27 -0500)] 
Refactor Zip read tests to exercise both seeking and streaming readers.

SVN-Revision: 3831

14 years agoExtend test_write_format_zip to use both streaming and seeking zip readers when
Tim Kientzle [Tue, 22 Nov 2011 06:10:41 +0000 (01:10 -0500)] 
Extend test_write_format_zip to use both streaming and seeking zip readers when
verifying archive by reading it back.

SVN-Revision: 3830

14 years agoExtend empty zip writing test to also verify that we correctly read
Tim Kientzle [Tue, 22 Nov 2011 05:48:29 +0000 (00:48 -0500)] 
Extend empty zip writing test to also verify that we correctly read
these empty zip archives, with both the streaming and the seeking reader.

SVN-Revision: 3829

14 years agoComments...
Tim Kientzle [Tue, 22 Nov 2011 05:32:59 +0000 (00:32 -0500)] 
Comments...

SVN-Revision: 3828

14 years agoImprove LZMA detection on Windows.
Michihiro NAKAJIMA [Mon, 21 Nov 2011 06:01:41 +0000 (01:01 -0500)] 
Improve LZMA detection on Windows.

SVN-Revision: 3827

14 years agoCast away __la_lseek(), use _lseeki64() instead.
Michihiro NAKAJIMA [Mon, 21 Nov 2011 05:26:06 +0000 (00:26 -0500)] 
Cast away __la_lseek(), use _lseeki64() instead.
There was any difference between our __la_lseek() and _lseeki64().

SVN-Revision: 3826

14 years agoAdd wchar_t filename support for archive_{read,write}_open_filename().
Michihiro NAKAJIMA [Mon, 21 Nov 2011 04:20:53 +0000 (23:20 -0500)] 
Add wchar_t filename support for archive_{read,write}_open_filename().
It would be useful for an internationalization programing on Windows.

SVN-Revision: 3825

14 years agoMerge r3823 from trunk for issue 199.
Michihiro NAKAJIMA [Mon, 21 Nov 2011 02:10:57 +0000 (21:10 -0500)] 
Merge r3823 from trunk for issue 199.

SVN-Revision: 3824

14 years agoFix issue 199; improve robustness to corrupted ISO images.
Michihiro NAKAJIMA [Mon, 21 Nov 2011 02:08:33 +0000 (21:08 -0500)] 
Fix issue 199; improve robustness to corrupted ISO images.

SVN-Revision: 3823

14 years agoTry to decrease the performance hit of seeking during the bid phase.
Tim Kientzle [Mon, 21 Nov 2011 00:52:32 +0000 (19:52 -0500)] 
Try to decrease the performance hit of seeking during the bid phase.

Tell each bidder about the best bid so far so it can decide
to do nothing.  Reorder support_format_all so formats
with relatively inexpensive bidders will run first.

SVN-Revision: 3822

14 years agoRemove an outdated comment.
Tim Kientzle [Mon, 21 Nov 2011 00:13:23 +0000 (19:13 -0500)] 
Remove an outdated comment.

SVN-Revision: 3821

14 years agoThere are now two different Zip
Tim Kientzle [Mon, 21 Nov 2011 00:12:15 +0000 (19:12 -0500)] 
There are now two different Zip
readers. archive_read_support_format_zip() enables both of them:

  * The "streamable" reader is the old one, which reads Zip archives
    serially from the beginning.  This is efficient but cannot use
    information from the Central Directory (especially file mode).  It
    also has problems with SFX archives.  (I've actually removed the
    seek-ahead SFX support from this reader.)

  * The new "seekable" reader reads the Central Directory first and
    therefore has access to slightly more information about each file.
    In particular, it can fully support SFX archives.  But it requires
    seek support, so cannot read Zip archives from pipes or other
    non-seekable inputs.

The two implementations obviously share a lot of code.

There are still rough edges but this does basically work.  I've added
one Zip test to verify that SFX archives can be read correctly only
when seek is supported, but more testing is needed (in particular, the
fuzz tester only exercises one of the two Zip readers).

There are some unpleasant consequences of having a format reader that
relies on seek support.  In particular, there are some performance
headaches during bid phase because the seeking bidder thrashes
libarchive's internal read-ahead buffers.  There are also some
potentially ugly problems with read alignment when seeking.

SVN-Revision: 3820

14 years agoSupport the seek interface for archive_read_open_memory()
Tim Kientzle [Sun, 20 Nov 2011 23:57:56 +0000 (18:57 -0500)] 
Support the seek interface for archive_read_open_memory()

SVN-Revision: 3819

14 years agoIssue 195: Reduce the number of casts, fix up whitespace, replace
Tim Kientzle [Sun, 20 Nov 2011 22:50:20 +0000 (17:50 -0500)] 
Issue 195: Reduce the number of casts, fix up whitespace, replace
some inappropriate strncmp() with memcmp().

SVN-Revision: 3818

14 years agoIssue 195: Code cleanups.
Tim Kientzle [Sun, 20 Nov 2011 22:31:13 +0000 (17:31 -0500)] 
Issue 195: Code cleanups.

SVN-Revision: 3817

14 years agoIssue 195: Use consistent typing to avoid extra casts.
Tim Kientzle [Sun, 20 Nov 2011 22:25:45 +0000 (17:25 -0500)] 
Issue 195: Use consistent typing to avoid extra casts.

SVN-Revision: 3816

14 years agoIssue 195: Use more-portable memcmp().
Tim Kientzle [Sun, 20 Nov 2011 22:24:46 +0000 (17:24 -0500)] 
Issue 195: Use more-portable memcmp().

SVN-Revision: 3815

14 years agoIssue 195: Remove a redundant variable.
Tim Kientzle [Sun, 20 Nov 2011 22:21:15 +0000 (17:21 -0500)] 
Issue 195: Remove a redundant variable.

SVN-Revision: 3814

14 years agoIssue 195: Use more portable memcmp() here.
Tim Kientzle [Sun, 20 Nov 2011 22:20:16 +0000 (17:20 -0500)] 
Issue 195: Use more portable memcmp() here.

SVN-Revision: 3813

14 years agoIssue 195: Code cleanup.
Tim Kientzle [Sun, 20 Nov 2011 22:19:25 +0000 (17:19 -0500)] 
Issue 195: Code cleanup.

SVN-Revision: 3812

14 years agoExtend the specialized read_open_memory to provide a seek callback as well.
Tim Kientzle [Sun, 20 Nov 2011 07:49:48 +0000 (02:49 -0500)] 
Extend the specialized read_open_memory to provide a seek callback as well.

SVN-Revision: 3811

14 years agoRefactor the test suite's read_open_memory a bit.
Tim Kientzle [Sun, 20 Nov 2011 07:27:38 +0000 (02:27 -0500)] 
Refactor the test suite's read_open_memory a bit.

SVN-Revision: 3810

14 years agoCorrect the detection of wincrypt.h and winioctl.h
Tim Kientzle [Sat, 19 Nov 2011 23:29:02 +0000 (18:29 -0500)] 
Correct the detection of wincrypt.h and winioctl.h
From: Denis B. MARTIN

SVN-Revision: 3809

14 years agoSupport seeking in files.
Tim Kientzle [Sat, 19 Nov 2011 03:05:56 +0000 (22:05 -0500)] 
Support seeking in files.
Noone actually uses this yet, but I have some ideas for using
this to fix the Zip and ISO reader.

SVN-Revision: 3808

14 years agoImprove portability to old Windows systems by using SetFilePointer
Tim Kientzle [Sat, 19 Nov 2011 01:45:13 +0000 (20:45 -0500)] 
Improve portability to old Windows systems by using SetFilePointer
instead of SetFilePointerEx.
Fix a couple of uninitialized variables.

From: Denis B MARTIN

SVN-Revision: 3807

14 years agoWindows' system() does not accept '' an empty string, use "" instead.
Michihiro NAKAJIMA [Fri, 18 Nov 2011 07:15:35 +0000 (02:15 -0500)] 
Windows' system() does not accept '' an empty string, use "" instead.

SVN-Revision: 3806

14 years agoOn Windows platform, we have made own lseek, which cat handle 64 bits offset pointer...
Michihiro NAKAJIMA [Fri, 18 Nov 2011 06:41:36 +0000 (01:41 -0500)] 
On Windows platform, we have made own lseek, which cat handle 64 bits offset pointer, and use it.
If there is an obvious reason to use off_t defined as 32 bits offset pointer, we can use int64_t
for lseek instead of off_t on Windows.

SVN-Revision: 3805

14 years agoPush int64_t down a bit; there's still a problem here if off_t is short.
Tim Kientzle [Fri, 18 Nov 2011 05:24:32 +0000 (00:24 -0500)] 
Push int64_t down a bit; there's still a problem here if off_t is short.

SVN-Revision: 3804

14 years agoRegenerate Wiki manpages from the mdoc sources.
Tim Kientzle [Fri, 18 Nov 2011 04:50:58 +0000 (23:50 -0500)] 
Regenerate Wiki manpages from the mdoc sources.

SVN-Revision: 3802

14 years agoThe additional elimination of bsdtar_windows.[ch].
Michihiro NAKAJIMA [Fri, 18 Nov 2011 04:05:32 +0000 (23:05 -0500)] 
The additional elimination of bsdtar_windows.[ch].
I overlooked this in r3798.

SVN-Revision: 3801

14 years agoFix a handling of an empty gname in ustar on Windows.
Michihiro NAKAJIMA [Thu, 17 Nov 2011 11:52:04 +0000 (06:52 -0500)] 
Fix a handling of an empty gname in ustar on Windows.
It cased a conversion error when the gname had an empty string and its length was not zero.

SVN-Revision: 3800

14 years agoCheck the position before dereferencing the pointer.
Tim Kientzle [Thu, 17 Nov 2011 05:38:07 +0000 (00:38 -0500)] 
Check the position before dereferencing the pointer.
This avoids dereferencing one byte past the end of a string.

SVN-Revision: 3799

14 years agobsdtar_windows.[ch] are no longer used in the bsdtar test suite.
Michihiro NAKAJIMA [Wed, 16 Nov 2011 08:52:28 +0000 (03:52 -0500)] 
bsdtar_windows.[ch] are no longer used in the bsdtar test suite.

SVN-Revision: 3798

14 years agocpio_windows.h is no longer used in the cpio test suite.
Michihiro NAKAJIMA [Wed, 16 Nov 2011 08:44:58 +0000 (03:44 -0500)] 
cpio_windows.h is no longer used in the cpio test suite.

SVN-Revision: 3797

14 years agoFix build failure caused by the change of r3794 on MSYS.
Michihiro NAKAJIMA [Wed, 16 Nov 2011 07:36:17 +0000 (02:36 -0500)] 
Fix build failure caused by the change of r3794 on MSYS.

SVN-Revision: 3796

14 years agoUpdate comments.
Michihiro NAKAJIMA [Wed, 16 Nov 2011 05:12:15 +0000 (00:12 -0500)] 
Update comments.

SVN-Revision: 3795

14 years agoOn Windows, we never get a correct number of the nlinks of a directory as well as...
Michihiro NAKAJIMA [Tue, 15 Nov 2011 10:03:05 +0000 (05:03 -0500)] 
On Windows, we never get a correct number of the nlinks of a directory as well as we get it on POSIX system.

SVN-Revision: 3794

14 years agoEliminate some warnings on Visual Stdio.
Michihiro NAKAJIMA [Tue, 15 Nov 2011 09:19:59 +0000 (04:19 -0500)] 
Eliminate some warnings on Visual Stdio.

SVN-Revision: 3792

14 years agoI stupidly misunderstood a handling of CMake build options, ENABLE_TAR, ENABLE_TAR_SH...
Michihiro NAKAJIMA [Tue, 15 Nov 2011 08:27:08 +0000 (03:27 -0500)] 
I stupidly misunderstood a handling of CMake build options, ENABLE_TAR, ENABLE_TAR_SHARED,
ENABLE_CPIO and ENABLE_CPIO_SHARED, in r3240 and r3713. And that had made bsdtar and bsdcpio
disabled or being test failure on Windows platform.
 - Simplify CMake build options; all platforms have the same default build options.
 - Back out r3713.

SVN-Revision: 3791

14 years agoLibarchive 3.0.0a TEST release v3.0.0a
Tim Kientzle [Sun, 13 Nov 2011 18:08:01 +0000 (13:08 -0500)] 
Libarchive 3.0.0a TEST release

SVN-Revision: 3777

14 years agoUpdate NEWS with a (very brief) summary of key changes since libarchive 2.8.
Tim Kientzle [Sun, 13 Nov 2011 01:59:20 +0000 (20:59 -0500)] 
Update NEWS with a (very brief) summary of key changes since libarchive 2.8.

SVN-Revision: 3776

14 years agoClarify INSTALL.
Tim Kientzle [Sun, 13 Nov 2011 01:58:52 +0000 (20:58 -0500)] 
Clarify INSTALL.

SVN-Revision: 3775

14 years agoUpdate README with new formats that have been added since libarchive 2.8.
Tim Kientzle [Sun, 13 Nov 2011 01:58:33 +0000 (20:58 -0500)] 
Update README with new formats that have been added since libarchive 2.8.

SVN-Revision: 3774

14 years agoDon't use // for comments, for compatibility with older compilers.
Tim Kientzle [Sun, 13 Nov 2011 01:58:00 +0000 (20:58 -0500)] 
Don't use // for comments, for compatibility with older compilers.

SVN-Revision: 3773

14 years agoAlign the test harnesses in each project.
Tim Kientzle [Sun, 13 Nov 2011 01:57:31 +0000 (20:57 -0500)] 
Align the test harnesses in each project.

SVN-Revision: 3772

14 years agoDon't use // for comments, for compatibility with older compilers.
Tim Kientzle [Sun, 13 Nov 2011 01:56:54 +0000 (20:56 -0500)] 
Don't use // for comments, for compatibility with older compilers.

SVN-Revision: 3771