]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
14 years agoarchive_read_data.3: consumers extracted from archive_read.3
Roman Neuhauser [Mon, 28 Mar 2011 09:15:02 +0000 (05:15 -0400)] 
archive_read_data.3: consumers extracted from archive_read.3

SVN-Revision: 3085

14 years agoarchive_read_open.3: archive_read_open et al
Roman Neuhauser [Mon, 28 Mar 2011 09:14:47 +0000 (05:14 -0400)] 
archive_read_open.3: archive_read_open et al

SVN-Revision: 3084

14 years agoarchive_read_format.3: archive_read_support_format_XXX
Roman Neuhauser [Mon, 28 Mar 2011 09:14:17 +0000 (05:14 -0400)] 
archive_read_format.3: archive_read_support_format_XXX

SVN-Revision: 3083

14 years agoarchive_read_filter.3: archive_read_support_compression_XXX
Roman Neuhauser [Mon, 28 Mar 2011 09:13:52 +0000 (05:13 -0400)] 
archive_read_filter.3: archive_read_support_compression_XXX

SVN-Revision: 3082

14 years agoOn Windows test_fuzz sometimes failed by fopen error that it opened image data.
Michihiro NAKAJIMA [Sun, 27 Mar 2011 04:57:53 +0000 (00:57 -0400)] 
On Windows test_fuzz sometimes failed by fopen error that it opened image data.
It seems previous close operation did not completely end at that time.
I think it some security soft was grabbing the file handle for its check
of file access. So we should take a wait for a time while the operation
running.

SVN-Revision: 3081

14 years agoAdd support for charset option to xar reader although we expect
Michihiro NAKAJIMA [Sat, 26 Mar 2011 06:13:43 +0000 (02:13 -0400)] 
Add support for charset option to xar reader although we expect
charset=UTF-8-MAC is specified.

SVN-Revision: 3080

14 years agoIssue 151: clients and filters are now guaranteed to have their
Tim Kientzle [Sat, 26 Mar 2011 05:53:58 +0000 (01:53 -0400)] 
Issue 151: clients and filters are now guaranteed to have their
close() function invoked exactly once in all cases.
In particular, this avoids a leak when read_open_filename()
fails because of format errors.

SVN-Revision: 3079

14 years agoIn Zip writer, set bit 11(stored filename charset is UTF-8) to general
Michihiro NAKAJIMA [Sat, 26 Mar 2011 05:31:10 +0000 (01:31 -0400)] 
In Zip writer, set bit 11(stored filename charset is UTF-8) to general
purpose flags when the filename has non ASCII code and writing charset
is UTF-8. it is useful for Zip reader not only for ours that that would
help Zip reader know what a filename encoding is. This is the same behaviour
Info-ZIP does.

SVN-Revision: 3078

14 years agoWe should use mbrtowc/mbtowc at archive_wstring_append_from_mbs instead of
Michihiro NAKAJIMA [Sat, 26 Mar 2011 03:21:44 +0000 (23:21 -0400)] 
We should use mbrtowc/mbtowc at archive_wstring_append_from_mbs instead of
mbsrtowcs/mbstowcs because we cannot check the MBS limit specified by
a caller with a parameter 'len', and it is possible that mbsrtowcs/mbstowcs
convert extra MBS when strlen(MBS) > 'len'.

SVN-Revision: 3077

14 years agoUpdate comment about the return code of conversion functions.
Michihiro NAKAJIMA [Sat, 26 Mar 2011 01:13:24 +0000 (21:13 -0400)] 
Update comment about the return code of conversion functions.
archive_string_append_from_unicode_to_mbs always returns -1
if the platform have neither wctomb nor wcrtomb.

SVN-Revision: 3076

14 years agoImprove archive_wstring_append_from_mbs function; use mbsnrtowcs or
Michihiro NAKAJIMA [Sat, 26 Mar 2011 00:47:09 +0000 (20:47 -0400)] 
Improve archive_wstring_append_from_mbs function; use mbsnrtowcs or
mbsrtowcs for thread safe if available.

SVN-Revision: 3075

14 years agoRemove UTF-8 <===> WCS conversion code, which was highly based on the wrog
Michihiro NAKAJIMA [Fri, 25 Mar 2011 12:08:06 +0000 (08:08 -0400)] 
Remove UTF-8 <===> WCS conversion code, which was highly based on the wrog
assumption that WCS was UNICODE. What format WCS has is deeply dependent on
platform, and WCS must be converted to/from locale dependent MBS on every
platform through mbstowcs/wcstombs or related functions, which the platforms
provide. We should, thus, respect the platform policy about WCS for potability.

SVN-Revision: 3074

14 years agoAdd an mbs version of ACL control functions in order to reduce
Michihiro NAKAJIMA [Fri, 25 Mar 2011 09:36:27 +0000 (05:36 -0400)] 
Add an mbs version of ACL control functions in order to reduce
extra character conversion.
  previous:
    Create : Disk -> MBS -> WCS -> MBS -> UTF-8 -> Pax archive file.
    Extract: Pax archive file -> UTF-8 -> MBS -> WCS ->MBS -> Disk.

  after:
    Create : Disk -> MBS -> UTF-8 -> Pax archive file.
    Extract: Pax archive file -> UTF-8 -> MBS -> Disk.

SVN-Revision: 3073

14 years agoWindows platform can convert string in local locale to/from UTF-8 without iconv.
Michihiro NAKAJIMA [Thu, 24 Mar 2011 23:50:35 +0000 (19:50 -0400)] 
Windows platform can convert string in local locale to/from UTF-8 without iconv.

SVN-Revision: 3072

14 years agoTake care of '\' character in multi-byte character-set when replacing '\' by '/'.
Michihiro NAKAJIMA [Thu, 24 Mar 2011 12:06:47 +0000 (08:06 -0400)] 
Take care of '\' character in multi-byte character-set when replacing '\' by '/'.

SVN-Revision: 3071

14 years agoFix a behavior of character conversion functions on Windows.
Michihiro NAKAJIMA [Thu, 24 Mar 2011 11:29:01 +0000 (07:29 -0400)] 
Fix a behavior of character conversion functions on Windows.
Simulates other platform behavior in order to pass our test programs.

SVN-Revision: 3070

14 years agoIn ZIP archive file, a filename and comments field is UTF-8 when Language
Michihiro NAKAJIMA [Thu, 24 Mar 2011 09:41:01 +0000 (05:41 -0400)] 
In ZIP archive file, a filename and comments field is UTF-8 when Language
encoding flag (Bit 11 of the general purpose bit flag) is set.
So we should convert filenames from UTF-8 to current locale.

SVN-Revision: 3069

14 years agoFix a error message.
Michihiro NAKAJIMA [Thu, 24 Mar 2011 07:33:52 +0000 (03:33 -0400)] 
Fix a error message.

SVN-Revision: 3068

14 years agoRemove canConvertCharset from test/main.c and test_pax_filename_encoding.c
Michihiro NAKAJIMA [Thu, 24 Mar 2011 06:13:02 +0000 (02:13 -0400)] 
Remove canConvertCharset from test/main.c and test_pax_filename_encoding.c
We can finally use archive_write_set_options(a, "charset=UTF-8") instead.

SVN-Revision: 3067

14 years agoAdd support for charset option to zip writer.
Michihiro NAKAJIMA [Thu, 24 Mar 2011 05:58:39 +0000 (01:58 -0400)] 
Add support for charset option to zip writer.

SVN-Revision: 3066

14 years agoAdd support for charset option to ustar writer.
Michihiro NAKAJIMA [Thu, 24 Mar 2011 05:01:05 +0000 (01:01 -0400)] 
Add support for charset option to ustar writer.

SVN-Revision: 3065

14 years agoAdd support for charset option to gnutar writer.
Michihiro NAKAJIMA [Thu, 24 Mar 2011 04:59:15 +0000 (00:59 -0400)] 
Add support for charset option to gnutar writer.

SVN-Revision: 3064

14 years agoAdd support for charset option to pax writer.
Michihiro NAKAJIMA [Wed, 23 Mar 2011 23:45:48 +0000 (19:45 -0400)] 
Add support for charset option to pax writer.
This option accepts binary mode by charset=BINARY.

SVN-Revision: 3063

14 years agoImprove character-set conversion functions on the platform which does not have
Michihiro NAKAJIMA [Wed, 23 Mar 2011 22:35:19 +0000 (18:35 -0400)] 
Improve character-set conversion functions on the platform which does not have
iconv.
Even if current locale and specified locale are the same, we should
whether the MBS has all correct bytes, in order to simulate iconv's behavior.

SVN-Revision: 3062

14 years agoRemove local character-set conversion code from archive_write_set_format_pax.c.
Michihiro NAKAJIMA [Wed, 23 Mar 2011 22:25:29 +0000 (18:25 -0400)] 
Remove local character-set conversion code from archive_write_set_format_pax.c.
Use archive_strcpy_to_locale() function instead.

SVN-Revision: 3061

14 years agoRemove unneeded statement.
Michihiro NAKAJIMA [Wed, 23 Mar 2011 01:06:24 +0000 (21:06 -0400)] 
Remove unneeded statement.
wchar.h is no longer neeeded at archive_read_support_format_tar.c.

SVN-Revision: 3054

14 years agoRemove local character-set conversion code from archive_read_support_format_tar.c.
Michihiro NAKAJIMA [Wed, 23 Mar 2011 00:57:46 +0000 (20:57 -0400)] 
Remove local character-set conversion code from archive_read_support_format_tar.c.
We should use common functions defined in archive_string.c instead.

SVN-Revision: 3053

14 years agoAdd support for a charset option to tar/pax format reader.
Michihiro NAKAJIMA [Tue, 22 Mar 2011 23:00:39 +0000 (19:00 -0400)] 
Add support for a charset option to tar/pax format reader.

SVN-Revision: 3052

14 years agoInstead of canConvertCharset(), use archive_read_set_options("charset=xxxx")
Michihiro NAKAJIMA [Tue, 22 Mar 2011 18:13:23 +0000 (14:13 -0400)] 
Instead of canConvertCharset(), use archive_read_set_options("charset=xxxx")
to check what a conversion of character-set is supported.
It is better only libarchive knows if a character-set conversion works,
but at this time a use of canConvertCharset() still remains in
test_pax_filename_encoding.

SVN-Revision: 3051

14 years agoAdd a check that a conversion specified by a charset option works on the platform.
Michihiro NAKAJIMA [Tue, 22 Mar 2011 17:25:00 +0000 (13:25 -0400)] 
Add a check that a conversion specified by a charset option works on the platform.

SVN-Revision: 3050

14 years agoImprove character-set conversion functions.
Michihiro NAKAJIMA [Tue, 22 Mar 2011 04:39:41 +0000 (00:39 -0400)] 
Improve character-set conversion functions.
 - rename archive_strncpy_from_specific_locale to archive_strncat_from_locale.
 - rename archive_strncpy_to_specific_locale to archive_strncat_to_locale.
 - add archive_strncpy_[to/from]_locale functions.
 - add archive_strcpy_[to/from]_locale functions.

SVN-Revision: 3049

14 years agoSome plaform will not use max_skip and so its initialization is unneeded.
Michihiro NAKAJIMA [Mon, 21 Mar 2011 20:56:03 +0000 (16:56 -0400)] 
Some plaform will not use max_skip and so its initialization is unneeded.

Found with Clang Static Analyzer.

SVN-Revision: 3048

14 years agoAdd a check of a null pointer in order to eliminate what Clang complains.
Michihiro NAKAJIMA [Mon, 21 Mar 2011 20:39:16 +0000 (16:39 -0400)] 
Add a check of a null pointer in order to eliminate what Clang complains.

Found with Clang Static Analyzer.

SVN-Revision: 3047

14 years agoDo not ignore a fatal error.
Michihiro NAKAJIMA [Mon, 21 Mar 2011 20:27:11 +0000 (16:27 -0400)] 
Do not ignore a fatal error.

Found with Clang Static Analyzer.

SVN-Revision: 3046

14 years agoProperly return an error code; do not overwirte an error code with a return code
Michihiro NAKAJIMA [Mon, 21 Mar 2011 20:21:39 +0000 (16:21 -0400)] 
Properly return an error code; do not overwirte an error code with a return code
of __archive_write_close_filter();

Found with Clang Static Analyzer.

SVN-Revision: 3045

14 years agoRemove a unneeded initialization of extdsize.
Michihiro NAKAJIMA [Mon, 21 Mar 2011 20:14:00 +0000 (16:14 -0400)] 
Remove a unneeded initialization of extdsize.

Found with Clang Static Analyzer.

SVN-Revision: 3044

14 years agoDo the best effort for the conversion of character-set without iconv.
Michihiro NAKAJIMA [Mon, 21 Mar 2011 19:48:43 +0000 (15:48 -0400)] 
Do the best effort for the conversion of character-set without iconv.
We can make a conversion UTF-16BE <===> UTF-8 when current locale is UTF-8.

SVN-Revision: 3043

14 years agoInstead of Info-ZIP UNIX "Ux" 7855(16 bits UID/GIDs), Use Info-ZIP New Unix
Michihiro NAKAJIMA [Mon, 21 Mar 2011 02:55:16 +0000 (22:55 -0400)] 
Instead of Info-ZIP UNIX "Ux" 7855(16 bits UID/GIDs), Use Info-ZIP New Unix
Extra Field "ux" 7875 in order to store 32 bits UID/GIDs.

SVN-Revision: 3042

14 years agoUpdate the documentation for archive_read_data_skip to
Tim Kientzle [Mon, 21 Mar 2011 01:25:11 +0000 (21:25 -0400)] 
Update the documentation for archive_read_data_skip to
indicate that it's called automatically.

SVN-Revision: 3041

14 years agoAdd support for Info-ZIP New Unix Extra Field "ux".
Michihiro NAKAJIMA [Mon, 21 Mar 2011 01:13:09 +0000 (21:13 -0400)] 
Add support for Info-ZIP New Unix Extra Field "ux".

SVN-Revision: 3040

14 years agoTest from Roman Neuhauser for the "raw" format to verify that it
Tim Kientzle [Mon, 21 Mar 2011 00:41:14 +0000 (20:41 -0400)] 
Test from Roman Neuhauser for the "raw" format to verify that it
correctly handles read_next_header and read_data_skip.  Fix the bug
this uncovers (a second header request should return EOF but didn't).

SVN-Revision: 3039

14 years agoFix some use-after-free bugs.
Tim Kientzle [Mon, 21 Mar 2011 00:24:40 +0000 (20:24 -0400)] 
Fix some use-after-free bugs.

SVN-Revision: 3038

14 years agoFix a bug that xar writer did not properly store a multibyte filename to its archive...
Michihiro NAKAJIMA [Sun, 20 Mar 2011 23:57:29 +0000 (19:57 -0400)] 
Fix a bug that xar writer did not properly store a multibyte filename to its archive file.

SVN-Revision: 3037

14 years agoInitialize the mtree_entry when we allocate it.
Tim Kientzle [Sun, 20 Mar 2011 23:33:47 +0000 (19:33 -0400)] 
Initialize the mtree_entry when we allocate it.

SVN-Revision: 3036

14 years agoSkip the tests which perform a character-set conversion if the platform
Michihiro NAKAJIMA [Sun, 20 Mar 2011 16:36:38 +0000 (12:36 -0400)] 
Skip the tests which perform a character-set conversion if the platform
does not support.

SVN-Revision: 3035

14 years agoAdd support for charset option to zip format reader.
Michihiro NAKAJIMA [Sun, 20 Mar 2011 03:39:06 +0000 (23:39 -0400)] 
Add support for charset option to zip format reader.

SVN-Revision: 3034

14 years agoAdd support for charset option to cab format reader.
Michihiro NAKAJIMA [Sun, 20 Mar 2011 02:27:03 +0000 (22:27 -0400)] 
Add support for charset option to cab format reader.

SVN-Revision: 3033

14 years agoAdd support for charset option to lha format reader.
Michihiro NAKAJIMA [Sat, 19 Mar 2011 06:24:09 +0000 (02:24 -0400)] 
Add support for charset option to lha format reader.
Automatically convert filenames in a lha archive if a well-known codepage
is specified in its header, but it will not overwrite a character-set
specified by the charset option.

SVN-Revision: 3032

14 years agoFix a bug that mtree writer did not output sum val irregularly when using use-set...
Michihiro NAKAJIMA [Fri, 18 Mar 2011 20:45:19 +0000 (16:45 -0400)] 
Fix a bug that mtree writer did not output sum val irregularly when using use-set option.
This bug was produced in r3028.

SVN-Revision: 3031

14 years agoDo not process sum if a file is not a regular file.
Michihiro NAKAJIMA [Fri, 18 Mar 2011 19:58:06 +0000 (15:58 -0400)] 
Do not process sum if a file is not a regular file.
Fix r3028.

SVN-Revision: 3030

14 years agoFix build error. I commited a wrong source file in r3028.
Michihiro NAKAJIMA [Fri, 18 Mar 2011 19:30:33 +0000 (15:30 -0400)] 
Fix build error. I commited a wrong source file in r3028.

SVN-Revision: 3029

14 years agoIssue 144: Improve the operation of use-set option of an mtree writer.
Michihiro NAKAJIMA [Fri, 18 Mar 2011 14:21:16 +0000 (10:21 -0400)] 
Issue 144: Improve the operation of use-set option of an mtree writer.
Correctly tabulate uid,gid,mode and fflags of files in a directory and
use the most used value of those file attributes for /set keyword while
use-set option specified.

SVN-Revision: 3028

14 years agoBring config.rpath from http://git.savannah.gnu.org/cgit/gnulib.git/plain/build-aux...
Michihiro NAKAJIMA [Fri, 18 Mar 2011 13:49:21 +0000 (09:49 -0400)] 
Bring config.rpath from http://git.savannah.gnu.org/cgit/gnulib.git/plain/build-aux/config.rpath for AM_ICONV in order to avoid automake failure.

SVN-Revision: 3027

14 years agoFrom Roman Neuhauser: Rework textual options handling.
Tim Kientzle [Fri, 18 Mar 2011 05:49:40 +0000 (01:49 -0400)] 
From Roman Neuhauser:  Rework textual options handling.
   * New functions archive_{read,write}_set_{format,filter}_option accept
     three strings: module name, option name, value.
     This is a better match for C clients of the library, who want
     to set one option at a time anyway for better error handling.
   * archive_{read,write}_set_options still accept a single string
     with possibly multiple options, but are now much simpler internally
     because they build on the above.
   * New tests for all of the above.
   * Update a lot of tests to give good coverage of the new functions.

SVN-Revision: 3026

14 years agoICONV_CONST needs to be #defined always,
Tim Kientzle [Fri, 18 Mar 2011 05:24:06 +0000 (01:24 -0400)] 
ICONV_CONST needs to be #defined always,
even if its replacement value is empty.

SVN-Revision: 3025

14 years agoIssue 149: Correct arguments archive_write_set_bytes_per_block.
Tim Kientzle [Fri, 18 Mar 2011 03:47:11 +0000 (23:47 -0400)] 
Issue 149: Correct arguments archive_write_set_bytes_per_block.
Thanks to Roman Neuhauser.

SVN-Revision: 3024

14 years agoCorrect the spelling of archive_write_set_format_shar_dump()
Tim Kientzle [Fri, 18 Mar 2011 03:42:54 +0000 (23:42 -0400)] 
Correct the spelling of archive_write_set_format_shar_dump()
and update the documentation to reflect the new add_filter
naming.

SVN-Revision: 3023

14 years agoDo not pass 0 to third parameter of ReadFile(), which parameter specify read bytes,
Michihiro NAKAJIMA [Thu, 17 Mar 2011 18:53:33 +0000 (14:53 -0400)] 
Do not pass 0 to third parameter of ReadFile(), which parameter specify read bytes,
because ReadFile() will not return if the parameter is 0;
test_archive_read_close_twice_open_filename did not end.

SVN-Revision: 3022

14 years agoAdd charset conversion functions which convert a string between
Michihiro NAKAJIMA [Thu, 17 Mar 2011 17:39:29 +0000 (13:39 -0400)] 
Add charset conversion functions which convert a string between
current locale and specific locale with iconv.

SVN-Revision: 3021

14 years agoImprove UTF-16BE conversion functions.
Michihiro NAKAJIMA [Thu, 17 Mar 2011 11:44:12 +0000 (07:44 -0400)] 
Improve UTF-16BE conversion functions.
 - rename archive_string_copy_from_utf16be to archive_strncpy_from_utf16be.
 - rename archive_string_copy_to_utf16be to archive_strncpy_to_utf16be and
   change its argument from struct archive_string * to a set of const char *
   and size_t.

SVN-Revision: 3020

14 years agoMove a conversion of UTF-16BE, which is used for Joliet extensions, into
Michihiro NAKAJIMA [Thu, 17 Mar 2011 01:03:05 +0000 (21:03 -0400)] 
Move a conversion of UTF-16BE, which is used for Joliet extensions, into
archive_string.c, and Use iconv for it if available.

SVN-Revision: 3019

14 years agoDo not output "flags=none" after "/unset flags" is used.
Michihiro NAKAJIMA [Wed, 16 Mar 2011 15:15:54 +0000 (11:15 -0400)] 
Do not output "flags=none" after "/unset flags" is used.

SVN-Revision: 3018

14 years agoUse ICONV_CONST instead of ICONV_IS_POSIX; switch a detection of iconv to AM_ICONV.
Michihiro NAKAJIMA [Wed, 16 Mar 2011 14:44:22 +0000 (10:44 -0400)] 
Use ICONV_CONST instead of ICONV_IS_POSIX; switch a detection of iconv to AM_ICONV.
This version needs to solve about config.rpath, which AM_ICONV requires.

SVN-Revision: 3017

14 years agoThe iconv.m4 macros from GNU gettext.
Tim Kientzle [Wed, 16 Mar 2011 06:01:22 +0000 (02:01 -0400)] 
The iconv.m4 macros from GNU gettext.

These look like they might be useful for improving
libarchive's detection of iconv.

SVN-Revision: 3016

14 years agoApparently autogen.sh does not conventionally run ./configure.
Tim Kientzle [Tue, 15 Mar 2011 07:15:11 +0000 (03:15 -0400)] 
Apparently autogen.sh does not conventionally run ./configure.

SVN-Revision: 3015

14 years agoMinor improvement of iconv detection; really something
Tim Kientzle [Tue, 15 Mar 2011 07:04:36 +0000 (03:04 -0400)] 
Minor improvement of iconv detection; really something
much more sophisticated needs to be done here.

SVN-Revision: 3014

14 years agoFix issue 144 and add a test for a file flags.
Michihiro NAKAJIMA [Mon, 14 Mar 2011 18:30:38 +0000 (14:30 -0400)] 
Fix issue 144 and add a test for a file flags.

SVN-Revision: 3013

14 years agoInspired by Issue 145: Split the old build/autogen.sh script by
Tim Kientzle [Mon, 14 Mar 2011 04:45:46 +0000 (00:45 -0400)] 
Inspired by Issue 145:  Split the old build/autogen.sh script by
moving the release-verification issues into build/makerelease.sh.

SVN-Revision: 3012

14 years agoFix the handling of multiple Fl options:
Tim Kientzle [Sun, 13 Mar 2011 07:43:36 +0000 (03:43 -0400)] 
Fix the handling of multiple Fl options:
   .Fl Fl command
used to cause -Fl command but now it generates --command.
In the process, bolding of certain command options is
lost; the logic here needs to be significantly reworked.

SVN-Revision: 3010

14 years agoIssue 141: Detect an unrecognized format earlier, in archive_read_open,
Tim Kientzle [Sun, 13 Mar 2011 05:36:55 +0000 (00:36 -0500)] 
Issue 141:  Detect an unrecognized format earlier, in archive_read_open,
instead of waiting until we try to read the first header.
This just required moving the format detection into archive_read_open.
This in turn required updating a some tests that inadvertently
relied on the old behavior.
While poking around in the truncation tests, I went ahead and
updated them to not use the old "assertA" macro, which is
deprecated.

SVN-Revision: 3009

14 years agoMove the -Werror -Wall switches to the top and set them for try-compiles
Tim Kientzle [Sat, 12 Mar 2011 08:26:09 +0000 (03:26 -0500)] 
Move the -Werror -Wall switches to the top and set them for try-compiles
as well.
Before this, there were problems with iconv(), which has variants on different
systems that differ only in const usage; the try-compiles would
pass with the wrong const usage and cause the build to fail.
Setting -Werror on the try-compiles ensures that this doesn't happen.

SVN-Revision: 3008

14 years agoDo a more extensive test for iconv() support:
Tim Kientzle [Fri, 11 Mar 2011 06:25:11 +0000 (01:25 -0500)] 
Do a more extensive test for iconv() support:
  * Check both POSIX-conforming (second argument is const) and non-POSIX
  * Check in libc and libiconv

The configuration script sets three flags:
  * HAVE_ICONV_H
  * HAVE_ICONV
  * ICONV_IS_POSIX
and also adds libiconv to the compile if necessary.

SVN-Revision: 3007

14 years agoThese are really all part of the same set of tests, so combine
Tim Kientzle [Fri, 11 Mar 2011 05:39:45 +0000 (00:39 -0500)] 
These are really all part of the same set of tests, so combine
them into one source file.

SVN-Revision: 3006

14 years agoAdd a test of EUC-JP character encoding.
Tim Kientzle [Fri, 11 Mar 2011 05:34:27 +0000 (00:34 -0500)] 
Add a test of EUC-JP character encoding.

SVN-Revision: 3005

14 years agoFrom Roman Neuhauser.
Tim Kientzle [Fri, 11 Mar 2011 05:23:40 +0000 (00:23 -0500)] 
From Roman Neuhauser.

SVN-Revision: 3004

14 years agoUnbreak build on NetBSD.
Michihiro NAKAJIMA [Thu, 10 Mar 2011 18:31:57 +0000 (13:31 -0500)] 
Unbreak build on NetBSD.

SVN-Revision: 3003

14 years agoNot necessarily better than the cast, but consistent with how other code
Tim Kientzle [Thu, 10 Mar 2011 06:12:24 +0000 (01:12 -0500)] 
Not necessarily better than the cast, but consistent with how other code
handles this type issue.

SVN-Revision: 3002

14 years agoAdd the ability to be able to recognize mtree format without a signature "#mtree"
Michihiro NAKAJIMA [Wed, 9 Mar 2011 17:12:29 +0000 (12:12 -0500)] 
Add the ability to be able to recognize mtree format without a signature "#mtree"
since mtree utility still does not record the signature.

SVN-Revision: 2999

14 years agoUnbreak build on the platform which supports POSIX ACLs.
Michihiro NAKAJIMA [Wed, 9 Mar 2011 15:35:50 +0000 (10:35 -0500)] 
Unbreak build on the platform which supports POSIX ACLs.

SVN-Revision: 2998

14 years agoIssue 140: Calling archive_read_close() twice causes problems.
Tim Kientzle [Wed, 9 Mar 2011 05:29:39 +0000 (00:29 -0500)] 
Issue 140: Calling archive_read_close() twice causes problems.

SVN-Revision: 2996

14 years agoAn attempt to fix the autoconf build now that we like to have iconv.
Tim Kientzle [Tue, 8 Mar 2011 07:03:14 +0000 (02:03 -0500)] 
An attempt to fix the autoconf build now that we like to have iconv.

SVN-Revision: 2995

14 years agoProvide more flexibility in figuring out the proper name
Tim Kientzle [Tue, 8 Mar 2011 07:02:29 +0000 (02:02 -0500)] 
Provide more flexibility in figuring out the proper name
to give iconv for "Unicode".

SVN-Revision: 2994

14 years agoFix some broken tests from the earlier string work
Tim Kientzle [Mon, 7 Mar 2011 05:55:26 +0000 (00:55 -0500)] 
Fix some broken tests from the earlier string work
and refactor the charset conversion routines to be more consistent.

SVN-Revision: 2993

14 years agoSwitch archive_string character set conversion over to use iconv()
Tim Kientzle [Mon, 7 Mar 2011 03:55:37 +0000 (22:55 -0500)] 
Switch archive_string character set conversion over to use iconv()
when it's available.
See Issue 66 and Issue 132 for more discussion.

SVN-Revision: 2992

14 years agoTest for the problem described in Issue 66 and Issue 132.
Tim Kientzle [Sat, 5 Mar 2011 10:11:50 +0000 (05:11 -0500)] 
Test for the problem described in Issue 66 and Issue 132.

SVN-Revision: 2991

14 years agoTest for archive_clear_error().
Tim Kientzle [Sat, 26 Feb 2011 06:06:30 +0000 (01:06 -0500)] 
Test for archive_clear_error().

Thanks to Roman Neuhauser.

SVN-Revision: 2990

14 years agoChange archive_set_error() to clear the error string before
Tim Kientzle [Sat, 26 Feb 2011 05:24:54 +0000 (00:24 -0500)] 
Change archive_set_error() to clear the error string before
putting the new error into it.

SVN-Revision: 2989

14 years agoOnly abort() if the archive handle is so screwed up that we
Tim Kientzle [Sat, 19 Feb 2011 07:12:36 +0000 (02:12 -0500)] 
Only abort() if the archive handle is so screwed up that we
can't report an error.
Otherwise, return FATAL and report a PROGRAMMER ERROR.

SVN-Revision: 2988

14 years agofix the #ifdef around the ea.h include - bug introduced in r2985
Björn Jacke [Fri, 18 Feb 2011 02:29:37 +0000 (21:29 -0500)] 
fix the #ifdef around the ea.h include - bug introduced in r2985

SVN-Revision: 2987

14 years agoDO NOT USE C++ style comments like // in C code !
Björn Jacke [Fri, 18 Feb 2011 02:08:33 +0000 (21:08 -0500)] 
DO NOT USE C++ style comments like // in C code !
Not all C compilers are happy with them, lxc on AIX for example.
There are much more of them in the testing code but the ones
fixed with this commit make at least the most important things compile.

SVN-Revision: 2986

14 years agoadd AIX extended attribute support
Björn Jacke [Fri, 18 Feb 2011 02:05:13 +0000 (21:05 -0500)] 
add AIX extended attribute support

SVN-Revision: 2985

14 years agoadd CMake tests for AIX' EA interface
Björn Jacke [Fri, 18 Feb 2011 02:05:04 +0000 (21:05 -0500)] 
add CMake tests for AIX' EA interface

SVN-Revision: 2984

14 years agoadd autoconf tests for AIX' EA interface
Björn Jacke [Fri, 18 Feb 2011 02:04:50 +0000 (21:04 -0500)] 
add autoconf tests for AIX' EA interface

SVN-Revision: 2983

14 years agoclean.sh: use "rm" with "-f" so that it doens't complain if xargs has nothing to...
Björn Jacke [Wed, 16 Feb 2011 19:26:53 +0000 (14:26 -0500)] 
clean.sh: use "rm" with "-f" so that it doens't complain if xargs has nothing to tell

SVN-Revision: 2982

14 years agoon Tru64 use the F_SETTIMES fcntl to restore timestamps.
Björn Jacke [Wed, 16 Feb 2011 19:26:46 +0000 (14:26 -0500)] 
on Tru64 use the F_SETTIMES fcntl to restore timestamps.
The advantage is that we will even be able to restore ctimes with that.
We need to run as root however to be able to do that.

SVN-Revision: 2981

14 years agoadd ctime to the internal set_timeѕ() function
Björn Jacke [Wed, 16 Feb 2011 19:26:40 +0000 (14:26 -0500)] 
add ctime to the internal set_timeѕ() function

there are OSes that support setting ctime, too. This is patch is in preparation
for that to be supported.

SVN-Revision: 2980

14 years agoWork around broken PSXCRT unistd.h, which defines macros
Tim Kientzle [Sun, 13 Feb 2011 07:16:46 +0000 (02:16 -0500)] 
Work around broken PSXCRT unistd.h, which defines macros
that break any usage of names "optarg" or "option".

SVN-Revision: 2979

14 years agoIssue 135: Have archive_write_data_block fail with an error
Tim Kientzle [Sat, 12 Feb 2011 23:51:36 +0000 (18:51 -0500)] 
Issue 135: Have archive_write_data_block fail with an error
instead of a segv if the operation isn't supported.

SVN-Revision: 2978

14 years agoIssue 135: document archive_write_data_block and make clear that
Tim Kientzle [Sat, 12 Feb 2011 23:47:54 +0000 (18:47 -0500)] 
Issue 135:  document archive_write_data_block and make clear that
it is not supported for archive_write handles, only for archive_write_disk
handles.

SVN-Revision: 2977

14 years agoOn second thought, leave Jan Psota's tables alone and just put
Tim Kientzle [Sat, 12 Feb 2011 20:40:06 +0000 (15:40 -0500)] 
On second thought, leave Jan Psota's tables alone and just put
a footnote with my additional comments.

SVN-Revision: 2976