]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
13 years agoAdd silent build rules for lrzip.
Con Kolivas [Mon, 23 Apr 2012 01:04:13 +0000 (11:04 +1000)] 
Add silent build rules for lrzip.

13 years agoAdd basic archive read and write filter support for lrzip.
Con Kolivas [Mon, 23 Apr 2012 01:03:39 +0000 (11:03 +1000)] 
Add basic archive read and write filter support for lrzip.

13 years agoFix the setup_acls placeholder used on systems where we don't have
Tim Kientzle [Sat, 21 Apr 2012 19:40:15 +0000 (12:40 -0700)] 
Fix the setup_acls placeholder used on systems where we don't have
system-dependent ACL support yet.

13 years agoResuscitate the old NFS4 support code and make it work on FreeBSD-CURRENT.
Tim Kientzle [Mon, 9 Apr 2012 05:06:43 +0000 (22:06 -0700)] 
Resuscitate the old NFS4 support code and make it work on FreeBSD-CURRENT.
This includes a new test that archive_write_disk and archive_read_disk
consistently read/write ACL information to/from disk.
This new test currently passes on FreeBSD-CURRENT.

13 years agoFix the dereference of null pointer, which Clang Static Analyzer complained.
Michihiro NAKAJIMA [Fri, 6 Apr 2012 03:54:47 +0000 (12:54 +0900)] 
Fix the dereference of null pointer, which Clang Static Analyzer complained.

13 years agoFix a memory leak.
Michihiro NAKAJIMA [Fri, 6 Apr 2012 03:40:46 +0000 (12:40 +0900)] 
Fix a memory leak.

13 years agoAvoid a warning that Clang Static Analyzer complained
Michihiro NAKAJIMA [Fri, 6 Apr 2012 03:38:47 +0000 (12:38 +0900)] 
Avoid a warning that Clang Static Analyzer complained
"Access to field 'unconsumed' results in a dereference of a null
 pointer (loaded from field 'entry_cfdata."

13 years agoRemove unneeded code.
Michihiro NAKAJIMA [Fri, 6 Apr 2012 03:34:57 +0000 (12:34 +0900)] 
Remove unneeded code.

13 years agoFix the build failure of libarchive_test on Visual Studio.
Michihiro NAKAJIMA [Thu, 5 Apr 2012 06:59:53 +0000 (15:59 +0900)] 
Fix the build failure of libarchive_test on Visual Studio.

13 years agoFix build failure on Visual Studio.
Michihiro NAKAJIMA [Wed, 4 Apr 2012 08:52:05 +0000 (17:52 +0900)] 
Fix build failure on Visual Studio.

13 years agoFixes for GCC 4.7.0
Dan McGee [Tue, 27 Mar 2012 22:22:40 +0000 (17:22 -0500)] 
Fixes for GCC 4.7.0

Fixes the following compile error exposed with GCC 4.7.0:

    libarchive/archive_string.c: In function 'cesu8_to_unicode':
    libarchive/archive_string.c:2450:11: error: 'wc' may be used uninitialized in this function [-Werror=uninitialized]
    cc1: all warnings being treated as errors

As well as a test failure that depends on signed integer wraparound,
which is a very bad thing to do in C [1]. Mark the intermediate result
as volatile to prevent the compiler optimizing away the arithmetic and
the logical test.

[1] http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Signed-Overflow-Examples.html

13 years agoInitialize the buffer used for FIEMAP to avoid the error messages
Michihiro NAKAJIMA [Mon, 2 Apr 2012 09:29:48 +0000 (18:29 +0900)] 
Initialize the buffer used for FIEMAP to avoid the error messages
valgrind complains about.

13 years agoOnly look for libmd if OpenSSL is not present.
Tim Kientzle [Mon, 2 Apr 2012 04:06:23 +0000 (21:06 -0700)] 
Only look for libmd if OpenSSL is not present.

In particular, this prevents us from trying to link
both on FreeBSD.

13 years agoMerge pull request #2 from amejia1/multivolume
Tim Kientzle [Wed, 28 Mar 2012 05:26:50 +0000 (22:26 -0700)] 
Merge pull request #2 from amejia1/multivolume

Multivolume File Read Support

13 years agoMerge pull request #11 from toofishes/iso9660
Tim Kientzle [Wed, 28 Mar 2012 05:05:51 +0000 (22:05 -0700)] 
Merge pull request #11 from toofishes/iso9660

Iso9660 fixes and cleanups

13 years agoRemove developer flags from release. v3.0.4
Andres Mejia [Wed, 28 Mar 2012 03:39:00 +0000 (23:39 -0400)] 
Remove developer flags from release.

13 years agoLibarchive 3.0.4.
Tim Kientzle [Wed, 28 Mar 2012 03:27:07 +0000 (20:27 -0700)] 
Libarchive 3.0.4.

13 years agoRemove fallthough-based logic from iso9660 reader 11/head
Dan McGee [Wed, 15 Feb 2012 16:58:23 +0000 (10:58 -0600)] 
Remove fallthough-based logic from iso9660 reader

This simplifies the logic quite a bit, cuts down on code size, and
follows the principle of least surprise.

13 years agoFix segfault in iso9660 reader
Dan McGee [Tue, 27 Mar 2012 22:06:32 +0000 (17:06 -0500)] 
Fix segfault in iso9660 reader

Some odd ISO images do some funny things with RockRidge and Joliet data.
In this particular case, Joliet is used on the CD image, but the first
directory record has no RockRidge data. However, subsequent directory
entries (in the Joliet volume descriptor!) have RockRidge data attached,
although what is noticeably missing are type "NM" or name entries.

This causes seenRockridge to get flipped on, which makes the bad
assumption that seenJoliet is false.  This means that when we reach the
code searching for the "rr_moved" special file, we strcmp() against NULL
because our filename is really in file->utf16be_bytes.

This is by far the easiest fix (and likely most correct fix) to this
madness; I have no idea whether a UTF-16 encoded "rr_moved" file can
even exist with whatever mastering software was used on this ISO.

Also note that if you explicitly disable Joliet processing, you get a
very different file listing on this ISO; apparently this is a cleaver
way to hide files from prying eyes in the Windows world:

    $ ./bsdtar -t --options 'iso9660:joliet' -f example.iso | wc -l
    24
    $ ./bsdtar -t --options 'iso9660:!joliet' -f example.iso | wc -l
    3060

13 years agoUse memcmp to find SP extension bytes
Dan McGee [Tue, 27 Mar 2012 22:06:10 +0000 (17:06 -0500)] 
Use memcmp to find SP extension bytes

13 years agoMerge master into release.
Tim Kientzle [Mon, 26 Mar 2012 04:03:35 +0000 (21:03 -0700)] 
Merge master into release.

13 years agoImplement support for reading multivolume RAR archive files. 2/head
Andres Mejia [Fri, 24 Feb 2012 16:05:00 +0000 (11:05 -0500)] 
Implement support for reading multivolume RAR archive files.

13 years agoImplement support for reading from multiple data objects as one large stream.
Andres Mejia [Fri, 24 Feb 2012 15:57:20 +0000 (10:57 -0500)] 
Implement support for reading from multiple data objects as one large stream.
This enables support for reading archives split using the split utility.

13 years agoFix a compiler warning about redundant 'r' declaration.
Tim Kientzle [Fri, 23 Mar 2012 06:27:24 +0000 (23:27 -0700)] 
Fix a compiler warning about redundant 'r' declaration.

13 years agoChange the default permissions of the regular files in CAB and 7-Zip archives to...
Michihiro NAKAJIMA [Sat, 24 Mar 2012 12:49:14 +0000 (21:49 +0900)] 
Change the default permissions of the regular files in CAB and 7-Zip archives to 0666 as Zip reader.

13 years agoIssue 253: Default to 0666 permissions on files, like Info-Zip does.
Tim Kientzle [Fri, 23 Mar 2012 06:32:23 +0000 (23:32 -0700)] 
Issue 253:  Default to 0666 permissions on files, like Info-Zip does.

13 years agoFix a compiler warning about redundant 'r' declaration.
Tim Kientzle [Fri, 23 Mar 2012 06:27:24 +0000 (23:27 -0700)] 
Fix a compiler warning about redundant 'r' declaration.

13 years agoMerge from master branch.
Michihiro NAKAJIMA [Thu, 22 Mar 2012 11:37:43 +0000 (20:37 +0900)] 
Merge from master branch.
 - Use memcpy when copying an uncompressed block for CAB reader performance.
 - Improve the listing performance of CAB reader; Do not decode compressed
   data until archive_read_data* is invoked.

13 years agoImprove the listing performance of CAB reader; Do not decode compressed data
Michihiro NAKAJIMA [Thu, 22 Mar 2012 13:57:16 +0000 (22:57 +0900)] 
Improve the listing performance of CAB reader; Do not decode compressed data
until archive_read_data* is invoked.

13 years agoUse memcpy when copying an uncompressed block for CAB reader performance.
Michihiro NAKAJIMA [Thu, 22 Mar 2012 11:37:43 +0000 (20:37 +0900)] 
Use memcpy when copying an uncompressed block for CAB reader performance.

13 years agoIssue 250:problem extracting from CAB file.
Michihiro NAKAJIMA [Sat, 17 Mar 2012 06:43:55 +0000 (15:43 +0900)] 
Issue 250:problem extracting from CAB file.
 - Do not clear ds->rbytes_avail when coming back to ST_RD_R0, ST_RD_R1
   and ST_RD_R2 statuses with a full of compressed data.
 - Correctly skip 16 bits when there is no current bits stream data.

13 years agoMerge pull request #10 from kientzle/c6508ec53bc0bfdd176069f2e9a37fb590328dc6
Tim Kientzle [Wed, 21 Mar 2012 05:32:10 +0000 (22:32 -0700)] 
Merge pull request #10 from kientzle/c6508ec53bc0bfdd176069f2e9a37fb590328dc6

Update some manpages

13 years agoAdd some mention of new formats to libarchive-formats.5 and libarchive.3 10/head
Tim Kientzle [Wed, 21 Mar 2012 04:42:34 +0000 (21:42 -0700)] 
Add some mention of new formats to libarchive-formats.5 and libarchive.3
manpages.

13 years agoIssue 250:problem extracting from CAB file.
Michihiro NAKAJIMA [Sat, 17 Mar 2012 06:43:55 +0000 (15:43 +0900)] 
Issue 250:problem extracting from CAB file.
 - Do not clear ds->rbytes_avail when coming back to ST_RD_R0, ST_RD_R1
   and ST_RD_R2 statuses with a full of compressed data.
 - Correctly skip 16 bits when there is no current bits stream data.

13 years agoMerge pull request #9 from ondrejholy/master
Tim Kientzle [Tue, 20 Mar 2012 15:31:21 +0000 (08:31 -0700)] 
Merge pull request #9 from ondrejholy/master

archive_write_add_filter()

13 years agoAn additional fix of issue 249.
Michihiro NAKAJIMA [Tue, 20 Mar 2012 10:40:10 +0000 (19:40 +0900)] 
An additional fix of issue 249.
 - Do not consume read bytes more than the entry used when reading
   an uncompressed CAB file.

13 years agoAn additional fix of issue 249.
Michihiro NAKAJIMA [Tue, 20 Mar 2012 10:40:10 +0000 (19:40 +0900)] 
An additional fix of issue 249.
 - Do not consume read bytes more than the entry used when reading
   a uncompressed CAB file.

13 years agoFix the bug which the patch for issue 249 made, which bug is that
Michihiro NAKAJIMA [Tue, 20 Mar 2012 04:14:40 +0000 (13:14 +0900)] 
Fix the bug which the patch for issue 249 made, which bug is that
sometimes sumcheck error hppens when listing a CAB file whose
compression type is none.
 - Do not consume extra bytes when the compression type is none.
 - Improve test_read_format_cab to just read file names, not read
   file contents such as "bsdtar tf".

13 years agoImprove test_read_format_cab to just read file names, not read file contents such...
Michihiro NAKAJIMA [Tue, 20 Mar 2012 04:45:07 +0000 (13:45 +0900)] 
Improve test_read_format_cab to just read file names, not read file contents such as "bsdtar tf".

13 years agoFix the bug which the patch for issue 249 made, which bug is that
Michihiro NAKAJIMA [Tue, 20 Mar 2012 04:14:40 +0000 (13:14 +0900)] 
Fix the bug which the patch for issue 249 made, which bug is that
sometimes sumcheck error hppens when listing a CAB file whose
compression type is none.
Do not consume extra bytes when the compression type is none.

13 years agoSeparate test_archive_string_normalization into NFC version and NFD version.
Michihiro NAKAJIMA [Mon, 19 Mar 2012 09:35:07 +0000 (18:35 +0900)] 
Separate test_archive_string_normalization into NFC version and NFD version.

13 years agoClean up: style fix and remove unneeded statements and definitions.
Michihiro NAKAJIMA [Wed, 4 Jan 2012 06:52:24 +0000 (01:52 -0500)] 
Clean up: style fix and remove unneeded statements and definitions.

SVN-Revision: 4086

13 years agoAvoid the memory leak error which Clang Static Analyzer pointed out but actually...
Michihiro NAKAJIMA [Mon, 27 Feb 2012 09:56:19 +0000 (18:56 +0900)] 
Avoid the memory leak error which Clang Static Analyzer pointed out but actually it not memory leak.

13 years agoFix build failure on MSYS: rename a variable name 'time' to 't' since
Michihiro NAKAJIMA [Wed, 22 Feb 2012 06:49:22 +0000 (15:49 +0900)] 
Fix build failure on MSYS: rename a variable name 'time' to 't' since
that 'time' shadows a global declaration.

13 years agoRename isoent_rr_move_dir parameter isoent => curent
Brad King [Wed, 11 Jan 2012 13:16:05 +0000 (08:16 -0500)] 
Rename isoent_rr_move_dir parameter isoent => curent

The PGI compiler confuses parameter name "isoent" with "struct isoent".
Rename the parameter to "curent" to avoid confusion.

SVN-Revision: 4136

13 years agoReplace integer constant LL suffix with cast to int64_t
Brad King [Wed, 11 Jan 2012 13:15:14 +0000 (08:15 -0500)] 
Replace integer constant LL suffix with cast to int64_t

The LL suffix is not portable.  Use an explicit cast instead.

SVN-Revision: 4127

13 years agoRename read_open_memory2 to read_open_memory_minimal, which is
Tim Kientzle [Mon, 23 Jan 2012 05:06:04 +0000 (00:06 -0500)] 
Rename read_open_memory2 to read_open_memory_minimal, which is
a bit more descriptive.

SVN-Revision: 4192

13 years agoUse pattern matching to find a test. It's useful to check a certain format or filter.
Michihiro NAKAJIMA [Sun, 18 Mar 2012 12:23:48 +0000 (21:23 +0900)] 
Use pattern matching to find a test. It's useful to check a certain format or filter.

13 years agoAvoid possibility to pass zero to the first argument of calloc().
Michihiro NAKAJIMA [Wed, 11 Jan 2012 01:02:23 +0000 (20:02 -0500)] 
Avoid possibility to pass zero to the first argument of calloc().
Clang Static Analyzer complaned of that.

SVN-Revision: 4121

13 years agoMerge pull request #8 from kientzle/fix-email
Tim Kientzle [Sun, 18 Mar 2012 06:42:15 +0000 (23:42 -0700)] 
Merge pull request #8 from kientzle/fix-email

People with questions should go to the mailing list, not to me.

13 years agoPeople with questions should go to the mailing list, not 8/head
Tim Kientzle [Sun, 18 Mar 2012 06:16:57 +0000 (23:16 -0700)] 
People with questions should go to the mailing list, not
direct to me.

13 years agoUpdate URL section in test files for RPMs.
Andres Mejia [Sun, 5 Feb 2012 20:10:15 +0000 (15:10 -0500)] 
Update URL section in test files for RPMs.

13 years agoIssue 234: Fix typos in comments
Tim Kientzle [Sun, 29 Jan 2012 18:18:35 +0000 (13:18 -0500)] 
Issue 234: Fix typos in comments

SVN-Revision: 4214

13 years agoRemove duplicate SYNOPSIS section.
Andres Mejia [Thu, 2 Feb 2012 22:36:43 +0000 (17:36 -0500)] 
Remove duplicate SYNOPSIS section.

SVN-Revision: 4228

13 years agoDeclare mbstate_t and wcrtomb for Borland
Brad King [Wed, 11 Jan 2012 13:15:09 +0000 (08:15 -0500)] 
Declare mbstate_t and wcrtomb for Borland

The Borland C++ 5.81 runtime library provides wcrtomb but only the C++
header <cwchar> actually declares the API.  Since this is C code we
cannot use the header, so declare it ourselves.

SVN-Revision: 4126

13 years agoImplement custom lseek for Borland
Brad King [Wed, 11 Jan 2012 13:15:03 +0000 (08:15 -0500)] 
Implement custom lseek for Borland

Restore Windows 64-bit lseek removed by upstream svn revision 3826
(Cast away __la_lseek(), use _lseeki64() instead, 2011-11-21).  We
need it on Borland.

SVN-Revision: 4125

13 years agoAdd library section for all library function manpages.
Andres Mejia [Thu, 2 Feb 2012 22:36:25 +0000 (17:36 -0500)] 
Add library section for all library function manpages.

SVN-Revision: 4227

13 years agoRemove LIBRARY section from manpages.
Andres Mejia [Thu, 2 Feb 2012 00:46:25 +0000 (19:46 -0500)] 
Remove LIBRARY section from manpages.
Using .Lb seems redundant to what NAME section already provides.

SVN-Revision: 4225

13 years agoFix typo in CheckFileOffsetBits
Brad King [Wed, 11 Jan 2012 13:14:57 +0000 (08:14 -0500)] 
Fix typo in CheckFileOffsetBits

s/Cheking/Checking/

Author: Rolf Eike Beer <eike@sf-mail.de>

SVN-Revision: 4124

13 years agoAdd generated dist tarball to .gitignore.
Andres Mejia [Sun, 5 Feb 2012 21:04:37 +0000 (16:04 -0500)] 
Add generated dist tarball to .gitignore.

13 years agoAdd generated doc files to .gitignore.
Andres Mejia [Sun, 5 Feb 2012 21:02:35 +0000 (16:02 -0500)] 
Add generated doc files to .gitignore.

13 years agoAdd generated files from cmake to .gitignore.
Andres Mejia [Sun, 5 Feb 2012 19:23:31 +0000 (14:23 -0500)] 
Add generated files from cmake to .gitignore.

13 years agoAdd .gitignore file.
Andres Mejia [Sun, 5 Feb 2012 19:19:10 +0000 (14:19 -0500)] 
Add .gitignore file.

13 years agoAdd a description of 7-Zip into README.
Michihiro NAKAJIMA [Thu, 9 Feb 2012 19:49:06 +0000 (04:49 +0900)] 
Add a description of 7-Zip into README.

13 years agoUpdate README, pointing to new home for development and issue tracking.
Andres Mejia [Sun, 5 Feb 2012 20:04:09 +0000 (15:04 -0500)] 
Update README, pointing to new home for development and issue tracking.

13 years agoRename some internal functions as other related functions.
Michihiro NAKAJIMA [Fri, 16 Mar 2012 07:08:26 +0000 (16:08 +0900)] 
Rename some internal functions as other related functions.
  archive_strcpy_in_locale ==> archive_strcpy_l
  archive_strncpy_in_locale ==> archive_strncpy_l
  archive_strncat_in_locale ==> archive_strncat_l

13 years agoSimplify creating an iconv object on Mac; stop using UTF-8-MAC charset to
Michihiro NAKAJIMA [Fri, 16 Mar 2012 06:41:36 +0000 (15:41 +0900)] 
Simplify creating an iconv object on Mac; stop using UTF-8-MAC charset to
iconv, use a common name, UTF-8, and normalize the string instead.

13 years agoAllow verbosity level for test programs to be set via environment variables.
Andres Mejia [Fri, 16 Mar 2012 20:02:26 +0000 (16:02 -0400)] 
Allow verbosity level for test programs to be set via environment variables.

13 years agoImpelment Unicode normalization Form D in libarchive itself in order not to rely...
Michihiro NAKAJIMA [Thu, 15 Mar 2012 09:47:19 +0000 (18:47 +0900)] 
Impelment Unicode normalization Form D in libarchive itself in order not to rely on CoreServices framework on Mac OS.
It passes all NormalizationTest.txt released The Unicode Consortium(http://www.unicode.org).

13 years agoIssue 249: Uncompressed CAB fails to read subfile when archive has certain structure.
Michihiro NAKAJIMA [Thu, 15 Mar 2012 05:49:37 +0000 (14:49 +0900)] 
Issue 249: Uncompressed CAB fails to read subfile when archive has certain structure.

13 years agoIssue 249: Uncompressed CAB fails to read subfile when archive has certain structure.
Michihiro NAKAJIMA [Thu, 15 Mar 2012 05:49:37 +0000 (14:49 +0900)] 
Issue 249: Uncompressed CAB fails to read subfile when archive has certain structure.

13 years agoFix issue 238.
Michihiro NAKAJIMA [Sun, 5 Feb 2012 19:51:16 +0000 (04:51 +0900)] 
Fix issue 238.
Skip the setup sparse on linux without a check of errno if
ioctl(,FS_IOC_FIEMAP,) failed because the errno is not fixed
, for example, some file system returns ENOTTY, another returns
EOPNOTSUPP, or EINVAL and so on. We cannot decide what errno
exactly indicates an unsupported error.

13 years agoSimlify a string conversion from WCS to MBS on Windows.
Michihiro NAKAJIMA [Mon, 12 Mar 2012 11:02:29 +0000 (20:02 +0900)] 
Simlify a string conversion from WCS to MBS on Windows.

13 years agoMove a definition of HAVE_LINUX_TYPES_H in build/cmake/config.h.in after HAVE_LINUX_M...
Michihiro NAKAJIMA [Sun, 11 Mar 2012 15:00:59 +0000 (00:00 +0900)] 
Move a definition of HAVE_LINUX_TYPES_H in build/cmake/config.h.in after HAVE_LINUX_MAGIC_H to be in alphabetical order.

13 years agoAdd a check of linux/types.h into configure.ac, which has already been added
Michihiro NAKAJIMA [Sun, 11 Mar 2012 14:56:24 +0000 (23:56 +0900)] 
Add a check of linux/types.h into configure.ac, which has already been added
into CMakeLists.txt.

13 years agoSimplify a check whether the current filesystem libarchive_test is running
Michihiro NAKAJIMA [Sun, 11 Mar 2012 14:26:47 +0000 (23:26 +0900)] 
Simplify a check whether the current filesystem libarchive_test is running
supports FIEMAP on linux; do not check an errno ioctl() returns to use the
same logic to a check of sparse support as libarchive does.

13 years agoMove a definition of HAVE_LINUX_TYPES_H in build/cmake/config.h.in after HAVE_LINUX_M...
Michihiro NAKAJIMA [Sun, 11 Mar 2012 15:00:59 +0000 (00:00 +0900)] 
Move a definition of HAVE_LINUX_TYPES_H in build/cmake/config.h.in after HAVE_LINUX_MAGIC_H to be in alphabetical order.

13 years agoAdd a check of linux/types.h into configure.ac, which has already been added
Michihiro NAKAJIMA [Sun, 11 Mar 2012 14:56:24 +0000 (23:56 +0900)] 
Add a check of linux/types.h into configure.ac, which has already been added
into CMakeLists.txt.

13 years agoSimplify a check whether the current filesystem libarchive_test is running
Michihiro NAKAJIMA [Sun, 11 Mar 2012 14:26:47 +0000 (23:26 +0900)] 
Simplify a check whether the current filesystem libarchive_test is running
supports FIEMAP on linux; do not check an errno ioctl() returns to use the
same logic to a check of sparse support as libarchive does.

13 years agoAvoid the error which Clang Static Analyzer says "Function call argument is an uninit...
Michihiro NAKAJIMA [Tue, 28 Feb 2012 10:06:38 +0000 (19:06 +0900)] 
Avoid the error which Clang Static Analyzer says "Function call argument is an uninitialized value" but actually it might not happen.

13 years agoFix a long standing warning at archive_ppmd7.c on Visual Studio.
Michihiro NAKAJIMA [Sun, 19 Feb 2012 00:06:28 +0000 (09:06 +0900)] 
Fix a long standing warning at archive_ppmd7.c on Visual Studio.

13 years agoAvoid a miss detection of iconv prototype after we started using
Michihiro NAKAJIMA [Wed, 22 Feb 2012 07:19:16 +0000 (16:19 +0900)] 
Avoid a miss detection of iconv prototype after we started using
CMAKE_C_FLAGS_DEBUG.

13 years agoFix crypto checks in cmake builds.
Andres Mejia [Mon, 6 Feb 2012 00:30:37 +0000 (19:30 -0500)] 
Fix crypto checks in cmake builds.

13 years agoInclude linux/types.h before linux/fiemap.h
Brad King [Wed, 11 Jan 2012 13:15:59 +0000 (08:15 -0500)] 
Include linux/types.h before linux/fiemap.h

Some Linux API versions do not perform this inclusion automatically,
so types like __u64 needed by the latter are not available.

SVN-Revision: 4135

13 years agoDefine _XOPEN_SOURCE=500 on HP-UX
Brad King [Wed, 11 Jan 2012 13:15:53 +0000 (08:15 -0500)] 
Define _XOPEN_SOURCE=500 on HP-UX

The HP-UX <wchar.h> header provides 'mbstate_t' in C89/C90 mode only if
_XOPEN_SOURCE is defined to exactly 500.  Type 'mbstate_t' was
introduced in C89/C90 Normative Amendment 1, aka C94/C95, adding support
international character sets.  It is part of C99 but not C89/C90.

SVN-Revision: 4134

13 years agoCleanup after ZLIB_WINAPI check
Brad King [Wed, 11 Jan 2012 13:15:49 +0000 (08:15 -0500)] 
Cleanup after ZLIB_WINAPI check

Clear CMAKE_REQUIRED_(INCLUDES|LIBRARIES) so that the rest of the checks
after this one do not try to link zlib.

SVN-Revision: 4133

13 years agoCheck for 'struct statvfs' member 'f_iosize'
Brad King [Wed, 11 Jan 2012 13:15:42 +0000 (08:15 -0500)] 
Check for 'struct statvfs' member 'f_iosize'

Configure the result as definition HAVE_STRUCT_STATVFS_F_IOSIZE and use
the member only if it exists.  At least one platform (IRIX) provides
struct statvfs without this member.

SVN-Revision: 4132

13 years agoFix Windows NT API usage in VS 6
Brad King [Wed, 11 Jan 2012 13:15:25 +0000 (08:15 -0500)] 
Fix Windows NT API usage in VS 6

VS 6 warns verbosely when WINVER >= 0x0500.  Avoid defining WINVER and
_WIN32_WINNT to higher than 0x0400 on VS 6.  Provide missing API
declarations in archive_windows.h when we do not get them from
<windows.h>.  Provide GetVolumePathNameW because VS 6 does not declare
it regardless of the API version.

SVN-Revision: 4129

13 years agoRemove an outdated comment.
Michihiro NAKAJIMA [Thu, 8 Mar 2012 04:16:50 +0000 (13:16 +0900)] 
Remove an outdated comment.

13 years agoProperly reuse rar->filename.
Michihiro NAKAJIMA [Thu, 8 Mar 2012 04:13:53 +0000 (13:13 +0900)] 
Properly reuse rar->filename.

13 years agoIssue 247:Unicode filenames inside RAR not working.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:55:18 +0000 (18:55 +0900)] 
Issue 247:Unicode filenames inside RAR not working.

13 years agoAdd a unicode filename sample for test_read_format_rar for issue 247.
Michihiro NAKAJIMA [Wed, 7 Mar 2012 07:55:47 +0000 (16:55 +0900)] 
Add a unicode filename sample for test_read_format_rar for issue 247.

13 years agoAdditional fix to issue 247(Unicode filenames in RAR).
Michihiro NAKAJIMA [Wed, 7 Mar 2012 04:00:24 +0000 (13:00 +0900)] 
Additional fix to issue 247(Unicode filenames in RAR).

13 years agoIntroduce archive_write_add_fitler() 9/head
Ondrej Holy [Tue, 6 Mar 2012 19:43:27 +0000 (20:43 +0100)] 
Introduce archive_write_add_fitler()
- a convenience function to set the filter based on the code.

13 years agoDo not overwrite CMAKE_BUILD_TYPE if it has already been set.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 03:58:28 +0000 (12:58 +0900)] 
Do not overwrite CMAKE_BUILD_TYPE if it has already been set.
Record CMAKE_BUILD_TYPE in CACHE so that you can edit CMAKE_BUILD_TYPE
easily through GUI.

13 years agoIssue 247:Unicode filenames inside RAR not working.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:55:18 +0000 (18:55 +0900)] 
Issue 247:Unicode filenames inside RAR not working.

13 years agoMove CMAKE_MINIMUM_REQUIRED to the top of CMakeLists.txt to avoid warnings
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:51:19 +0000 (18:51 +0900)] 
Move CMAKE_MINIMUM_REQUIRED to the top of CMakeLists.txt to avoid warnings
on Cygwin.

13 years agoCMakePushCheckState module appeared from CMake 2.8.6.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:38:36 +0000 (18:38 +0900)] 
CMakePushCheckState module appeared from CMake 2.8.6.

13 years agoDo not overwrite CMAKE_BUILD_TYPE if it has already been set.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 03:58:28 +0000 (12:58 +0900)] 
Do not overwrite CMAKE_BUILD_TYPE if it has already been set.
Record CMAKE_BUILD_TYPE in CACHE so that you can edit CMAKE_BUILD_TYPE
easily through GUI.

13 years agoFind out what macro is needed or acceptable to use a external library
Michihiro NAKAJIMA [Mon, 5 Mar 2012 10:30:26 +0000 (19:30 +0900)] 
Find out what macro is needed or acceptable to use a external library
such as zlib on CMake build system On Windows. Because if the library
is static library, a macro must be defined to use it on Windows.