]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agoDisable the check for the exact output of "-tnv". The
Tim Kientzle [Thu, 16 Apr 2009 17:42:49 +0000 (13:42 -0400)] 
Disable the check for the exact output of "-tnv".  The
localized time display screws up this test.

SVN-Revision: 1004

16 years agoEliminate an extra space.
Tim Kientzle [Wed, 15 Apr 2009 21:26:53 +0000 (17:26 -0400)] 
Eliminate an extra space.

SVN-Revision: 998

16 years agoManpage touchups:
Tim Kientzle [Wed, 15 Apr 2009 19:29:44 +0000 (15:29 -0400)] 
Manpage touchups:
 * Fix tar.1 to properly format the substitution arguments
 * Fix mdoc2wiki.awk to render .It Pa and .It Ev in bold
 * Update the translated docs on the wiki.

SVN-Revision: 997

16 years agoMerge r989 from libarchive/trunk: Fix a problem where the
Tim Kientzle [Tue, 14 Apr 2009 03:47:39 +0000 (23:47 -0400)] 
Merge r989 from libarchive/trunk:  Fix a problem where the
compress decompressor would loop endlessly at end-of-file.

SVN-Revision: 992

16 years agoDocument the new "raw" format reader and fill in some
Tim Kientzle [Tue, 14 Apr 2009 02:05:39 +0000 (22:05 -0400)] 
Document the new "raw" format reader and fill in some
other missing documentation for mtree, lzma, and xz
readers.  Also, document the new convention that
setup functions return ARCHIVE_WARN if that compression
or format is supported only through an external program.
The test suite really needs this; other people might
find it amusing.

SVN-Revision: 991

16 years agoMerge libarchive 2.6
Brad King [Tue, 14 Apr 2009 02:05:39 +0000 (22:05 -0400)] 
Merge libarchive 2.6

This commit was manufactured during conversion from SVN
to merge the libarchive 2.6 branch.

16 years agoDocument the new "raw" format reader and fill in some
Tim Kientzle [Tue, 14 Apr 2009 02:05:39 +0000 (22:05 -0400)] 
Document the new "raw" format reader and fill in some
other missing documentation for mtree, lzma, and xz
readers.  Also, document the new convention that
setup functions return ARCHIVE_WARN if that compression
or format is supported only through an external program.
The test suite really needs this; other people might
find it amusing.

SVN-Revision: 991

16 years agoAdd a new "raw" format reader that just provides raw binary data from
Tim Kientzle [Tue, 14 Apr 2009 02:03:45 +0000 (22:03 -0400)] 
Add a new "raw" format reader that just provides raw binary data from
the input.  It matches (with a very low bid) any non-empty input.

This basically stubs out the archive format handling so that the
automatic decompression engine can be used for other purposes.

SVN-Revision: 990

16 years agoARCHIVE_EOF is positive. I'm going to change this in libarchive 3.0.
Tim Kientzle [Tue, 14 Apr 2009 01:29:55 +0000 (21:29 -0400)] 
ARCHIVE_EOF is positive.  I'm going to change this in libarchive 3.0.
Until then, use an explicit -1 here to flag EOF, to distinguish it
from a valid code return.

SVN-Revision: 989

16 years agoRework the read_ahead interface slightly to provide a "best-effort"
Tim Kientzle [Tue, 14 Apr 2009 01:22:43 +0000 (21:22 -0400)] 
Rework the read_ahead interface slightly to provide a "best-effort"
read_ahead_lenient() function.

While I'm here, fix two rather bizarre bugs:
1) Increment the position in the "uncompressed" stream only
   when skipping in the top filter, not within read_filter_skip.
2) When we simulate a skip by reading ahead, read against the
   current filter, not the top filter.
Fortunately, neither of these bugs are visible in the current library,
because no filter currently passes skip requests through to upstream
filters, so skip processing always happens only at the top filter.

SVN-Revision: 988

16 years agoWire up the Zip writer into the autoconf build.
Tim Kientzle [Mon, 13 Apr 2009 22:53:19 +0000 (18:53 -0400)] 
Wire up the Zip writer into the autoconf build.

SVN-Revision: 987

16 years agoAnselm Strauss' unfinished zip writer and tests.
Tim Kientzle [Mon, 13 Apr 2009 22:37:27 +0000 (18:37 -0400)] 
Anselm Strauss' unfinished zip writer and tests.
I'd like to get this finished for libarchive 2.8.

SVN-Revision: 986

16 years agoUncomment most of this again, now that the wiki builder seems
Tim Kientzle [Mon, 13 Apr 2009 22:05:44 +0000 (18:05 -0400)] 
Uncomment most of this again, now that the wiki builder seems
basically functional.

SVN-Revision: 985

16 years agoFix the translation of .Ns, which suppresses the current word space, not the next...
Tim Kientzle [Mon, 13 Apr 2009 21:54:42 +0000 (17:54 -0400)] 
Fix the translation of .Ns, which suppresses the current word space, not the next one.

SVN-Revision: 984

16 years agoRemove \& from the output.
Tim Kientzle [Mon, 13 Apr 2009 21:47:21 +0000 (17:47 -0400)] 
Remove \& from the output.

SVN-Revision: 983

16 years agoDon't try to use *bold* or _italic_ within {{{display}}}.
Tim Kientzle [Mon, 13 Apr 2009 21:44:14 +0000 (17:44 -0400)] 
Don't try to use *bold* or _italic_ within {{{display}}}.

SVN-Revision: 982

16 years agoQuote some more special characters, handle paragraph breaks properly.
Tim Kientzle [Mon, 13 Apr 2009 21:35:53 +0000 (17:35 -0400)] 
Quote some more special characters, handle paragraph breaks properly.

SVN-Revision: 981

16 years agoFix a bug in handling of bullet lists.
Tim Kientzle [Mon, 13 Apr 2009 21:27:41 +0000 (17:27 -0400)] 
Fix a bug in handling of bullet lists.

SVN-Revision: 980

16 years agoQuote trailing "*" in Cm argument.
Tim Kientzle [Mon, 13 Apr 2009 21:25:19 +0000 (17:25 -0400)] 
Quote trailing "*" in Cm argument.

SVN-Revision: 979

16 years agoRemove -nosplit after .An.
Tim Kientzle [Mon, 13 Apr 2009 21:23:34 +0000 (17:23 -0400)] 
Remove -nosplit after .An.

SVN-Revision: 978

16 years agoQuote trailing '*' in type names (e.g., "void *")
Tim Kientzle [Mon, 13 Apr 2009 21:21:44 +0000 (17:21 -0400)] 
Quote trailing '*' in type names (e.g., "void *")

SVN-Revision: 977

16 years agoQuote a leading '_'
Tim Kientzle [Mon, 13 Apr 2009 21:17:14 +0000 (17:17 -0400)] 
Quote a leading '_'

SVN-Revision: 976

16 years agoClose subsection titles.
Tim Kientzle [Mon, 13 Apr 2009 21:11:44 +0000 (17:11 -0400)] 
Close subsection titles.

SVN-Revision: 975

16 years agoFirst real attempt to convert all mdoc manpages to Wiki syntax.
Tim Kientzle [Mon, 13 Apr 2009 21:08:53 +0000 (17:08 -0400)] 
First real attempt to convert all mdoc manpages to Wiki syntax.
Including the awk script I'm using and updates to the doc generator
to produce the Wiki versions as part of the regular deployment.

SVN-Revision: 974

16 years ago2.6.992a
Tim Kientzle [Fri, 10 Apr 2009 23:00:22 +0000 (19:00 -0400)] 
2.6.992a

SVN-Revision: 949

16 years agoMerge r947 from libarchive/trunk: Avoid SIGPIPE if it's not available.
Tim Kientzle [Fri, 10 Apr 2009 21:25:58 +0000 (17:25 -0400)] 
Merge r947 from libarchive/trunk:  Avoid SIGPIPE if it's not available.

SVN-Revision: 948

16 years agoSIGPIPE doesn't always exist.
Tim Kientzle [Fri, 10 Apr 2009 21:23:59 +0000 (17:23 -0400)] 
SIGPIPE doesn't always exist.

Submitted by: Christian Ehrlicher

SVN-Revision: 947

16 years agoMerge r944 from libarchive/trunk: Fix
Tim Kientzle [Fri, 10 Apr 2009 05:50:58 +0000 (01:50 -0400)] 
Merge r944 from libarchive/trunk: Fix
a number of minor memory leaks.

SVN-Revision: 946

16 years agoProperty updates...
Tim Kientzle [Fri, 10 Apr 2009 05:41:47 +0000 (01:41 -0400)] 
Property updates...

SVN-Revision: 945

16 years agoFix a number of memory leaks:
Tim Kientzle [Fri, 10 Apr 2009 05:36:25 +0000 (01:36 -0400)] 
Fix a number of memory leaks:
 * write_set_compression_{gzip,bzip2,lzma,xz} need to call finish
   even if nothing is ever written so that the config data
   can be cleaned up.  Set the finish entry in the initial
   setup function (instead of the init function), have the
   finish function only close out the compression if there
   is a state, update the tests to exercise set up and
   tear down without any intermediate open and/or writing.
 * read_open_{fd,filename} would leak data if the fd or file
   didn't exist.  Do all of the fd/file checks before trying
   to allocate data.
 * archive_entry leaked the sourcepath field
 * support_format_mtree leaked the list of active default fields
 * several tests leaked archive_entry objects
 * test/read_open_memory has a special mode to exercise
   providing a minimal set of callbacks; unfortunately it
   omitted the close callback, which caused a leak.
 * Add a chokepoint to test/main.c where we can do something
   for every assertion.  I temporarily added a line # printf here
   to help identify the location of certain crashes.

All of this needs to be merged to libarchive/2.7 branch.

SVN-Revision: 944

16 years agoPush the version number in trunk to 2.7.900; trunk is now working towards 2.8.
Tim Kientzle [Wed, 8 Apr 2009 07:58:41 +0000 (03:58 -0400)] 
Push the version number in trunk to 2.7.900; trunk is now working towards 2.8.

SVN-Revision: 942

16 years ago2.6.991a should be the last test release prior to 2.7.0.
Tim Kientzle [Wed, 8 Apr 2009 07:43:37 +0000 (03:43 -0400)] 
2.6.991a should be the last test release prior to 2.7.0.

SVN-Revision: 940

16 years agoAllow 'make test' as a synonym for 'make check'.
Tim Kientzle [Wed, 8 Apr 2009 07:42:54 +0000 (03:42 -0400)] 
Allow 'make test' as a synonym for 'make check'.

SVN-Revision: 939

16 years agoBranch libarchive 2.7.
Tim Kientzle [Wed, 8 Apr 2009 07:09:00 +0000 (03:09 -0400)] 
Branch libarchive 2.7.

SVN-Revision: 938

16 years agoSummarize work since 2.6.
Tim Kientzle [Wed, 8 Apr 2009 07:05:42 +0000 (03:05 -0400)] 
Summarize work since 2.6.

SVN-Revision: 937

16 years agoVerify that fopen() succeeded.
Tim Kientzle [Wed, 8 Apr 2009 07:05:17 +0000 (03:05 -0400)] 
Verify that fopen() succeeded.

SVN-Revision: 936

16 years agoVerify that -p without a dirname fails.
Tim Kientzle [Sun, 5 Apr 2009 06:10:07 +0000 (02:10 -0400)] 
Verify that -p without a dirname fails.

SVN-Revision: 930

16 years agoVerify that -ot and -in (without -t) are considered errors.
Tim Kientzle [Sun, 5 Apr 2009 06:09:30 +0000 (02:09 -0400)] 
Verify that -ot and -in (without -t) are considered errors.

SVN-Revision: 929

16 years agoNew test for -Z (compress)
Tim Kientzle [Sun, 5 Apr 2009 05:47:56 +0000 (01:47 -0400)] 
New test for -Z (compress)

SVN-Revision: 928

16 years agoOoops. Correct the test name to match the filename.
Tim Kientzle [Sun, 5 Apr 2009 05:47:01 +0000 (01:47 -0400)] 
Ooops.  Correct the test name to match the filename.

SVN-Revision: 927

16 years agoRename the tests to a consistent style:
Tim Kientzle [Sun, 5 Apr 2009 05:24:45 +0000 (01:24 -0400)] 
Rename the tests to a consistent style:
  Test for -L = test_option_L_upper
  Test for -B = test_option_B_upper
  Test for -l = test_option_l
This should be reasonably legible and be sane
on case-insensitive systems.

SVN-Revision: 926

16 years agoAny pair of -i, -o, -p should be rejected.
Tim Kientzle [Sun, 5 Apr 2009 05:18:03 +0000 (01:18 -0400)] 
Any pair of -i, -o, -p should be rejected.

SVN-Revision: 925

16 years agoVerify -n option (modifier to -t) and verify some
Tim Kientzle [Sun, 5 Apr 2009 05:11:20 +0000 (01:11 -0400)] 
Verify -n option (modifier to -t) and verify some
that some nonsense arguments are properly rejected.

SVN-Revision: 924

16 years agoVerify some other cmdline boundary cases.
Tim Kientzle [Sun, 5 Apr 2009 05:09:31 +0000 (01:09 -0400)] 
Verify some other cmdline boundary cases.

SVN-Revision: 923

16 years agoFix the test name.
Tim Kientzle [Sun, 5 Apr 2009 05:03:13 +0000 (01:03 -0400)] 
Fix the test name.

SVN-Revision: 922

16 years agoBe a little smarter about finding our reference files
Tim Kientzle [Sun, 5 Apr 2009 04:41:38 +0000 (00:41 -0400)] 
Be a little smarter about finding our reference files
so that -r option isn't always needed.  This
makes it a lot easier to run the tests by hand.

SVN-Revision: 921

16 years agoTwo new tests:
Tim Kientzle [Sun, 5 Apr 2009 04:40:12 +0000 (00:40 -0400)] 
Two new tests:
  test_cmdline exercises some boundary cases in the cmdline parsing,
    including ambiguous long options, missing arguments, etc.
  test_option_C_upper exercises the -C option (the _upper is
    to prevent filename conflicts with test_option_c on case-insensitive
    systems).

SVN-Revision: 920

16 years agoSort the option list (-n comes before -o) and
Tim Kientzle [Sun, 5 Apr 2009 03:55:20 +0000 (23:55 -0400)] 
Sort the option list (-n comes before -o) and
clarify the explanation of -n just a bit.

SVN-Revision: 919

16 years agoDynamically size the buffer used for getpwuid_r and
Tim Kientzle [Sat, 4 Apr 2009 22:44:43 +0000 (18:44 -0400)] 
Dynamically size the buffer used for getpwuid_r and
getgrgid_r.  We allocate an initial buffer early
and then double it whenever we learn it is too small.
By keeping the buffer in the persistent cache state,
the cost should be very small.

SVN-Revision: 917

16 years agoPass the cache storage all the way down to the
Tim Kientzle [Sat, 4 Apr 2009 22:25:18 +0000 (18:25 -0400)] 
Pass the cache storage all the way down to the
lookup helper functions.

SVN-Revision: 916

16 years agoAccept test names on the command line, not just numbers.
Tim Kientzle [Sat, 4 Apr 2009 22:23:27 +0000 (18:23 -0400)] 
Accept test names on the command line, not just numbers.
In particular "libarchive_test test_fuzz" now works.

SVN-Revision: 915

16 years agoMake test not crash when group 0 lookup returns NULL.
Tim Kientzle [Sat, 4 Apr 2009 21:02:46 +0000 (17:02 -0400)] 
Make test not crash when group 0 lookup returns NULL.

SVN-Revision: 914

16 years agoSome privileged users can write to non-writable directories,
Tim Kientzle [Sat, 4 Apr 2009 20:29:11 +0000 (16:29 -0400)] 
Some privileged users can write to non-writable directories,
so this test needs to be skipped in that situation.

SVN-Revision: 913

16 years ago2.6.990a
Tim Kientzle [Thu, 2 Apr 2009 01:39:57 +0000 (21:39 -0400)] 
2.6.990a

SVN-Revision: 912

16 years agoFill in a few missing files.
Tim Kientzle [Thu, 2 Apr 2009 01:39:18 +0000 (21:39 -0400)] 
Fill in a few missing files.

SVN-Revision: 911

16 years agoThe distribution contains a pre-built list.h that includes
Tim Kientzle [Thu, 2 Apr 2009 01:38:45 +0000 (21:38 -0400)] 
The distribution contains a pre-built list.h that includes
test_windows.c.  By default, cmake seems to pick up the
existing list.h instead of remaking it, so we'd better
always compile test_windows.c.  It includes enough compile
guards that this is safe on all platforms.

SVN-Revision: 910

16 years agola_syslibsearchpath.m4 is no longer needed.
Tim Kientzle [Thu, 2 Apr 2009 00:41:10 +0000 (20:41 -0400)] 
la_syslibsearchpath.m4 is no longer needed.

SVN-Revision: 909

16 years agoFreeBSD build tweaks.
Tim Kientzle [Thu, 2 Apr 2009 00:36:40 +0000 (20:36 -0400)] 
FreeBSD build tweaks.

SVN-Revision: 908

16 years agoMinor adjustment to uname/gname lookup: Bump the buffer
Tim Kientzle [Thu, 2 Apr 2009 00:36:05 +0000 (20:36 -0400)] 
Minor adjustment to uname/gname lookup:  Bump the buffer
size to 128 bytes.  The buffer should be allocated dynamically
here.

SVN-Revision: 907

16 years agoFreeBSD build updates.
Tim Kientzle [Thu, 2 Apr 2009 00:35:02 +0000 (20:35 -0400)] 
FreeBSD build updates.

SVN-Revision: 906

16 years agoIssue 19: Use getpwnam_r/getgrnam_r to look up uids and gids,
Tim Kientzle [Thu, 2 Apr 2009 00:30:54 +0000 (20:30 -0400)] 
Issue 19: Use getpwnam_r/getgrnam_r to look up uids and gids,
since they're thread-safe.

SVN-Revision: 905

16 years agoIssue 18: Limit compression-level to 6 within the
Tim Kientzle [Wed, 1 Apr 2009 22:55:09 +0000 (18:55 -0400)] 
Issue 18:  Limit compression-level to 6 within the
write options processing.  Restore the test to
exercise compression-level=9, which should work now
(even though the results should not be any different
than compression-level=6).  In particular, all compression
writers should now accept a compression-level option
with values from 0 through 9.

SVN-Revision: 904

16 years agoLookup uname/gname when pulling metadata off disk.
Tim Kientzle [Wed, 1 Apr 2009 22:51:28 +0000 (18:51 -0400)] 
Lookup uname/gname when pulling metadata off disk.
Add a basic test for read_disk_entry_from file to verify this.

SVN-Revision: 903

16 years agoNow that we have command-line fallbacks for all compression
Tim Kientzle [Wed, 1 Apr 2009 22:48:35 +0000 (18:48 -0400)] 
Now that we have command-line fallbacks for all compression
formats, we can enable them unconditionally.

SVN-Revision: 902

16 years agoAdd a config.h macro for <signal.h>
Tim Kientzle [Wed, 1 Apr 2009 22:47:11 +0000 (18:47 -0400)] 
Add a config.h macro for <signal.h>

SVN-Revision: 901

16 years agoRemove an unnecessary variable.
Tim Kientzle [Wed, 1 Apr 2009 22:46:30 +0000 (18:46 -0400)] 
Remove an unnecessary variable.

SVN-Revision: 900

16 years agoOuch. Stdout is fd 1, not zero.
Tim Kientzle [Wed, 1 Apr 2009 22:05:15 +0000 (18:05 -0400)] 
Ouch.  Stdout is fd 1, not zero.

SVN-Revision: 899

16 years agoSome cleanup and testing of the XZ and LZMA writer:
Tim Kientzle [Wed, 1 Apr 2009 19:54:33 +0000 (15:54 -0400)] 
Some cleanup and testing of the XZ and LZMA writer:
 * Fix the options parser to use a separate config object.
 * Set the compression code and name at setup time.
 * Copy the gzip/bzip2 write tests to create new XZ and LZMA write tests

SVN-Revision: 898

16 years agoDecouple inttypes.h and stdint.h. Newer Interix needs both.
Joerg Sonnenberger [Wed, 1 Apr 2009 11:43:27 +0000 (07:43 -0400)] 
Decouple inttypes.h and stdint.h. Newer Interix needs both.

SVN-Revision: 897

16 years agoOuch. Remove some debugging code.
Tim Kientzle [Wed, 1 Apr 2009 07:42:23 +0000 (03:42 -0400)] 
Ouch.  Remove some debugging code.

SVN-Revision: 896

16 years agoSkip this test if we have incomplete lzma support.
Tim Kientzle [Wed, 1 Apr 2009 07:37:11 +0000 (03:37 -0400)] 
Skip this test if we have incomplete lzma support.

SVN-Revision: 895

16 years agoHave xz/lzma support fall back to the unxz/unlzma command-line utilities
Tim Kientzle [Wed, 1 Apr 2009 07:36:15 +0000 (03:36 -0400)] 
Have xz/lzma support fall back to the unxz/unlzma command-line utilities
if the libraries were unavailable at build time.  Have the public setup
functions return ARCHIVE_WARN in this case.  Update the tests to
detect this situation and simply skip the appropriate tests.

TODO: Update one of these tests to use systemf() to try
running the command-line tool; if we can find it, run the
test anyway.  That will give us some coverage of the fallback
handling.

SVN-Revision: 894

16 years agoIf the necessary libraries are missing for gzip/bzip2 writing,
Tim Kientzle [Wed, 1 Apr 2009 07:32:55 +0000 (03:32 -0400)] 
If the necessary libraries are missing for gzip/bzip2 writing,
have the public setup function return ARCHIVE_FATAL and a suitable
error message.  Alter the write tests to simply skip if the
initial compression setup returns ARCHIVE_FATAL.  This should
fix these tests on platforms without zlib/bzlib.

SVN-Revision: 893

16 years agoIf the bzip2 library isn't available, skip a lot of tests, following
Tim Kientzle [Wed, 1 Apr 2009 07:30:24 +0000 (03:30 -0400)] 
If the bzip2 library isn't available, skip a lot of tests, following
the style recently introduced for the gzip tests.

SVN-Revision: 892

16 years agoStyle improvement: If gzip compression is unsupported, just
Tim Kientzle [Wed, 1 Apr 2009 07:27:33 +0000 (03:27 -0400)] 
Style improvement:  If gzip compression is unsupported, just
exit from that point, don't put the entire rest of the test in
an else{} clause.

SVN-Revision: 891

16 years agoarchive_read_support_compression_bzip2() now supports fallback to
Tim Kientzle [Wed, 1 Apr 2009 05:48:09 +0000 (01:48 -0400)] 
archive_read_support_compression_bzip2() now supports fallback to
bunzip2 command-line program if it is compiled without bzlib support.
It returns ARCHIVE_WARN in this case, so that the test harness
(or other clients) can detect this degraded state.

SVN-Revision: 890

16 years agoarchive_read_support_compression_gzip() now returns ARCHIVE_WARN
Tim Kientzle [Wed, 1 Apr 2009 04:52:48 +0000 (00:52 -0400)] 
archive_read_support_compression_gzip() now returns ARCHIVE_WARN
if decompression is being handled via an external program.
This simplifies the many tests that need to check whether we have
full gzip support or not.  While reworking these tests, I've also
updated the style of many of them to use assertEqualFoo() instead
of plain assert() and fixed an oversight in main.c that caused it
to print an alarm if a single skip was processed multiple times.

SVN-Revision: 889

16 years agoOooops. Forgot to add check signal.h, which is used by the
Tim Kientzle [Wed, 1 Apr 2009 01:51:35 +0000 (21:51 -0400)] 
Oooops.  Forgot to add check signal.h, which is used by the
recent read_compression_program updates.

SVN-Revision: 888

16 years agoMinor svn:ignore update.
Tim Kientzle [Wed, 1 Apr 2009 01:50:39 +0000 (21:50 -0400)] 
Minor svn:ignore update.

SVN-Revision: 887

16 years ago1. Make the UTF-8 <-> Unicode conversions more robust by
Tim Kientzle [Wed, 1 Apr 2009 01:49:08 +0000 (21:49 -0400)] 
1. Make the UTF-8 <-> Unicode conversions more robust by
handling surrogate pairs correctly.  This should be general
enough (and portable enough) to be used on all platforms,
even Windows, so I've removed the Windows-specific versions
of this.

2. On POSIX systems, prefer the thread-safe wcrtomb()
for Unicode <-> current locale conversions when it's
available; fall back to wctomb() where necessary.

SVN-Revision: 886

16 years agoComment updates.
Tim Kientzle [Wed, 1 Apr 2009 01:44:30 +0000 (21:44 -0400)] 
Comment updates.

SVN-Revision: 885

16 years agoImprove the error handling here just a bit by harvesting
Tim Kientzle [Wed, 1 Apr 2009 01:42:20 +0000 (21:42 -0400)] 
Improve the error handling here just a bit by harvesting
the child (and collecting its exit status) whenever the
child closes stdout.  By not waiting until archive_close,
we catch most cases of a failed child at the first
real I/O (usually archive_read_next_header).

I'm still investigating whether it makes sense to try
pushing this even earlier...  It may be possible to
detect some child failures as early as read_open() time.

SVN-Revision: 884

16 years agoDon't carry old error text through to archive_read_close.
Tim Kientzle [Wed, 1 Apr 2009 01:39:10 +0000 (21:39 -0400)] 
Don't carry old error text through to archive_read_close.

SVN-Revision: 883

16 years agoMinor FreeBSD build fixes.
Tim Kientzle [Wed, 1 Apr 2009 01:38:31 +0000 (21:38 -0400)] 
Minor FreeBSD build fixes.

SVN-Revision: 882

16 years agoDon't recognize a file as "empty" if it couldn't be read; only
Tim Kientzle [Wed, 1 Apr 2009 01:37:54 +0000 (21:37 -0400)] 
Don't recognize a file as "empty" if it couldn't be read; only
recognize it as empty if it has zero bytes.

SVN-Revision: 881

16 years agosvn:ignore update.
Tim Kientzle [Wed, 1 Apr 2009 01:36:40 +0000 (21:36 -0400)] 
svn:ignore update.

SVN-Revision: 880

16 years agoTest the case where we try to invoke a non-existent read filter program.
Tim Kientzle [Wed, 1 Apr 2009 01:35:59 +0000 (21:35 -0400)] 
Test the case where we try to invoke a non-existent read filter program.

SVN-Revision: 879

16 years agoUpdate FreeBSD-specific Makefile
Tim Kientzle [Wed, 1 Apr 2009 01:34:58 +0000 (21:34 -0400)] 
Update FreeBSD-specific Makefile

SVN-Revision: 878

16 years agoMove the test data out of the source and into a uuencoded reference file.
Tim Kientzle [Wed, 1 Apr 2009 01:29:26 +0000 (21:29 -0400)] 
Move the test data out of the source and into a uuencoded reference file.

SVN-Revision: 877

16 years agoFix a couple of compiler errors.
Tim Kientzle [Sun, 29 Mar 2009 07:23:37 +0000 (03:23 -0400)] 
Fix a couple of compiler errors.

SVN-Revision: 876

16 years agoTest the bzip2 writer, add support for a "compression-level" option.
Tim Kientzle [Sun, 29 Mar 2009 07:20:28 +0000 (03:20 -0400)] 
Test the bzip2 writer, add support for a "compression-level" option.

SVN-Revision: 875

16 years agoTest the compression code and name.
Tim Kientzle [Sun, 29 Mar 2009 07:18:01 +0000 (03:18 -0400)] 
Test the compression code and name.

SVN-Revision: 874

16 years agoWe set the options handler in the install function; we don't need to
Tim Kientzle [Sun, 29 Mar 2009 07:17:25 +0000 (03:17 -0400)] 
We set the options handler in the install function; we don't need to
set it again in the init function.

SVN-Revision: 873

16 years agoOnly return ARCHIVE_WARN from set_options if no format AND no compressor
Tim Kientzle [Sun, 29 Mar 2009 07:16:15 +0000 (03:16 -0400)] 
Only return ARCHIVE_WARN from set_options if no format AND no compressor
can use these options.
Clear errors on entry to compressor_options and format_options in an
attempt to reduce the redundancy a bit.  This needs to be refactored
somewhat to improve the error messages.

SVN-Revision: 872

16 years agoMore work on extending test coverage...
Tim Kientzle [Sun, 29 Mar 2009 06:34:42 +0000 (02:34 -0400)] 
More work on extending test coverage...

Test the gzip compressor more carefully, including exercising
the compress-level option.  Fix the option setter to use
a separate config data structure so that configuration options
such as compression level can be set before the compressor
is actually initialized.

SVN-Revision: 871

16 years agoOnly allow options to be changed up until the archive is opened.
Tim Kientzle [Sun, 29 Mar 2009 06:32:12 +0000 (02:32 -0400)] 
Only allow options to be changed up until the archive is opened.

SVN-Revision: 870

16 years agoOoops. I forgot to remove the declarations when I removed the
Tim Kientzle [Sun, 29 Mar 2009 06:29:16 +0000 (02:29 -0400)] 
Ooops.  I forgot to remove the declarations when I removed the
opener functions.

SVN-Revision: 869

16 years agoImprove test coverage:
Tim Kientzle [Sun, 29 Mar 2009 04:31:57 +0000 (00:31 -0400)] 
Improve test coverage:
* Add new tests of archive_{read,write}_open_{fd,FILE,filename}
* Refactor the corresponding code to reduce the number of unreachable
  cases and eliminate a lot of duplicated code.  In particular,
  {read,write}_open_filename now simply invoke {read,write}_open_fd to
  handle handle the fallback case of reading stdin when called with an
  empty filename.
* Eliminate the unnecessary "open" callbacks; "open" callbacks are
  never needed (I plan to eliminate them from the API someday).

SVN-Revision: 868

16 years agoReturn success if "dironly" flag is being manipulated.
Tim Kientzle [Sun, 29 Mar 2009 03:22:58 +0000 (23:22 -0400)] 
Return success if "dironly" flag is being manipulated.

SVN-Revision: 867

16 years agoSome extra files that were omitted from the distribution.
Tim Kientzle [Fri, 27 Mar 2009 07:06:00 +0000 (03:06 -0400)] 
Some extra files that were omitted from the distribution.

SVN-Revision: 866