]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
12 years agos/test_write_compress_/test_write_filter_/
Michihiro NAKAJIMA [Mon, 8 Oct 2012 06:36:57 +0000 (15:36 +0900)] 
s/test_write_compress_/test_write_filter_/
So as to match the API names.

12 years agoIntroduce b64encode filter.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 03:38:04 +0000 (12:38 +0900)] 
Introduce b64encode filter.

12 years agoIntroduce uuencode filter.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 00:38:59 +0000 (09:38 +0900)] 
Introduce uuencode filter.

12 years agoFix potential memory leaks found with Clang.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 21:21:49 +0000 (06:21 +0900)] 
Fix potential memory leaks found with Clang.

12 years agoImprove compatibility to uudecode command.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 02:27:52 +0000 (11:27 +0900)] 
Improve compatibility to uudecode command.
Ignore junk data after an end sequence detected.

12 years agoFix decoded data loss in uudecode filter.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 02:02:05 +0000 (11:02 +0900)] 
Fix decoded data loss in uudecode filter.

12 years agoAdd archive_write_add_filter_lzop.c entry into CMakeList.txt.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 11:34:36 +0000 (20:34 +0900)] 
Add archive_write_add_filter_lzop.c entry into CMakeList.txt.

12 years agoSurely skip test_read_filter_lrzip and test_read_filter_lzop when
Michihiro NAKAJIMA [Sun, 7 Oct 2012 11:04:03 +0000 (20:04 +0900)] 
Surely skip test_read_filter_lrzip and test_read_filter_lzop when
the compression commands are not available.

12 years agoarchive_read_support_filter_lrzip and archive_write_add_filter_lrzip
Michihiro NAKAJIMA [Sun, 7 Oct 2012 07:13:17 +0000 (16:13 +0900)] 
archive_read_support_filter_lrzip and archive_write_add_filter_lrzip
should return ARCHIVE_WARN instead of ARCHIVE_OK since those filters
always use an external program, lrzip(1) and other filters do so
if they use an external program instead of implemented code with
the library. It is clear that returning ARCHIVE_WARN means the filter
uses an external program.

12 years agoRename test_compat_lrzip to test_read_filter_lrzip since lrzip reader
Michihiro NAKAJIMA [Sun, 7 Oct 2012 06:52:33 +0000 (15:52 +0900)] 
Rename test_compat_lrzip to test_read_filter_lrzip since lrzip reader
entirely uses an external program, lrzip(1). It is not a compatible test.

12 years agoApply __attribute__((deprecated)) to archive_read_open_file,
Michihiro NAKAJIMA [Sun, 7 Oct 2012 05:50:50 +0000 (14:50 +0900)] 
Apply __attribute__((deprecated)) to archive_read_open_file,
archive_write_open_file, archive_position_compressed,
archive_position_uncompressed, archive_compression_name and
archive_compression.

12 years agoStop using deprecated functions.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 05:33:50 +0000 (14:33 +0900)] 
Stop using deprecated functions.
s/archive_read_open_file/archive_read_open_filename/
s/archive_write_open_file/archive_write_open_filename/

12 years agoStop using deprecated functions. Much remains to be replaced.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 05:05:06 +0000 (14:05 +0900)] 
Stop using deprecated functions. Much remains to be replaced.
s/archive_position_compressed(a)/archive_filter_bytes(a, -1)/

12 years agoStop using deprecated functions. Much remains to be replaced.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 05:01:15 +0000 (14:01 +0900)] 
Stop using deprecated functions. Much remains to be replaced.
s/archive_position_uncompressed(a)/archive_filter_bytes(a, 0)/

12 years agoStop using deprecated functions. Much remains to be replaced.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 04:53:18 +0000 (13:53 +0900)] 
Stop using deprecated functions. Much remains to be replaced.
s/archive_compression_name(/archive_filter_name(/

12 years agoStop using deprecated functions. Much remains to be replaced.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 04:48:48 +0000 (13:48 +0900)] 
Stop using deprecated functions. Much remains to be replaced.
s/archive_compression(/archive_filter_code(/

12 years agoStop using deprecated functions. Much remains to be replaced.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 04:29:29 +0000 (13:29 +0900)] 
Stop using deprecated functions. Much remains to be replaced.
s/archive_write_set_compression_/archive_write_add_filter_/

12 years agoAdd --lrzip option to bsdtar and bsdcpio to use lrzip compression.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 03:56:02 +0000 (12:56 +0900)] 
Add --lrzip option to bsdtar and bsdcpio to use lrzip compression.

12 years agoImprove test_write_compress_lrzip not to use deprecated functions.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 03:39:53 +0000 (12:39 +0900)] 
Improve test_write_compress_lrzip not to use deprecated functions.

12 years agoAdd a test for bsdtar --xz option.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 03:27:25 +0000 (12:27 +0900)] 
Add a test for bsdtar --xz option.

12 years agoAdd a test for bsdtar --lzma option.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 03:20:34 +0000 (12:20 +0900)] 
Add a test for bsdtar --lzma option.

12 years agoAdd support for lzop.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 02:08:12 +0000 (11:08 +0900)] 
Add support for lzop.

12 years agoFix a long standing bug that archive_write_add_filter_program
Michihiro NAKAJIMA [Sun, 7 Oct 2012 02:03:48 +0000 (11:03 +0900)] 
Fix a long standing bug that archive_write_add_filter_program
incorrectly handles the return value of __archive_write_filter().

12 years agoFix a filter name of the writing filter program.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 01:58:43 +0000 (10:58 +0900)] 
Fix a filter name of the writing filter program.

12 years agoRemove __archive_read_program(), use __archive_read_programl() instead.
Michihiro NAKAJIMA [Sat, 6 Oct 2012 07:21:45 +0000 (16:21 +0900)] 
Remove __archive_read_program(), use __archive_read_programl() instead.

12 years agolrunzip is no longer used.
Michihiro NAKAJIMA [Sat, 6 Oct 2012 07:01:09 +0000 (16:01 +0900)] 
lrunzip is no longer used.

12 years agoFix comments on gunzip.
Michihiro NAKAJIMA [Sat, 6 Oct 2012 06:46:42 +0000 (15:46 +0900)] 
Fix comments on gunzip.

12 years agoTweak indent.
Michihiro NAKAJIMA [Sat, 6 Oct 2012 06:40:52 +0000 (15:40 +0900)] 
Tweak indent.

12 years agoRevert part of d1be20168 because gunzip is still used in
Michihiro NAKAJIMA [Sat, 6 Oct 2012 04:34:51 +0000 (13:34 +0900)] 
Revert part of d1be20168 because gunzip is still used in
test_read_filter_program and test_read_filter_program_signature,
which cannot give arguments to the program.

12 years agoGet a full path of a command name for CreateProcess().
Michihiro NAKAJIMA [Sat, 6 Oct 2012 04:20:45 +0000 (13:20 +0900)] 
Get a full path of a command name for CreateProcess().

12 years agoFix a cause of segmentation fault in case of creating a child
Michihiro NAKAJIMA [Fri, 5 Oct 2012 05:28:02 +0000 (14:28 +0900)] 
Fix a cause of segmentation fault in case of creating a child
process failed. It occured when archive_write_close() was called
after an opening filter process failed.

12 years agoRename test_read_uu.c to test_read_filter_uudecode.c, and
Michihiro NAKAJIMA [Fri, 5 Oct 2012 03:33:30 +0000 (12:33 +0900)] 
Rename test_read_uu.c to test_read_filter_uudecode.c, and
divide test_read_uu to test_read_filter_uudecode and
test_read_filter_uudecode_base64.

12 years agoRename test_read_compress_program.c to test_read_filter_program.c
Michihiro NAKAJIMA [Fri, 5 Oct 2012 03:00:26 +0000 (12:00 +0900)] 
Rename test_read_compress_program.c to test_read_filter_program.c

12 years agoAvoid test_read_format_cab failure if no zlib.
Michihiro NAKAJIMA [Fri, 5 Oct 2012 02:46:23 +0000 (11:46 +0900)] 
Avoid test_read_format_cab failure if no zlib.

12 years agoWhen zlib is not available, use "gzip -d" insted of gunzip
Michihiro NAKAJIMA [Fri, 5 Oct 2012 02:33:14 +0000 (11:33 +0900)] 
When zlib is not available, use "gzip -d" insted of gunzip
because gzip is widely available than gunzip is.

12 years agoUse -q option to lrzip to be quiet.
Michihiro NAKAJIMA [Fri, 5 Oct 2012 02:07:58 +0000 (11:07 +0900)] 
Use -q option to lrzip to be quiet.

12 years agoAvoid infinity wait in ReadFile during running an external program as
Michihiro NAKAJIMA [Fri, 5 Oct 2012 01:54:38 +0000 (10:54 +0900)] 
Avoid infinity wait in ReadFile during running an external program as
decoding filter on Windows.

12 years agoMake a filter program be called with its arguments.
Michihiro NAKAJIMA [Thu, 4 Oct 2012 00:18:30 +0000 (09:18 +0900)] 
Make a filter program be called with its arguments.

12 years agoMake configure detect ARCHIVE_CRYPTO_*_WIN on mingw.
Michihiro NAKAJIMA [Thu, 4 Oct 2012 03:12:22 +0000 (12:12 +0900)] 
Make configure detect ARCHIVE_CRYPTO_*_WIN on mingw.

12 years agoFix build failure on mingw32 for x86-64.
Michihiro NAKAJIMA [Thu, 4 Oct 2012 01:07:30 +0000 (10:07 +0900)] 
Fix build failure on mingw32 for x86-64.

12 years agoFix build failure on mingw32.
Michihiro NAKAJIMA [Thu, 4 Oct 2012 00:41:57 +0000 (09:41 +0900)] 
Fix build failure on mingw32.

12 years agoRemove unnecessary build condition for a use of
Michihiro NAKAJIMA [Wed, 3 Oct 2012 11:51:07 +0000 (20:51 +0900)] 
Remove unnecessary build condition for a use of
__archive_create_child().  It has worked well on both POSIX
system and non-POSIX system since libarchive 2.7.0.

12 years agoAdd extraction tests for compressed files to bsdtar_test.
Michihiro NAKAJIMA [Wed, 3 Oct 2012 06:16:35 +0000 (15:16 +0900)] 
Add extraction tests for compressed files to bsdtar_test.

12 years agoIncrease a registered filter bidder size to avoid tests failure.
Michihiro NAKAJIMA [Wed, 3 Oct 2012 07:18:17 +0000 (16:18 +0900)] 
Increase a registered filter bidder size to avoid tests failure.
  - test_read_format_cpio_bin_gz
  - test_read_format_gtar_lzma.

12 years agoFix test_option_older_than failure on linux.
Michihiro NAKAJIMA [Wed, 3 Oct 2012 06:50:47 +0000 (15:50 +0900)] 
Fix test_option_older_than failure on linux.
 - Use pax format in test_option_older_than and test_option_newer_than
   to make sure the nano second of a file time is recorded.

12 years agoMerge pull request #28 from graysky2/master
Tim Kientzle [Wed, 3 Oct 2012 03:13:44 +0000 (20:13 -0700)] 
Merge pull request #28 from graysky2/master

enable lrzip support

12 years agoenable lrzip support 28/head
graysky [Wed, 3 Oct 2012 00:40:38 +0000 (20:40 -0400)] 
enable lrzip support

12 years agoAdd --older,--older-than,--older-mtime and --older-mtime-than to bsdtar to
Michihiro NAKAJIMA [Wed, 3 Oct 2012 00:05:57 +0000 (09:05 +0900)] 
Add --older,--older-than,--older-mtime and --older-mtime-than to bsdtar to
enable only including files and directories older than specified date or file.

12 years agoFix a bug that Clang Static Analyzer claimed it is potential insecure
Michihiro NAKAJIMA [Wed, 12 Sep 2012 05:32:06 +0000 (14:32 +0900)] 
Fix a bug that Clang Static Analyzer claimed it is potential insecure
implementation-specific behavior in call 'vfork' and recommended the
use of posix_spawn instead of vfork.

12 years agoApply *_CLOEXEC flags to system calls which can be used with
Michihiro NAKAJIMA [Tue, 2 Oct 2012 04:58:52 +0000 (13:58 +0900)] 
Apply *_CLOEXEC flags to system calls which can be used with
to avoid file descriptor leaks to the child process.
- Pass O_CLOEXEC to open(2) system call if it is defined.
- Use fcntl(2) and F_DUPFD_CLOEXEC instead of dup(2)
  if F_DUPFD_CLOEXEC is defined.
- Set FD_CLOEXEC with fcntl(2) if a file descriptor does not have.

12 years agoMerge pull request #22 from amejia1/seek-support
Andres Mejia [Mon, 1 Oct 2012 04:08:09 +0000 (21:08 -0700)] 
Merge pull request #22 from amejia1/seek-support

Implement function used to seek within data blocks.

12 years agoMerge pull request #27 from xiw/overflow
Michihiro NAKAJIMA [Sat, 29 Sep 2012 07:05:27 +0000 (00:05 -0700)] 
Merge pull request #27 from xiw/overflow

Fix overflow check in safe_fprintf()

12 years agoMerge pull request #26 from cmdrclueless/tar_read_buffer_overrun_fix2
Michihiro NAKAJIMA [Sat, 29 Sep 2012 06:54:47 +0000 (23:54 -0700)] 
Merge pull request #26 from cmdrclueless/tar_read_buffer_overrun_fix2

Add tighter checks to avoid reading past end of buffer

12 years agoFix signed integer overflow in safe_fprintf() 27/head
Xi Wang [Fri, 28 Sep 2012 07:04:42 +0000 (03:04 -0400)] 
Fix signed integer overflow in safe_fprintf()

The following "overflow" check in safe_fprintf() invokes undefined
behavior (signed integer overflow), which is incorrect.  Clang will
optimize it away.

int old_length = fmtbuff_length;
fmtbuff_length += fmtbuff_length / 4;
if (old_length > fmtbuff_length) { ... }

The check is in the form:

x > x + x / 4.

As per the C standard, the check is equivalent to:

0 > x / 4,

since x + x / 4 is assumed to not overflow (otherwise undefined).

An earlier check ensures x >= 8192, so this check is always false,
and Clang doesn't emit code for it.

This patch uses unsigned integers to avoid undefined behavior.

12 years agoImplement function used to seek within data blocks. 22/head
Andres Mejia [Sat, 22 Sep 2012 00:23:25 +0000 (20:23 -0400)] 
Implement function used to seek within data blocks.
This only implements seeking fully for uncompressed RAR files. Seeking is not
implemented for compressed RAR files and for the other formats (ZIP, TAR, etc.).

12 years agoRefactored common code into a single function 26/head
Brian Weaver [Wed, 26 Sep 2012 15:45:52 +0000 (11:45 -0400)] 
Refactored common code into a single function

The tar_atol8() and tar_atol10() functions were essentially
identical. The code has been refactored to a common function
with tar_atol8() and tar_atol10() calling the commont function
with the radix instead duplicating the code.

The logic was also changed slightly to prevent a pointer
dereference when a zero length character array is passed to
the conversion routine.

12 years agoAdd tighter checks to avoid reading past end of buffer
Brian Weaver [Tue, 25 Sep 2012 13:51:12 +0000 (09:51 -0400)] 
Add tighter checks to avoid reading past end of buffer

The string to base 8/10 conversion routines could read past the
counted end of the buffer if the string is correctly formated.
The number of characters is now checked and decremented for every
character that is consumed for processing.

successfully passes 'make check-TESTS'

12 years agoMinor improvement in the mtree bidder.
Michihiro NAKAJIMA [Wed, 26 Sep 2012 04:04:56 +0000 (13:04 +0900)] 
Minor improvement in the mtree bidder.
 - During checking NetBSD mtree -D format, if the first character of
   the last filed in an entry line is '/', fail the test bidding mtree
   format.

12 years agoBack out of b0eb750cab. It caused several tar/pax test failures.
Michihiro NAKAJIMA [Wed, 26 Sep 2012 02:10:31 +0000 (11:10 +0900)] 
Back out of b0eb750cab. It caused several tar/pax test failures.

12 years agoMerge branch 'mtree-classic'
Michihiro NAKAJIMA [Wed, 26 Sep 2012 01:13:39 +0000 (10:13 +0900)] 
Merge branch 'mtree-classic'

  Add support for generating a mtree classic format(an older formt).

12 years agoUse a character table to check safe characters in filenames in a mtree archive,
Michihiro NAKAJIMA [Tue, 25 Sep 2012 23:52:19 +0000 (08:52 +0900)] 
Use a character table to check safe characters in filenames in a mtree archive,
and add a test for it.

12 years agoMerge pull request #24 from cmdrclueless/tar_read_buffer_overrun_fix
Michihiro NAKAJIMA [Tue, 25 Sep 2012 23:00:29 +0000 (16:00 -0700)] 
Merge pull request #24 from cmdrclueless/tar_read_buffer_overrun_fix

Add tighter checks to avoid reading past end of buffer

12 years agoPlug the possibility of memory leak.
Michihiro NAKAJIMA [Tue, 25 Sep 2012 12:31:52 +0000 (21:31 +0900)] 
Plug the possibility of memory leak.

12 years agoFix bugs introdueced by f87e3db94c.
Michihiro NAKAJIMA [Tue, 25 Sep 2012 11:17:29 +0000 (20:17 +0900)] 
Fix bugs introdueced by f87e3db94c.

12 years agoAdd tighter checks to avoid reading past end of buffer 24/head
Brian Weaver [Tue, 25 Sep 2012 13:51:12 +0000 (09:51 -0400)] 
Add tighter checks to avoid reading past end of buffer

The string to base 8/10 conversion routines could read past the
counted end of the buffer if the string is correctly formated.
The number of characters is now checked and decremented for every
character that is consumed for processing.

12 years agoFix build failure on linux; remove unused variables and a function.
Michihiro NAKAJIMA [Tue, 25 Sep 2012 08:26:38 +0000 (17:26 +0900)] 
Fix build failure on linux; remove unused variables and a function.

12 years agoReduce the amount of memory in mtree writer.
Michihiro NAKAJIMA [Tue, 25 Sep 2012 03:38:03 +0000 (12:38 +0900)] 
Reduce the amount of memory in mtree writer.

12 years agoDisable some mode tests on Windows. We cannot perform it as POSIX systems.
Michihiro NAKAJIMA [Tue, 25 Sep 2012 00:02:17 +0000 (09:02 +0900)] 
Disable some mode tests on Windows. We cannot perform it as POSIX systems.

12 years agoFix build failure on Clang.
Michihiro NAKAJIMA [Mon, 24 Sep 2012 22:25:46 +0000 (07:25 +0900)] 
Fix build failure on Clang.

12 years agoAdd support for writing mtree classic format, which mtree utility generates by default.
Michihiro NAKAJIMA [Fri, 21 Sep 2012 02:51:16 +0000 (11:51 +0900)] 
Add support for writing mtree classic format, which mtree utility generates by default.

12 years agoAllow FreeBSD mtree's nochange keyword.
Michihiro NAKAJIMA [Mon, 24 Sep 2012 22:08:20 +0000 (07:08 +0900)] 
Allow FreeBSD mtree's nochange keyword.

12 years agoFix a mtree detection bug brought by a commit 78307be86b71.
Michihiro NAKAJIMA [Mon, 24 Sep 2012 11:32:42 +0000 (20:32 +0900)] 
Fix a mtree detection bug brought by a commit 78307be86b71.

12 years agoAdd test_utils.h to test_utils_SOURCES, fixes use of 'make dist'.
Andres Mejia [Sat, 22 Sep 2012 00:30:34 +0000 (20:30 -0400)] 
Add test_utils.h to test_utils_SOURCES, fixes use of 'make dist'.

12 years agoDo not write absolute paths to mtree archives.
Michihiro NAKAJIMA [Thu, 20 Sep 2012 05:14:28 +0000 (14:14 +0900)] 
Do not write absolute paths to mtree archives.

12 years agoDo not add "./" prefix to the current directory name ".", it is not necessary.
Michihiro NAKAJIMA [Thu, 20 Sep 2012 04:53:59 +0000 (13:53 +0900)] 
Do not add "./" prefix to the current directory name ".", it is not necessary.
Add test for appending "./" prefix.

12 years agoMerge pull request #20 from allanbrokeit/mtree
Michihiro NAKAJIMA [Thu, 20 Sep 2012 04:10:43 +0000 (21:10 -0700)] 
Merge pull request #20 from allanbrokeit/mtree

Fix mtree generation

12 years agoSeparate test_read_format_mtree to know easily which tests failed.
Michihiro NAKAJIMA [Thu, 20 Sep 2012 03:09:59 +0000 (12:09 +0900)] 
Separate test_read_format_mtree to know easily which tests failed.

12 years agoMerge branch 'master' of github.com:libarchive/libarchive into mtree
Michihiro NAKAJIMA [Thu, 20 Sep 2012 02:39:58 +0000 (11:39 +0900)] 
Merge branch 'master' of github.com:libarchive/libarchive into mtree

12 years agoAdd support for a mtree form that NetBSD's mtree -D generates, which places
Michihiro NAKAJIMA [Thu, 20 Sep 2012 02:34:30 +0000 (11:34 +0900)] 
Add support for a mtree form that NetBSD's mtree -D generates, which places
the path as last parameter.

12 years agoImplement filtering of test cases run using glob pattern matching.
Andres Mejia [Wed, 19 Sep 2012 20:42:10 +0000 (16:42 -0400)] 
Implement filtering of test cases run using glob pattern matching.
A test case will run if it matches a specified glob pattern. Test cases can
also be filtered out by including a '^' at the beginning of a pattern.

12 years agoUpdate .gitignore to ignore library and Testing folder
Andres Mejia [Wed, 19 Sep 2012 18:19:15 +0000 (14:19 -0400)] 
Update .gitignore to ignore library and Testing folder

12 years agoSeperate get_test_set() function out into a utility source file used by all test...
Andres Mejia [Wed, 19 Sep 2012 18:17:54 +0000 (14:17 -0400)] 
Seperate get_test_set() function out into a utility source file used by all test programs.

12 years agoSeperate single RAR test into multiple test cases.
Andres Mejia [Wed, 19 Sep 2012 16:43:19 +0000 (12:43 -0400)] 
Seperate single RAR test into multiple test cases.

12 years agoAdd INCLUDE_DIRECTORIES directive to fix build failure on cmake 2.8.9.
Andres Mejia [Wed, 19 Sep 2012 01:55:41 +0000 (21:55 -0400)] 
Add INCLUDE_DIRECTORIES directive to fix build failure on cmake 2.8.9.

12 years agoFix a possibility of memory leaks when realloc fails.
Michihiro NAKAJIMA [Tue, 18 Sep 2012 11:14:18 +0000 (20:14 +0900)] 
Fix a possibility of memory leaks when realloc fails.
Do not assign the return value of realloc into the variable that has
the original pointer because if realloc failed we will lose the chance
to release the address.

12 years agoFix a part of a commit 221f63f2f8.
Michihiro NAKAJIMA [Tue, 18 Sep 2012 07:39:42 +0000 (16:39 +0900)] 
Fix a part of a commit 221f63f2f8.
The double free bug Clang Static Anlyzer(trunk) claimed of was the Clang's bug,
which is currently fixed, and it made a memory leak.

12 years agoFix build failure on linux made by commit b3296a25e1 to be able to compile
Michihiro NAKAJIMA [Mon, 17 Sep 2012 11:21:13 +0000 (20:21 +0900)] 
Fix build failure on linux made by commit b3296a25e1 to be able to compile
the source file without warnings on gcc and clang.

12 years agoRemove dead assignment that Clang Static Analyzer pointed out.
Michihiro NAKAJIMA [Wed, 12 Sep 2012 01:47:49 +0000 (10:47 +0900)] 
Remove dead assignment that Clang Static Analyzer pointed out.

12 years agoFix bugs that Clang Static Analyzer pointed out:
Michihiro NAKAJIMA [Tue, 11 Sep 2012 11:13:31 +0000 (20:13 +0900)] 
Fix bugs that Clang Static Analyzer pointed out:
 - Memory leak;
 - Result of operation is garbage or undefined;
 - Undefined allocation of 0 bytes.

12 years agoFix use-after-free that Clang Static Analyzer pointed out.
Michihiro NAKAJIMA [Tue, 11 Sep 2012 11:11:09 +0000 (20:11 +0900)] 
Fix use-after-free that Clang Static Analyzer pointed out.

12 years agoFix bugs that Clang Static Analyzer pointed out:
Michihiro NAKAJIMA [Tue, 11 Sep 2012 11:09:30 +0000 (20:09 +0900)] 
Fix bugs that Clang Static Analyzer pointed out:
 - Double free
 - Use-after-free

12 years agoFix a bug that Clang Static Analyzer said "Assigned value is garbage or undefined".
Michihiro NAKAJIMA [Tue, 11 Sep 2012 11:06:25 +0000 (20:06 +0900)] 
Fix a bug that Clang Static Analyzer said "Assigned value is garbage or undefined".

12 years agoFix a memory leak that Clang Static Analyzer pointed out.
Michihiro NAKAJIMA [Tue, 11 Sep 2012 11:01:02 +0000 (20:01 +0900)] 
Fix a memory leak that Clang Static Analyzer pointed out.

12 years agoFix dereference of null pointer that Clang Static Analyzer pointed out.
Michihiro NAKAJIMA [Tue, 11 Sep 2012 10:58:07 +0000 (19:58 +0900)] 
Fix dereference of null pointer that Clang Static Analyzer pointed out.

12 years agoFix a memory leak that Clang Static Analyzer pointed out.
Michihiro NAKAJIMA [Tue, 11 Sep 2012 10:53:17 +0000 (19:53 +0900)] 
Fix a memory leak that Clang Static Analyzer pointed out.

12 years agoRemove dead assignment that Clang Static Analyzer pointed out.
Michihiro NAKAJIMA [Tue, 11 Sep 2012 10:50:28 +0000 (19:50 +0900)] 
Remove dead assignment that Clang Static Analyzer pointed out.

12 years agoFix the failure of archive_read_open_filename_w on Windows.
Michihiro NAKAJIMA [Mon, 10 Sep 2012 07:56:39 +0000 (16:56 +0900)] 
Fix the failure of archive_read_open_filename_w on Windows.
Thas caused test_archive_match_path and test_open_filename failure.

12 years agoFix mtree generation 20/head
Allan McRae [Sat, 8 Sep 2012 08:59:33 +0000 (18:59 +1000)] 
Fix mtree generation

When generating an mtree file, libarchive writes a "Relative" type (entries
that have no /) for files in the base directory. For directories, this causes
the mtree reader to change the parent directory and give subsequent files in
the root directory the wrong path.

Fix this by prefixing entries in the root directory with "./".

12 years agoFix build failure when ACL_TYPE_NFS4 is not defined.
Dan McGee [Wed, 29 Aug 2012 19:52:58 +0000 (15:52 -0400)] 
Fix build failure when ACL_TYPE_NFS4 is not defined.

Signed-off-by: Andres Mejia <amejia004@gmail.com>
12 years agoFix build failure of test_write_compress_lrzip.c, use archive_write_add_filter_lrzip().
Andres Mejia [Wed, 29 Aug 2012 19:52:09 +0000 (15:52 -0400)] 
Fix build failure of test_write_compress_lrzip.c, use archive_write_add_filter_lrzip().