]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
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

14 years agoMerge r3768 from trunk: Fix typo in dev/ino verification for cpio formats.
Tim Kientzle [Sat, 12 Nov 2011 20:47:34 +0000 (15:47 -0500)] 
Merge r3768 from trunk: Fix typo in dev/ino verification for cpio formats.

SVN-Revision: 3770

14 years agoMerge r3744 from trunk: Correctly return errors when reading
Tim Kientzle [Sat, 12 Nov 2011 20:46:05 +0000 (15:46 -0500)] 
Merge r3744 from trunk:  Correctly return errors when reading
an archive using @archive extension.

SVN-Revision: 3769

14 years agoIssue 197: fix a typo; a test for 'ino' accidentally referred
Tim Kientzle [Sat, 12 Nov 2011 20:44:01 +0000 (15:44 -0500)] 
Issue 197: fix a typo; a test for 'ino' accidentally referred
to the 'dev' variable.

SVN-Revision: 3768

14 years agoDisable OpenSSL probe on Darwin.
Tim Kientzle [Sat, 12 Nov 2011 05:26:31 +0000 (00:26 -0500)] 
Disable OpenSSL probe on Darwin.
This avoids a painful deprecation build error when the configure
finds RMD160 in OpenSSL.
We can re-enable this in the production version of libarchive 3.0.0,
since the production versions don't enable -Werror.

SVN-Revision: 3767

14 years agoIssue 196: cpio format tests should verify that nlinks in the
Tim Kientzle [Sat, 12 Nov 2011 05:21:58 +0000 (00:21 -0500)] 
Issue 196:  cpio format tests should verify that nlinks in the
archive matches what's on disk, instead of assuming historical
Unix behavior.
Thanks to: dpmcgee

SVN-Revision: 3766

14 years agoIssue 192: Fix tests that fail when libarchive is deliberately
Tim Kientzle [Sat, 12 Nov 2011 04:57:35 +0000 (23:57 -0500)] 
Issue 192: Fix tests that fail when libarchive is deliberately
built without libz.
Thanks to dpmcgee.

SVN-Revision: 3765

14 years agoGarbage collect more vestigal name_cache bits.
Colin Percival [Thu, 10 Nov 2011 06:12:15 +0000 (01:12 -0500)] 
Garbage collect more vestigal name_cache bits.

SVN-Revision: 3764

14 years agoGarbage collect NO_NAME. It hasn't been used since r423 (January 2009)
Colin Percival [Thu, 10 Nov 2011 06:08:52 +0000 (01:08 -0500)] 
Garbage collect NO_NAME.  It hasn't been used since r423 (January 2009)
when the uname/gname lookups moved out of write.c to use the new
archive_read_disk API instead.

Reported by: Brian St. Pierre (via Tarsnap)

SVN-Revision: 3763

14 years agoIssue 193: allow ctime/mtime filters to work accurately on
Tim Kientzle [Wed, 9 Nov 2011 06:34:26 +0000 (01:34 -0500)] 
Issue 193: allow ctime/mtime filters to work accurately on
platforms that support times before the epoch.

SVN-Revision: 3762

14 years agoIssue 191: Update the manpage for archive_entry_stat to
Tim Kientzle [Wed, 9 Nov 2011 05:05:57 +0000 (00:05 -0500)] 
Issue 191: Update the manpage for archive_entry_stat to
clarify the fields actually copied.
While I'm here, fill in a few missing items and try to
make some of the descriptions a little more accurate.

SVN-Revision: 3761

14 years agoIssue 191: Clear struct stat so that fields not explicitly
Tim Kientzle [Wed, 9 Nov 2011 04:15:36 +0000 (23:15 -0500)] 
Issue 191: Clear struct stat so that fields not explicitly
set by libarchive won't have garbage values.

SVN-Revision: 3760

14 years agoFill in some comments for the makerelease script.
Tim Kientzle [Mon, 7 Nov 2011 01:54:02 +0000 (20:54 -0500)] 
Fill in some comments for the makerelease script.

SVN-Revision: 3759

14 years agoPut the list.h files with the test programs.
Tim Kientzle [Mon, 7 Nov 2011 01:53:06 +0000 (20:53 -0500)] 
Put the list.h files with the test programs.
Include a missing test file.

SVN-Revision: 3758

14 years agoAssign the intermediate value to a variable to
Tim Kientzle [Mon, 7 Nov 2011 01:52:00 +0000 (20:52 -0500)] 
Assign the intermediate value to a variable to
prevent compiler optimizations from breaking the test.

SVN-Revision: 3757

14 years agoRename ARCHIVE_LIBTOOL_MAJOR to ARCHIVE_INTERFACE.
Tim Kientzle [Mon, 7 Nov 2011 00:53:14 +0000 (19:53 -0500)] 
Rename ARCHIVE_LIBTOOL_MAJOR to ARCHIVE_INTERFACE.

SVN-Revision: 3756

14 years agoUpdate iconv.m4 to the newest version.
Tim Kientzle [Mon, 7 Nov 2011 00:51:57 +0000 (19:51 -0500)] 
Update iconv.m4 to the newest version.

SVN-Revision: 3755

14 years agoUpdate shared library version computation for upcoming 3.0.0a release.
Tim Kientzle [Sun, 6 Nov 2011 20:41:49 +0000 (15:41 -0500)] 
Update shared library version computation for upcoming 3.0.0a release.

SVN-Revision: 3754

14 years agoIssue 190: Fix build when liblzma is installed through MacPorts.
Tim Kientzle [Sun, 6 Nov 2011 19:09:58 +0000 (14:09 -0500)] 
Issue 190:  Fix build when liblzma is installed through MacPorts.

The probe for liblzma finds it in /opt/local, which adds
/opt/local/include to the include search path, which causes
iconv.h to be found there at compile time, which breaks because
libiconv was found in /usr at configure time.

This change causes cmake to prefer /opt/local for everything,
so that libiconv is pulled from /opt/local, and we avoid
the breakage from iconv mismatch.

I have a nasty suspicion that similar problems can happen
with many package systems.

SVN-Revision: 3753

14 years agoRather than marking the LZMA variables "not advanced", just
Tim Kientzle [Sun, 6 Nov 2011 19:01:45 +0000 (14:01 -0500)] 
Rather than marking the LZMA variables "not advanced", just
don't mark them "advanced" in the first place.

SVN-Revision: 3752

14 years agoMask SIGPIPE for libarchive test, tar, and cpio.
Tim Kientzle [Sat, 5 Nov 2011 23:34:57 +0000 (19:34 -0400)] 
Mask SIGPIPE for libarchive test, tar, and cpio.

As reported at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641265

The SIGPIPE occurs when feeding data through a decompression
program; the external program may see an end-of-data marker
and exit before we've finished feeding it all of the data.
(This happens when the data has garbage padding at the end.)
We want to catch and ignore the EPIPE since we can still
read the data coming out of the decompression program.

SVN-Revision: 3751

14 years agoActually, it's OpenSSL that's deprecated on Mac OS, not RMD.
Tim Kientzle [Sat, 5 Nov 2011 23:28:13 +0000 (19:28 -0400)] 
Actually, it's OpenSSL that's deprecated on Mac OS, not RMD.

SVN-Revision: 3750

14 years agoDisable RMD160 checks on Darwin.
Tim Kientzle [Sat, 5 Nov 2011 20:12:01 +0000 (16:12 -0400)] 
Disable RMD160 checks on Darwin.
Without this, we find RMD160 in OpenSSL but then fail to build because
of deprecation errors.
There are certainly better ways to handle this.

SVN-Revision: 3749

14 years agoIssue 165: Use GNU tar-style hHrRsS trailing flags to
Tim Kientzle [Sat, 5 Nov 2011 05:29:29 +0000 (01:29 -0400)] 
Issue 165: Use GNU tar-style hHrRsS trailing flags to
control hardlink, regular filename, and symlink substitutions.

SVN-Revision: 3748

14 years agoAdd a test inspired by Issue #186.
Tim Kientzle [Sat, 5 Nov 2011 04:16:35 +0000 (00:16 -0400)] 
Add a test inspired by Issue #186.
I believe this shows that the issue reported there is not
due to a problem in libarchive.

SVN-Revision: 3747

14 years agoIssue 188: Bump maximum line length to 64k.
Tim Kientzle [Fri, 4 Nov 2011 04:34:06 +0000 (00:34 -0400)] 
Issue 188: Bump maximum line length to 64k.

SVN-Revision: 3746

14 years agoUse the original filename for reporting errors, instead of the processed one.
Tim Kientzle [Fri, 4 Nov 2011 04:33:28 +0000 (00:33 -0400)] 
Use the original filename for reporting errors, instead of the processed one.

SVN-Revision: 3745

14 years agoWhen tar is appending one archive to another,
Tim Kientzle [Thu, 3 Nov 2011 05:36:00 +0000 (01:36 -0400)] 
When tar is appending one archive to another,
propagate read errors back as well as write errors.

SVN-Revision: 3744

14 years agoIssue #189: Don't rely on dev/ino being zero when they
Tim Kientzle [Thu, 3 Nov 2011 05:21:30 +0000 (01:21 -0400)] 
Issue #189:  Don't rely on dev/ino being zero when they
have not been set.  Instead, explicitly track when these
values are set.  In particular, this fixes the check
that prevents adding an archive to itself on NetBSD.

SVN-Revision: 3743

14 years agoRemove test for 'self == NULL' in bzip2_reader_init. It isn't needed,
Colin Percival [Wed, 2 Nov 2011 21:13:46 +0000 (17:13 -0400)] 
Remove test for 'self == NULL' in bzip2_reader_init.  It isn't needed,
since the caller is responsible for providing a non-NULL pointer; and
it's meaningless because we've already dereferenced self a few lines
earlier.

Submitted by: Carlo Teubner (via Tarsnap bug bounties)

SVN-Revision: 3742

14 years agoSupport FreeBSD's libmd library for common message digest functions.
Tim Kientzle [Sat, 22 Oct 2011 22:19:22 +0000 (18:19 -0400)] 
Support FreeBSD's libmd library for common message digest functions.

SVN-Revision: 3741

14 years agoUse archive_clear_error() to clear the error markers.
Tim Kientzle [Sat, 22 Oct 2011 18:26:55 +0000 (14:26 -0400)] 
Use archive_clear_error() to clear the error markers.

SVN-Revision: 3740

14 years agoCorrect spelling of getgrgid and getpwuid
Tim Kientzle [Sat, 22 Oct 2011 17:49:46 +0000 (13:49 -0400)] 
Correct spelling of getgrgid and getpwuid

SVN-Revision: 3739

14 years agoPort the --gname, --uname, --uid, --gid options from libarchive/trunk.
Tim Kientzle [Sat, 22 Oct 2011 16:39:25 +0000 (12:39 -0400)] 
Port the --gname, --uname, --uid, --gid options from libarchive/trunk.

SVN-Revision: 3738

14 years agoProbes for libmd on FreeBSD.
Tim Kientzle [Wed, 19 Oct 2011 03:44:38 +0000 (23:44 -0400)] 
Probes for libmd on FreeBSD.

SVN-Revision: 3737

14 years agoFirst part of libmd support for FreeBSD.
Tim Kientzle [Sun, 16 Oct 2011 22:27:38 +0000 (18:27 -0400)] 
First part of libmd support for FreeBSD.

SVN-Revision: 3736

14 years agoMerge r3247 from trunk: Clear errors before returning
Tim Kientzle [Sat, 15 Oct 2011 17:19:30 +0000 (13:19 -0400)] 
Merge r3247 from trunk: Clear errors before returning
from archive_read_support_format_all()

SVN-Revision: 3735

14 years agoMerge r1989: archive_clear_error should set errno to 0.
Tim Kientzle [Sat, 15 Oct 2011 17:17:43 +0000 (13:17 -0400)] 
Merge r1989:  archive_clear_error should set errno to 0.

SVN-Revision: 3734

14 years agoFix a typo that prevented CommonCrypto (part of libSystem) from being
Tim Kientzle [Wed, 5 Oct 2011 05:01:31 +0000 (01:01 -0400)] 
Fix a typo that prevented CommonCrypto (part of libSystem) from being
properly used on Darwin.

Note that Mac OS X 10.7 has deprecated OpenSSL in favor of CommonCrypto.
We still pick up RIPEMD160 from OpenSSL if it's available, which breaks
strict warnings because of the deprecation.  This seems unavoidable;
CommonCrypto doesn't seem to support RIPEMD160.  To avoid the deprecation
warning on Mac OS X 10.7, disable the OpenSSL checks.  That loses
RIPEMD160 support, though.

SVN-Revision: 3733

14 years agoIssue 182. Merge r3702 from trunk.
Michihiro NAKAJIMA [Sun, 25 Sep 2011 06:53:12 +0000 (02:53 -0400)] 
Issue 182. Merge r3702 from trunk.

SVN-Revision: 3731

14 years agoFix issue 174; largely merge r3692 from trunk.
Michihiro NAKAJIMA [Sun, 25 Sep 2011 06:43:10 +0000 (02:43 -0400)] 
Fix issue 174; largely merge r3692 from trunk.
Correctly handle Windows style full-path names, which are
leading \\.\ or \\?\ or \\?\\UNC\ or \\?\Volume{GUID}\ or C:\,
in archive_write_disk.c.

SVN-Revision: 3730

14 years agoProvide slightly more descriptive summary.
Andres Mejia [Sat, 24 Sep 2011 17:33:25 +0000 (13:33 -0400)] 
Provide slightly more descriptive summary.

SVN-Revision: 3729

14 years agoMake note that seek support is in the works.
Andres Mejia [Sat, 24 Sep 2011 17:33:20 +0000 (13:33 -0400)] 
Make note that seek support is in the works.

SVN-Revision: 3728

14 years agoRemove a comment that describes how libarchive 1.x used to work.
Tim Kientzle [Sat, 24 Sep 2011 03:53:39 +0000 (23:53 -0400)] 
Remove a comment that describes how libarchive 1.x used to work.
It's no longer even moderately interesting.

SVN-Revision: 3726

14 years agoFix the iconv probe and actually use the result.
Tim Kientzle [Fri, 23 Sep 2011 04:48:23 +0000 (00:48 -0400)] 
Fix the iconv probe and actually use the result.
Thiss fixes the autotool build on Mac OS X 10.6.

SVN-Revision: 3725

14 years agoIssue 185: Include the contributed Zip in the regression test,
Tim Kientzle [Tue, 20 Sep 2011 05:21:22 +0000 (01:21 -0400)] 
Issue 185:  Include the contributed Zip in the regression test,
include this and another recently added test file to the distribution
described by Makefile.am.

SVN-Revision: 3724

14 years agoMerge r3722 from trunk: Fixes extraction of Zip entries that use
Tim Kientzle [Mon, 19 Sep 2011 04:58:34 +0000 (00:58 -0400)] 
Merge r3722 from trunk:  Fixes extraction of Zip entries that use
length-at-end without specifying either the compressed or uncompressed
length.  In particular, fixes bsdtar extraction of such files.

SVN-Revision: 3723

14 years agoTest that archive_read_extract works correctly with Zip entries
Tim Kientzle [Mon, 19 Sep 2011 04:54:56 +0000 (00:54 -0400)] 
Test that archive_read_extract works correctly with Zip entries
that use length-at-end.

SVN-Revision: 3722

14 years agoSupport old Info-Zip 'UX' extension. (Needs test.)
Tim Kientzle [Mon, 19 Sep 2011 04:53:54 +0000 (00:53 -0400)] 
Support old Info-Zip 'UX' extension.  (Needs test.)

SVN-Revision: 3721

14 years agoPrint out the expected contents of a file
Tim Kientzle [Mon, 19 Sep 2011 04:52:29 +0000 (00:52 -0400)] 
Print out the expected contents of a file
for failing tests.

SVN-Revision: 3720

14 years agoMake untar.c build correctly with libarchive 3.0.
Tim Kientzle [Sun, 18 Sep 2011 21:50:00 +0000 (17:50 -0400)] 
Make untar.c build correctly with libarchive 3.0.

SVN-Revision: 3719

14 years agoRemove duplicate entry of -lxml2 in LIBS variable.
Andres Mejia [Sun, 18 Sep 2011 03:24:00 +0000 (23:24 -0400)] 
Remove duplicate entry of -lxml2 in LIBS variable.
Also fixes duplicate entry in libarchive.pc.

SVN-Revision: 3715

14 years agoRemove duplicate libraries in $LIBS variable.
Andres Mejia [Sun, 18 Sep 2011 03:13:58 +0000 (23:13 -0400)] 
Remove duplicate libraries in $LIBS variable.
Fixes duplicates that appear in libarchive.pc.

SVN-Revision: 3714

14 years agoBuild tar and cpio when both ENABLE_TAR and ENABLE_CPIO are OFF on CMake build system.
Michihiro NAKAJIMA [Thu, 15 Sep 2011 08:34:02 +0000 (04:34 -0400)] 
Build tar and cpio when both ENABLE_TAR and ENABLE_CPIO are OFF on CMake build system.

SVN-Revision: 3713

14 years agoFix style.
Michihiro NAKAJIMA [Wed, 14 Sep 2011 09:41:24 +0000 (05:41 -0400)] 
Fix style.

SVN-Revision: 3712

14 years agoWe cannot get proper an xml output from an earlier version of libxml.
Michihiro NAKAJIMA [Wed, 14 Sep 2011 09:34:26 +0000 (05:34 -0400)] 
We cannot get proper an xml output from an earlier version of libxml.
There may be a way to work around it, but right now I cannot find out how to.
I have to, therefore, disable the xar writer if libxlm version is less than 2.7.3,
which version Mac Snow Leopard has.

SVN-Revision: 3711

14 years agoSet explicit unused arguments in order to avoid several warnings about it, which...
Michihiro NAKAJIMA [Wed, 14 Sep 2011 08:58:16 +0000 (04:58 -0400)] 
Set explicit unused arguments in order to avoid several warnings about it, which some C compiler complain about.

SVN-Revision: 3710

14 years agoMake sure a local variable 'parent' is not NULL when access to its member.
Michihiro NAKAJIMA [Wed, 14 Sep 2011 07:41:17 +0000 (03:41 -0400)] 
Make sure a local variable 'parent' is not NULL when access to its member.

SVN-Revision: 3709

14 years agoRemove unused __la_chdir and related definitions in archive_windows.h.
Michihiro NAKAJIMA [Tue, 13 Sep 2011 09:10:47 +0000 (05:10 -0400)] 
Remove unused __la_chdir and related definitions in archive_windows.h.

SVN-Revision: 3708

14 years agoErase \r from archive_read_support_format_mtree.c.
Michihiro NAKAJIMA [Tue, 13 Sep 2011 09:00:39 +0000 (05:00 -0400)] 
Erase \r from archive_read_support_format_mtree.c.

SVN-Revision: 3707

14 years agoOn Windows, make sure an exit status is initialized in case something error happens
Michihiro NAKAJIMA [Tue, 13 Sep 2011 08:37:35 +0000 (04:37 -0400)] 
On Windows, make sure an exit status is initialized in case something error happens
and exit __la_waitpid before we normally invoke GetExitCodeProcess.

SVN-Revision: 3706

14 years agoAdd archive_read_disk_open_w that is a wchar_t version of archive_read_disk_open.
Michihiro NAKAJIMA [Tue, 13 Sep 2011 08:20:15 +0000 (04:20 -0400)] 
Add archive_read_disk_open_w that is a wchar_t version of archive_read_disk_open.

SVN-Revision: 3705

14 years agoFix test_read_format_rar failure on Mac.
Michihiro NAKAJIMA [Tue, 13 Sep 2011 08:04:42 +0000 (04:04 -0400)] 
Fix test_read_format_rar failure on Mac.

SVN-Revision: 3704

14 years agoFix a wrong memory allocation in converting NFC characters on Mac.
Michihiro NAKAJIMA [Mon, 12 Sep 2011 12:29:43 +0000 (08:29 -0400)] 
Fix a wrong memory allocation in converting NFC characters on Mac.

SVN-Revision: 3703

14 years agoIssue 182.
Michihiro NAKAJIMA [Mon, 12 Sep 2011 07:39:51 +0000 (03:39 -0400)] 
Issue 182.
Decide whether ZLIB_WINAPI is needed at configuration time, because there are two types of zlib
on Windows platform: one is built on Visual Studio, which requires ZLIB_WINAPI for use; other is
build on msys, which does not require ZLIB_WINAPI, GnuWin32 project provide such zlib.

SVN-Revision: 3702

14 years agoMore tweaks to mtree numeric range tests.
Tim Kientzle [Sun, 11 Sep 2011 18:38:39 +0000 (14:38 -0400)] 
More tweaks to mtree numeric range tests.

SVN-Revision: 3701