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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

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

SVN-Revision: 3004

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 years agoClarify that Jan Psota's test reflects invalid results
Tim Kientzle [Sat, 12 Feb 2011 20:29:44 +0000 (15:29 -0500)] 
Clarify that Jan Psota's test reflects invalid results
for "bsdtar compare" because that operation is not supported
by bsdtar.

SVN-Revision: 2975

15 years agoDocument some of the other items in the contrib directory.
Tim Kientzle [Sat, 12 Feb 2011 20:24:43 +0000 (15:24 -0500)] 
Document some of the other items in the contrib directory.

SVN-Revision: 2974

15 years agoCast size_t values to int so we can print them with %d.
Tim Kientzle [Sat, 12 Feb 2011 20:20:06 +0000 (15:20 -0500)] 
Cast size_t values to int so we can print them with %d.

SVN-Revision: 2973

15 years agoDon't iterate past the end of an octal field on
Tim Kientzle [Sat, 12 Feb 2011 20:18:15 +0000 (15:18 -0500)] 
Don't iterate past the end of an octal field on
a damaged archive.

SVN-Revision: 2972

15 years agoDocument the transition plan for archive_read_finish to be
Tim Kientzle [Sat, 12 Feb 2011 19:26:48 +0000 (14:26 -0500)] 
Document the transition plan for archive_read_finish to be
renamed to archive_read_free.

SVN-Revision: 2967

15 years agoRestore basic documentation for archive_read_finish
Tim Kientzle [Sat, 12 Feb 2011 19:23:29 +0000 (14:23 -0500)] 
Restore basic documentation for archive_read_finish
and archive_write_finish so that developers who need
to support libarchive 2.x won't be too confused
by the name change.

SVN-Revision: 2966

15 years agoarchive_write_header() requires the pathname to be set.
Tim Kientzle [Sat, 12 Feb 2011 19:11:36 +0000 (14:11 -0500)] 
archive_write_header() requires the pathname to be set.

SVN-Revision: 2965

15 years agoFrom Issue 138: properly cast before assigning unsigned long to int.
Tim Kientzle [Fri, 11 Feb 2011 07:07:29 +0000 (02:07 -0500)] 
From Issue 138: properly cast before assigning unsigned long to int.

SVN-Revision: 2964

15 years agoChange mode and compress to int to match other option-processing variables.
Tim Kientzle [Fri, 11 Feb 2011 07:06:52 +0000 (02:06 -0500)] 
Change mode and compress to int to match other option-processing variables.
Remove unused symlink_mode var.

SVN-Revision: 2963

15 years agoImprove an error message.
Tim Kientzle [Fri, 11 Feb 2011 06:54:32 +0000 (01:54 -0500)] 
Improve an error message.

SVN-Revision: 2962

15 years agoIf no name is available, don't store one.
Tim Kientzle [Fri, 11 Feb 2011 06:46:54 +0000 (01:46 -0500)] 
If no name is available, don't store one.

SVN-Revision: 2961

15 years agoDetect when no format is set and return an error.
Tim Kientzle [Fri, 11 Feb 2011 06:46:33 +0000 (01:46 -0500)] 
Detect when no format is set and return an error.

SVN-Revision: 2960

15 years agoSimply set -1 to a file offset not to appear before any directories;
Michihiro NAKAJIMA [Wed, 9 Feb 2011 12:30:56 +0000 (07:30 -0500)] 
Simply set -1 to a file offset not to appear before any directories;
some version of xorriso set its parent directory offset to the offset
of empty files.
Add a test for reading the iso images made by that xorriso.

SVN-Revision: 2959

15 years agoFollowup on Issue 134:
Tim Kientzle [Sun, 6 Feb 2011 05:45:30 +0000 (00:45 -0500)] 
Followup on Issue 134:
 1) Port test_open_failure to libarchive 2.8 branch to test
    the problem reported in Issue 134.
    This test also shows that archive_read_open() sometimes
    fails to report open errors correctly.
 2) Fix the bug in archive_read.c
 3) Comment out the tests that close functions are invoked
    promptly when open fails; that's fully fixed in libarchive 3.0,
    but I don't think it's worth fixing here.

SVN-Revision: 2958

15 years agoDon't compress the Zip file in this test.
Tim Kientzle [Sun, 6 Feb 2011 05:39:37 +0000 (00:39 -0500)] 
Don't compress the Zip file in this test.

SVN-Revision: 2957

15 years agoExtend test_open_failure to verify the case documented in Issue 134.
Tim Kientzle [Sun, 6 Feb 2011 05:38:41 +0000 (00:38 -0500)] 
Extend test_open_failure to verify the case documented in Issue 134.
This tests archive_write_free() after an open failure with zip format.

SVN-Revision: 2956

15 years agoIssue 134: Fix libarchive 2.8 crashing in archive_write_finish() when
Tim Kientzle [Sun, 6 Feb 2011 05:36:18 +0000 (00:36 -0500)] 
Issue 134:  Fix libarchive 2.8 crashing in archive_write_finish() when
the open has failed and we're trying to write Zip format.

SVN-Revision: 2955

15 years agoAdditional information on test failures.
Tim Kientzle [Sun, 30 Jan 2011 06:04:27 +0000 (01:04 -0500)] 
Additional information on test failures.

SVN-Revision: 2954

15 years agoImplement POSIX readdir_r checks in CMakeLists.txt.
Tim Kientzle [Thu, 27 Jan 2011 06:29:22 +0000 (01:29 -0500)] 
Implement POSIX readdir_r checks in CMakeLists.txt.
Fix a mistake in the configure.ac version.

SVN-Revision: 2953

15 years agoOnly recognize the POSIX-compliant version of readdir_r.
Tim Kientzle [Thu, 27 Jan 2011 05:55:06 +0000 (00:55 -0500)] 
Only recognize the POSIX-compliant version of readdir_r.
Some systems have a different prototype that we don't support.

SVN-Revision: 2952

15 years agoFix typo and comment.
Michihiro NAKAJIMA [Thu, 27 Jan 2011 03:19:27 +0000 (22:19 -0500)] 
Fix typo and comment.

SVN-Revision: 2951

15 years agoIssue 130: Typos and cross-reference errors in man pages.
Tim Kientzle [Wed, 26 Jan 2011 05:33:16 +0000 (00:33 -0500)] 
Issue 130:  Typos and cross-reference errors in man pages.

SVN-Revision: 2950

15 years agoHaving a "windows.h" header does not make you a Windows platform.
Tim Kientzle [Wed, 26 Jan 2011 04:25:25 +0000 (23:25 -0500)] 
Having a "windows.h" header does not make you a Windows platform.
(In particular, SCO 5 seems to have a header with that name.)

SVN-Revision: 2949

15 years agoProperly restore birthtime on Windows; use W32API directly in
Michihiro NAKAJIMA [Tue, 25 Jan 2011 22:36:17 +0000 (17:36 -0500)] 
Properly restore birthtime on Windows; use W32API directly in
archive_write_disk.c and remove __la_futimes()/__la_utimes()
functions and related definitions, which were used in
archive_write_disk.c only.

SVN-Revision: 2948

15 years agoAvoid the warning about uninitialized variable which
Michihiro NAKAJIMA [Tue, 25 Jan 2011 20:09:41 +0000 (15:09 -0500)] 
Avoid the warning about uninitialized variable which
some compiler complain about, although it is actually
unnecessary.

SVN-Revision: 2947

15 years agoImprove checking of statfs in LSB.
Michihiro NAKAJIMA [Tue, 25 Jan 2011 19:55:43 +0000 (14:55 -0500)] 
Improve checking of statfs in LSB.
Use HAVE_SYS_STATFS_H to use statfs on linux instead of HAVE_SYS_VFS_H
and add checking of HAVE_SYS_STATVFS_H to use statvfs.

SVN-Revision: 2946

15 years agoDon't leave out required test files.
Tim Kientzle [Tue, 25 Jan 2011 05:15:27 +0000 (00:15 -0500)] 
Don't leave out required test files.

SVN-Revision: 2945

15 years agoWhen fetching the file contents from disk, obey local system
Tim Kientzle [Mon, 24 Jan 2011 04:57:05 +0000 (23:57 -0500)] 
When fetching the file contents from disk, obey local system
limitations.  (This should probably be rewritten to use
archive_read_disk_entry_from_file().)

SVN-Revision: 2944

15 years agoBe consistent in when we choose to use the deep-directory logic.
Tim Kientzle [Mon, 24 Jan 2011 04:55:58 +0000 (23:55 -0500)] 
Be consistent in when we choose to use the deep-directory logic.

SVN-Revision: 2943

15 years agoStart using int64_t for uid/gid variables and int for mode variables.
Tim Kientzle [Mon, 24 Jan 2011 04:55:26 +0000 (23:55 -0500)] 
Start using int64_t for uid/gid variables and int for mode variables.
The case to consider here is when a system with narrow types is
used to modify an archive that was created and will later be extracted
on a system with wide types.  If we're not actually dealing with
the local filesystem, we should not be constrained by its limitations.

SVN-Revision: 2942

15 years agoSome platoforms do not define NAME_MAX macro and some platforms define but
Michihiro NAKAJIMA [Mon, 24 Jan 2011 04:41:33 +0000 (23:41 -0500)] 
Some platoforms do not define NAME_MAX macro and some platforms define but
its value is wrong. Avoid those problems.

SVN-Revision: 2941

15 years agoIf the offset of a file entry is zero, set -1 to the offset, which is
Michihiro NAKAJIMA [Sun, 23 Jan 2011 20:25:48 +0000 (15:25 -0500)] 
If the offset of a file entry is zero, set -1 to the offset, which is
calculated from its location, to make sure the entry will appear after
directory entries.
Some ISO image writer(xorriso) set zero to the location of a symlink entry.
It causes that our ISO-reader cannot read following directory entries at all
since we expect directory entries is located before file entries and we
are sorting all entry in an ISO image by the offset to read the contents
of the entries in stream.

SVN-Revision: 2940

15 years agoEnsure that int64_t, int32_t, int16_t, intmax_t, uint64_t, uint32_t,
Tim Kientzle [Sun, 23 Jan 2011 06:14:21 +0000 (01:14 -0500)] 
Ensure that int64_t, int32_t, int16_t, intmax_t, uint64_t, uint32_t,
uint16_t, and uintmax_t are all defined by probing the available
integer types and their sizes during the configure, then using that
information to typedef the required types at compile time.

SVN-Revision: 2939

15 years agoOn Windows, set 'Creation time' to both birthtime and ctime, because
Michihiro NAKAJIMA [Sun, 23 Jan 2011 01:32:42 +0000 (20:32 -0500)] 
On Windows, set 'Creation time' to both birthtime and ctime, because
CRT stat() Microsoft provides set 'Creation time' to st_ctime.
It seems we should do that not to confuse applications about ctime.

SVN-Revision: 2938

15 years agoEliminate a bunch of off_t uses.
Tim Kientzle [Sat, 22 Jan 2011 23:05:58 +0000 (18:05 -0500)] 
Eliminate a bunch of off_t uses.

Most of these are from the libarchive 2 API that's no longer supported.
A few are places where int64_t offsets need to be mapped down to system
APIs that might only be 32 bits; those are a little trickier.

SVN-Revision: 2937

15 years agoAdd autoconf logic to ensure we have int32_t, uint32_t, int16_t, and uint16_t
Tim Kientzle [Sat, 22 Jan 2011 22:20:35 +0000 (17:20 -0500)] 
Add autoconf logic to ensure we have int32_t, uint32_t, int16_t, and uint16_t

SVN-Revision: 2936

15 years agoOn SCO 5, use "long long" as the 64-bit integer type in the public
Tim Kientzle [Sat, 22 Jan 2011 07:37:51 +0000 (02:37 -0500)] 
On SCO 5, use "long long" as the 64-bit integer type in the public
headers and don't try to include inttypes.h

SVN-Revision: 2935

15 years agoWork around missing wmemcmp()
Tim Kientzle [Sat, 22 Jan 2011 07:35:58 +0000 (02:35 -0500)] 
Work around missing wmemcmp()

SVN-Revision: 2934

15 years agoCorrect arguments order of assertion_utimes() function.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 16:31:00 +0000 (11:31 -0500)] 
Correct arguments order of assertion_utimes() function.

SVN-Revision: 2933

15 years agoEliminate some warnings on Visual Studio.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 15:35:24 +0000 (10:35 -0500)] 
Eliminate some warnings on Visual Studio.

SVN-Revision: 2932

15 years agoUse O_NOATIME flag to open() operation if we can.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 14:15:24 +0000 (09:15 -0500)] 
Use O_NOATIME flag to open() operation if we can.

SVN-Revision: 2931

15 years agoFix build error on linux.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 13:28:06 +0000 (08:28 -0500)] 
Fix build error on linux.

SVN-Revision: 2930

15 years agoAdd the ability to restore atime to the directory traversals.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 12:55:50 +0000 (07:55 -0500)] 
Add the ability to restore atime to the directory traversals.

SVN-Revision: 2929

15 years agoDrop unneeded O_NOFOLLOW because we already know what
Michihiro NAKAJIMA [Thu, 20 Jan 2011 11:04:38 +0000 (06:04 -0500)] 
Drop unneeded O_NOFOLLOW because we already know what
current file is not symlink.

SVN-Revision: 2928

15 years agoAvoid build error about unused get_xfer_size() function.
Michihiro NAKAJIMA [Wed, 19 Jan 2011 15:11:32 +0000 (10:11 -0500)] 
Avoid build error about unused get_xfer_size() function.

SVN-Revision: 2927

15 years agoTry to eliminate fchdir() operation as much as we can in the directory
Michihiro NAKAJIMA [Wed, 19 Jan 2011 14:48:24 +0000 (09:48 -0500)] 
Try to eliminate fchdir() operation as much as we can in the directory
traversals, which is a new API for the read disk object.

SVN-Revision: 2926

15 years agoUse readlinkat() function if platform has.
Michihiro NAKAJIMA [Wed, 19 Jan 2011 12:04:51 +0000 (07:04 -0500)] 
Use readlinkat() function if platform has.

SVN-Revision: 2925