]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
17 years agoOn Windows, This breakpoint exception is no longer needed.
Michihiro NAKAJIMA [Mon, 19 Jan 2009 04:55:52 +0000 (23:55 -0500)] 
On Windows, This breakpoint exception is no longer needed.
We can see results of libarchive_test at
Testing/Temporary/LastTest.log.

SVN-Revision: 451

17 years agoOn Windows, We can detect zlib and bzip2.
Michihiro NAKAJIMA [Mon, 19 Jan 2009 04:13:08 +0000 (23:13 -0500)] 
On Windows, We can detect zlib and bzip2.
And libarchive works fine.

SVN-Revision: 450

17 years agoRemove check-TEST target which cannot work.
Michihiro NAKAJIMA [Mon, 19 Jan 2009 01:06:42 +0000 (20:06 -0500)] 
Remove check-TEST target which cannot work.

SVN-Revision: 449

17 years agoOn Windows, Directory cannot be read only mode by chmod.
Michihiro NAKAJIMA [Mon, 19 Jan 2009 00:53:58 +0000 (19:53 -0500)] 
On Windows, Directory cannot be read only mode by chmod.

SVN-Revision: 448

17 years agoRely on the compiler's include search path to find config.h files.
Tim Kientzle [Sun, 18 Jan 2009 19:22:22 +0000 (14:22 -0500)] 
Rely on the compiler's include search path to find config.h files.
This works much better when building with a variety of build systems;
all of them can edit the include path but not all of them put the
built configure files in the same place.

SVN-Revision: 443

17 years agoMore work on out-of-source builds. Put the YACC output files
Tim Kientzle [Sun, 18 Jan 2009 19:21:01 +0000 (14:21 -0500)] 
More work on out-of-source builds.  Put the YACC output files
and the constructed config.h file in the binary dir

SVN-Revision: 442

17 years agoThis macro file was looking for its companion C code in the binary dir,
Tim Kientzle [Sun, 18 Jan 2009 19:19:56 +0000 (14:19 -0500)] 
This macro file was looking for its companion C code in the binary dir,
it should have been looking in the source dir.

SVN-Revision: 441

17 years agoEliminate compiling warning.
Michihiro NAKAJIMA [Sun, 18 Jan 2009 13:05:18 +0000 (08:05 -0500)] 
Eliminate compiling warning.

SVN-Revision: 440

17 years agoEliminate many warnings when link libarchive_test
Michihiro NAKAJIMA [Sun, 18 Jan 2009 13:00:43 +0000 (08:00 -0500)] 
Eliminate many warnings when link libarchive_test
on Windows.
This definition does not affect other platform.

SVN-Revision: 439

17 years agoRemove unnecessary definitions.
Michihiro NAKAJIMA [Sun, 18 Jan 2009 11:18:03 +0000 (06:18 -0500)] 
Remove unnecessary definitions.

SVN-Revision: 438

17 years agoMove the cmake-specific config.h.in into the "cmake" dir.
Tim Kientzle [Sun, 18 Jan 2009 08:33:28 +0000 (03:33 -0500)] 
Move the cmake-specific config.h.in into the "cmake" dir.

SVN-Revision: 437

17 years agoUpdate comments, try to make the structure a little clearer.
Tim Kientzle [Sun, 18 Jan 2009 08:30:17 +0000 (03:30 -0500)] 
Update comments, try to make the structure a little clearer.

SVN-Revision: 436

17 years ago".." is unnecessary here.
Tim Kientzle [Sun, 18 Jan 2009 08:20:07 +0000 (03:20 -0500)] 
".." is unnecessary here.

SVN-Revision: 435

17 years agoMinor style adjustments.
Tim Kientzle [Sun, 18 Jan 2009 08:19:39 +0000 (03:19 -0500)] 
Minor style adjustments.

SVN-Revision: 434

17 years agoMany improvements to cmake builds on FreeBSD, though there are still some rough edges:
Tim Kientzle [Sun, 18 Jan 2009 08:10:52 +0000 (03:10 -0500)] 
Many improvements to cmake builds on FreeBSD, though there are still some rough edges:

Better:
  * "make && make test" works and tests pass
  * -Denable_tar=no -Denable_cpio=no -Denable_test=no are all supported
  * Some progress towards out-of-source builds:
     "mkdir build && cd build && cmake .." now doesn't pollute the dist dir

Still broken:
  * out-of-source build attempt doesn't create a Makefile?
  * out-of-source build needs to add compile option for locating config.h
  * "make clean" doesn't work
  * "make install" doesn't work

I've probably screwed up Windows builds... <sigh>

SVN-Revision: 433

17 years agoRemove PACKAGE symbols from cmake build. None of the libarchive
Tim Kientzle [Sun, 18 Jan 2009 06:54:26 +0000 (01:54 -0500)] 
Remove PACKAGE symbols from cmake build.  None of the libarchive
code uses these.

SVN-Revision: 432

17 years agoThe various PACKAGE macros are entirely unused by libarchive, so
Tim Kientzle [Sun, 18 Jan 2009 06:53:19 +0000 (01:53 -0500)] 
The various PACKAGE macros are entirely unused by libarchive, so
don't need to be preserved in the cmake-based build.

SVN-Revision: 431

17 years agoHelp archive_read_disk_entry_from_file.c build on Windows and Linux.
Tim Kientzle [Sun, 18 Jan 2009 05:42:00 +0000 (00:42 -0500)] 
Help archive_read_disk_entry_from_file.c build on Windows and Linux.

Submitted by: Michihiro NAKAJIMA

SVN-Revision: 430

17 years agoRemember to do this someday...
Tim Kientzle [Sun, 18 Jan 2009 05:39:38 +0000 (00:39 -0500)] 
Remember to do this someday...

SVN-Revision: 429

17 years agoOn Windows, do not generate check-TEST.CMD if the one
Michihiro NAKAJIMA [Sun, 18 Jan 2009 04:33:33 +0000 (23:33 -0500)] 
On Windows, do not generate check-TEST.CMD if the one
already exists and is older than CMakeLists.txt.

SVN-Revision: 428

17 years agoMake sure we do not build bsdtar and bsdcpio on Windows.
Michihiro NAKAJIMA [Sun, 18 Jan 2009 04:28:04 +0000 (23:28 -0500)] 
Make sure we do not build bsdtar and bsdcpio on Windows.

SVN-Revision: 427

17 years agoFix handling of quality version.
Michihiro NAKAJIMA [Sun, 18 Jan 2009 04:21:43 +0000 (23:21 -0500)] 
Fix handling of quality version.

SVN-Revision: 426

17 years agoOooops. I put the cmake files in the wrong place. Push them down into
Tim Kientzle [Sat, 17 Jan 2009 09:38:50 +0000 (04:38 -0500)] 
Oooops.  I put the cmake files in the wrong place.  Push them down into
the 'trunk' directory where they belong. ;-/

SVN-Revision: 425

17 years agoUse the new archive_read_disk API to pull metadata off of the disk.
Tim Kientzle [Sat, 17 Jan 2009 09:06:31 +0000 (04:06 -0500)] 
Use the new archive_read_disk API to pull metadata off of the disk.
This removes almost all knowledge of ACLs and extended attributes
from bsdtar.

SVN-Revision: 423

17 years agoAdd new test case.
Tim Kientzle [Thu, 15 Jan 2009 05:23:18 +0000 (00:23 -0500)] 
Add new test case.

SVN-Revision: 422

17 years agoEnable bsdcpio by default.
Tim Kientzle [Thu, 15 Jan 2009 05:23:01 +0000 (00:23 -0500)] 
Enable bsdcpio by default.

SVN-Revision: 421

17 years agoRephrase the error summary slightly. We don't really know
Tim Kientzle [Thu, 15 Jan 2009 05:19:18 +0000 (00:19 -0500)] 
Rephrase the error summary slightly.  We don't really know
how many assertions were skipped.

SVN-Revision: 420

17 years agoIn archive_write_disk: If archive_write_header() fails to create
Tim Kientzle [Thu, 15 Jan 2009 05:17:08 +0000 (00:17 -0500)] 
In archive_write_disk:  If archive_write_header() fails to create
the file, that's a failure and should return ARCHIVE_FAILED.
Metadata restore failures still return ARCHIVE_WARN, because
that's non-critical.  Fix test_write_disk_secure test to
verify the correct return code in one case; add test_write_disk_failures
to do another very simple test of restore failure.

In particular, this fixes the problem found with xattr restores
that a failure in setting an xattr would prevent the file and other
metadata from being written.  Now, an xattr restore failure generates
a warning but does not prevent the rest of that file's data and metadata
from being properly written.

SVN-Revision: 419

17 years agoMerge r187126 from FreeBSD-CURRENT:
Tim Kientzle [Tue, 13 Jan 2009 04:58:16 +0000 (23:58 -0500)] 
Merge r187126 from FreeBSD-CURRENT:
"The first part is just to give more info, the latter part fixes
an error to read files past the 32bit byte offset, for instance
on DVDs."

Submitted by: phk@

SVN-Revision: 418

17 years agoInclude test_extattr_freebsd.c in the portable build system.
Tim Kientzle [Mon, 12 Jan 2009 05:15:26 +0000 (00:15 -0500)] 
Include test_extattr_freebsd.c in the portable build system.

SVN-Revision: 417

17 years agoWrite side of FreeBSD-specific extended attribute support.
Tim Kientzle [Mon, 12 Jan 2009 05:14:24 +0000 (00:14 -0500)] 
Write side of FreeBSD-specific extended attribute support.

SVN-Revision: 416

17 years agoInclude a newline at end of file.
Tim Kientzle [Sat, 10 Jan 2009 21:04:13 +0000 (16:04 -0500)] 
Include a newline at end of file.

SVN-Revision: 415

17 years agoMerge r407 from trunk, in order to fix
Tim Kientzle [Fri, 9 Jan 2009 06:50:25 +0000 (01:50 -0500)] 
Merge r407 from trunk, in order to fix
Issue 3: http://code.google.com/p/libarchive/issues/detail?id=3

SVN-Revision: 408

17 years agoFix Issue 3: http://code.google.com/p/libarchive/issues/detail?id=3
Tim Kientzle [Fri, 9 Jan 2009 06:49:07 +0000 (01:49 -0500)] 
Fix Issue 3: http://code.google.com/p/libarchive/issues/detail?id=3

This occurs with Zip archives that have entries that are
compressed with deflate even though they are zero bytes
long.  Libarchive's zip handler returns a zero-byte block
from the decompression before returning end-of-entry.
Writing that zero-byte block back to the filesystem
triggered some code intended to catch misuse of the API.

The fix suppresses the warning in the case of a zero-byte
write request.

This is all very silly: compressing a zero-byte file is
a silly thing to do, libarchive's zip format handler is
returning a silly sequence of responses, and the warning
is silly.  Oh, well.  At least I fixed the warning. ;-)

SVN-Revision: 407

17 years agoAdd entry archive_write_set_format_mtree.c which
Michihiro NAKAJIMA [Thu, 8 Jan 2009 16:34:24 +0000 (11:34 -0500)] 
Add entry archive_write_set_format_mtree.c which
had been forgot to entry since that one imported
into Visual Studio project file.

SVN-Revision: 406

17 years agoarchive_read_disk_entry_from_file() knows how to pull
Tim Kientzle [Thu, 8 Jan 2009 06:52:41 +0000 (01:52 -0500)] 
archive_read_disk_entry_from_file() knows how to pull
all metadata about a file from the filesystem to populate
an entry object.  This takes advantage of the user/group
name lookup capabilities of the archive_read_disk object.

This should simplify bsdtar and bsdcpio by removing the
comparable code from those utilities.

Tests and documentation forthcoming...

SVN-Revision: 405

17 years agoAdd new archive_read* files to the autoconf/automake build system.
Tim Kientzle [Thu, 8 Jan 2009 06:43:17 +0000 (01:43 -0500)] 
Add new archive_read* files to the autoconf/automake build system.

SVN-Revision: 404

17 years agoReplace a path separator to '/' in archive_write_disk.c,
Michihiro NAKAJIMA [Thu, 8 Jan 2009 01:40:05 +0000 (20:40 -0500)] 
Replace a path separator to '/' in archive_write_disk.c,
if the path separator of the running system is not '/'.
Because of libarchive expect the path separator
is '/' where program check the one.

SVN-Revision: 403

17 years agoOn Windows, now archive_read_disk_set_standard_lookup.c is linked.
Michihiro NAKAJIMA [Wed, 7 Jan 2009 23:42:22 +0000 (18:42 -0500)] 
On Windows, now archive_read_disk_set_standard_lookup.c is linked.
We call archive_read_disk_set_standard_lookup() function on
libarchive_test again, and check a value which that function
returns to what the feature is available.
This aims that programs which use libarchive shouldn't have to
to know what features are available on a particular platform.

Suggested by Tim

SVN-Revision: 402

17 years agoOn Windows, we do not call archive_read_disk_set_standard_lookup()
Michihiro NAKAJIMA [Wed, 7 Jan 2009 14:58:19 +0000 (09:58 -0500)] 
On Windows, we do not call archive_read_disk_set_standard_lookup()
function on libarchive_test, currently that one isn't linked.

SVN-Revision: 401

17 years agoCatch up r399 for Visual Studio except
Michihiro NAKAJIMA [Wed, 7 Jan 2009 13:40:01 +0000 (08:40 -0500)] 
Catch up r399 for Visual Studio except
archive_read_disk_set_standard_lookup.c

SVN-Revision: 400

17 years agoStart of archive_read_disk API.
Tim Kientzle [Wed, 7 Jan 2009 06:38:55 +0000 (01:38 -0500)] 
Start of archive_read_disk API.

Right now, this is just a handle for username/group name lookups
and the associated caches.  Soon, this will hold machinery to
populate archive_entry objects from files on disk (which relies
on efficient uname/gname lookups).

SVN-Revision: 399

17 years agoMinor style fix: Test for null bidder object before trying to
Tim Kientzle [Wed, 7 Jan 2009 05:58:23 +0000 (00:58 -0500)] 
Minor style fix:  Test for null bidder object before trying to
allocate state.

SVN-Revision: 398

17 years agoBad typo. finish is not spelled "close"
Tim Kientzle [Wed, 7 Jan 2009 05:57:48 +0000 (00:57 -0500)] 
Bad typo.  finish is not spelled "close"

SVN-Revision: 397

17 years agoFreeBSD has acl_get_perm_np()
Tim Kientzle [Wed, 7 Jan 2009 05:15:56 +0000 (00:15 -0500)] 
FreeBSD has acl_get_perm_np()

SVN-Revision: 396

17 years agoCorrect a very minor memory leak in test/main.c.
Tim Kientzle [Wed, 7 Jan 2009 05:15:09 +0000 (00:15 -0500)] 
Correct a very minor memory leak in test/main.c.
Exiting on an illegal argument failed to free the
allocated buffer holding the path of the reference directory.

SVN-Revision: 395

17 years agoPlug some memory leaks in the FreeBSD ACL tester.
Tim Kientzle [Wed, 7 Jan 2009 05:14:08 +0000 (00:14 -0500)] 
Plug some memory leaks in the FreeBSD ACL tester.

SVN-Revision: 394

17 years agoFix the filter close handling. Since the archive_read core
Tim Kientzle [Wed, 7 Jan 2009 05:12:07 +0000 (00:12 -0500)] 
Fix the filter close handling.  Since the archive_read core
creates the filter object, it should also free it.  This
also corrects a small memory leak in
archive_read_support_compression_program.

SVN-Revision: 393

17 years agoOoops. Rename the close/finish entries in the header file as well.
Tim Kientzle [Wed, 7 Jan 2009 05:10:48 +0000 (00:10 -0500)] 
Ooops.  Rename the close/finish entries in the header file as well.

SVN-Revision: 392

17 years agoVirtualize archive_read_close and archive_read_finish.
Tim Kientzle [Wed, 7 Jan 2009 05:06:03 +0000 (00:06 -0500)] 
Virtualize archive_read_close and archive_read_finish.

SVN-Revision: 391

17 years agoclose and finish are really very generic operations;
Tim Kientzle [Wed, 7 Jan 2009 05:03:15 +0000 (00:03 -0500)] 
close and finish are really very generic operations;
rename them to reflect this.

SVN-Revision: 390

17 years agoFix a memory leak: ISO9660 handler leaked a file entry
Tim Kientzle [Wed, 7 Jan 2009 04:55:58 +0000 (23:55 -0500)] 
Fix a memory leak:  ISO9660 handler leaked a file entry
structure whenever the file entry had a garbage CE offset.

SVN-Revision: 389

17 years agoOn Windows, remove fstat64()/get_dev_ino()/
Michihiro NAKAJIMA [Tue, 6 Jan 2009 14:27:47 +0000 (09:27 -0500)] 
On Windows, remove fstat64()/get_dev_ino()/
get_dev_ino_fd()/get_dev_ino_filename().
Those functions are no longer needed. now we can
use la_stat() instead of fstat64() when defined
__USE_LARGEFILE and __USE_FILE_OFFSET64.

SVN-Revision: 388

17 years agoOn Windows, support long path name which is longer
Michihiro NAKAJIMA [Tue, 6 Jan 2009 14:16:24 +0000 (09:16 -0500)] 
On Windows, support long path name which is longer
than MAX_PATH(260). And add relationally new
features.
- Many file io functions such as open/mkdir/rmdir..etc
  are replaced. Some new functions are using Win32 API
  directly, some ones are wrapped orignal function.
- Add new feature to new stat() family.
   1. set st_ino data by nFileIndexHigh and
      nFileIndexLow of BY_HANDLE_FILE_INFORMATION.
   2. set st_nlink data by nNumberOfLinks of
      BY_HANDLE_FILE_INFORMATION.
   3. set st_dev data by dwVolumeSerialNumber by
      BY_HANDLE_FILE_INFORMATION.
- Rewrite link() function and add suuport hard-link.
- The new open() function has been changed error
  handling to sumulate other POSIX systems.

SVN-Revision: 387

17 years agoOn Windows, throw a debug exception where exit program
Michihiro NAKAJIMA [Tue, 6 Jan 2009 13:01:25 +0000 (08:01 -0500)] 
On Windows, throw a debug exception where exit program
because a console window will be closed and then we do
not see test results anymore.

SVN-Revision: 386

17 years agoStyle fix and add comments.
Michihiro NAKAJIMA [Tue, 6 Jan 2009 12:43:26 +0000 (07:43 -0500)] 
Style fix and add comments.

SVN-Revision: 385

17 years agoCast away compiling warning with Win64.
Michihiro NAKAJIMA [Tue, 6 Jan 2009 12:37:21 +0000 (07:37 -0500)] 
Cast away compiling warning with Win64.

SVN-Revision: 384

17 years agoCorrect spelling.
Michihiro NAKAJIMA [Tue, 6 Jan 2009 12:31:28 +0000 (07:31 -0500)] 
Correct spelling.

SVN-Revision: 383

17 years agoAdd checking parameter values in la_read function.
Michihiro NAKAJIMA [Tue, 6 Jan 2009 12:23:15 +0000 (07:23 -0500)] 
Add checking parameter values in la_read function.

SVN-Revision: 382

17 years agoDoes not return error when nbytes which is a size of the write date is larger then...
Michihiro NAKAJIMA [Tue, 6 Jan 2009 12:16:54 +0000 (07:16 -0500)] 
Does not return error when nbytes which is a size of the write date is larger then UINT32_MAX.

SVN-Revision: 381

17 years agoUse ULARGE_INTEGER instead of uint64_t for code simply.
Michihiro NAKAJIMA [Tue, 6 Jan 2009 12:00:11 +0000 (07:00 -0500)] 
Use ULARGE_INTEGER instead of uint64_t for code simply.

SVN-Revision: 380

17 years agoOne more fix to compiling error when zlib/bzlib is unavailable
Michihiro NAKAJIMA [Tue, 6 Jan 2009 09:33:13 +0000 (04:33 -0500)] 
One more fix to compiling error when zlib/bzlib is unavailable

SVN-Revision: 379

17 years agoIn the big decompression refactor in r364, I broke the
Tim Kientzle [Tue, 6 Jan 2009 05:36:33 +0000 (00:36 -0500)] 
In the big decompression refactor in r364, I broke the
build for the case where zlib/bzlib is unavailable.

SVN-Revision: 378

17 years agoMerge r376 from trunk: preven Bison from redefining malloc() and free()
Tim Kientzle [Tue, 6 Jan 2009 05:28:20 +0000 (00:28 -0500)] 
Merge r376 from trunk: preven Bison from redefining malloc() and free()

SVN-Revision: 377

17 years agoTry to prevent Bison from redefining malloc() and free(). <sigh>
Tim Kientzle [Tue, 6 Jan 2009 05:27:56 +0000 (00:27 -0500)] 
Try to prevent Bison from redefining malloc() and free().  <sigh>

SVN-Revision: 376

17 years agoMerge r374 from trunk: Fix a typo
Tim Kientzle [Tue, 6 Jan 2009 05:26:48 +0000 (00:26 -0500)] 
Merge r374 from trunk: Fix a typo

Submitted by: Peter Hjalmarsson

SVN-Revision: 375

17 years agoFix a silly typo.
Tim Kientzle [Tue, 6 Jan 2009 05:25:29 +0000 (00:25 -0500)] 
Fix a silly typo.

Submitted by: Peter Hjalmarsson

SVN-Revision: 374

17 years agoMark trunk as 2.6.900a to clearly separate it from 2.6 release branch.
Tim Kientzle [Sun, 4 Jan 2009 08:03:12 +0000 (03:03 -0500)] 
Mark trunk as 2.6.900a to clearly separate it from 2.6 release branch.

SVN-Revision: 372

17 years agoNews update
Tim Kientzle [Sun, 4 Jan 2009 08:02:27 +0000 (03:02 -0500)] 
News update

SVN-Revision: 371

17 years agoMerge r355 from release/2.6: Fix cpio build without zlib or bzlib.
Tim Kientzle [Sun, 4 Jan 2009 08:01:14 +0000 (03:01 -0500)] 
Merge r355 from release/2.6: Fix cpio build without zlib or bzlib.

SVN-Revision: 370

17 years agoMerge r354 from release/2.6: Fix multiple -s options.
Tim Kientzle [Sun, 4 Jan 2009 08:00:14 +0000 (03:00 -0500)] 
Merge r354 from release/2.6:  Fix multiple -s options.
Add test_option_s to exercise basic -s handling.

Thanks to Wayne Marshall for reporting this problem.

SVN-Revision: 369

17 years agoMerge r353 from release/2.6: Fixes to assertEmptyFile() and assertFileContents()
Tim Kientzle [Sun, 4 Jan 2009 07:57:36 +0000 (02:57 -0500)] 
Merge r353 from release/2.6: Fixes to assertEmptyFile() and assertFileContents()

SVN-Revision: 368

17 years agosvn:ignore tuneup.
Tim Kientzle [Sun, 4 Jan 2009 02:03:42 +0000 (21:03 -0500)] 
svn:ignore tuneup.

SVN-Revision: 365

17 years agoBig decompression refactor, Phase 2.
Tim Kientzle [Sun, 4 Jan 2009 02:02:36 +0000 (21:02 -0500)] 
Big decompression refactor, Phase 2.

First, I've changed terminology: the objects that were called
"sources" and "readers" in libarchive 2.6 are now called "filters" and
"filter bidders."  I think this reads a lot better.  It also more
cleanly conveys that filters can be stacked and are not limited
to decompression.

Filter objects are now created and owned by the archive_read core,
which attaches reblocking logic to the output of each one.  This
allows filters to use the read_ahead/consume protocol to pull data
from upstream filters (the client itself is also handled as a filter,
one with no upstream).  Peek/consume read semantics greatly simplify
bidding and should make it easier to handle other lookahead scenarios
such as concatenated gzip streams.

Bid protocol:
  * Filters install bidders into the core.
  * Bidder has a "bid" function which is handled an upstream filter to taste.
  * Core creates a filter object for the winner and allows the filter
    to initialize that object.
  * Core repeats the bid with the new filter to build out filter streams.

Filter protocol:
  * read() can use peek/consume to pull from upstream filter, returns
    arbitrary blocks
  * close() releases private data
  * Optional skip() seeks forward in the stream.

The core obviously provides a lot more support in the way of reblocking
logic so that downstream filters can use simple peek/consume semantics
while upstream filters can provide arbitrary blocks without regard
for downstream needs.  The lazy reblocking makes this pretty efficient
in practice.

Upcoming:  I think the core should provide a "prepare" stage that's called
before the first read.  Concatenated gzip streams would go back to prepare
after close.  It will require a little thought to properly separate the
init() and prepare() operations.

SVN-Revision: 364

17 years agoCatch up with a bunch of file renaming that occurred a little while back.
Tim Kientzle [Sun, 4 Jan 2009 01:50:15 +0000 (20:50 -0500)] 
Catch up with a bunch of file renaming that occurred a little while back.

SVN-Revision: 363

17 years agoMinor fix to argument parser.
Tim Kientzle [Sun, 4 Jan 2009 00:55:26 +0000 (19:55 -0500)] 
Minor fix to argument parser.

SVN-Revision: 362

17 years agoA better implementation of read() for Windows.
Tim Kientzle [Sat, 3 Jan 2009 05:56:45 +0000 (00:56 -0500)] 
A better implementation of read() for Windows.

Submitted by: Michihiro NAKAJIMA

SVN-Revision: 361

17 years agoImplement ftruncate()
Tim Kientzle [Sat, 3 Jan 2009 05:55:34 +0000 (00:55 -0500)] 
Implement ftruncate()

Submitted by: Michihiro NAKAJIMA

SVN-Revision: 360

17 years agoFix error handling. I was mistaken to use _dosmapper() function.
Tim Kientzle [Sat, 3 Jan 2009 05:54:28 +0000 (00:54 -0500)] 
Fix error handling. I was mistaken to use _dosmapper() function.
                              - Michihiro NAKAJIMA

SVN-Revision: 359

17 years agoOn Windows, throw a debug exception on a fatal internal error.
Tim Kientzle [Sat, 3 Jan 2009 02:48:46 +0000 (21:48 -0500)] 
On Windows, throw a debug exception on a fatal internal error.

Submitted by: Michihiro NAKAJIMA

SVN-Revision: 358

17 years agoCorrect test when bzip2 is unsupported.
Tim Kientzle [Sat, 3 Jan 2009 02:47:41 +0000 (21:47 -0500)] 
Correct test when bzip2 is unsupported.

Submitted by: Michihiro NAKAJIMA

SVN-Revision: 357

17 years agoEliminate another Windows special-case from archive_entry.c
Tim Kientzle [Sat, 3 Jan 2009 02:46:08 +0000 (21:46 -0500)] 
Eliminate another Windows special-case from archive_entry.c

Submitted by: Michihiro NAKAJIMA

SVN-Revision: 356

17 years agoAllo cpio to compile without zlib or bzlib.
Tim Kientzle [Fri, 2 Jan 2009 07:27:18 +0000 (02:27 -0500)] 
Allo cpio to compile without zlib or bzlib.

SVN-Revision: 355

17 years agoCreate test_option_s to exercise basic -s handling.
Tim Kientzle [Thu, 1 Jan 2009 02:07:29 +0000 (21:07 -0500)] 
Create test_option_s to exercise basic -s handling.
In particular, add some checks for multiple -s options in order
to verify a bug reported where multiple -s options have no effect.

A bad typo was causing the substitution-matching loop to always exit
after checking the first match.

Fixed.

Thanks to Wayne Marshall for reporting this problem.

SVN-Revision: 354

17 years agoFix assertEmptyFile(): Count a missing file as a failure
Tim Kientzle [Thu, 1 Jan 2009 02:04:56 +0000 (21:04 -0500)] 
Fix assertEmptyFile(): Count a missing file as a failure
Fix assertFileContents(): A missing file is different from an empty file.

SVN-Revision: 353

17 years agoThe code to support concatenated gzip streams is broken and
Tim Kientzle [Thu, 1 Jan 2009 00:57:15 +0000 (19:57 -0500)] 
The code to support concatenated gzip streams is broken and
it breaks some non-concatenated streams.  So just disable this
by always marking EOF immediately when we hit the end of a
gzip stream.

SVN-Revision: 352

17 years agoUse a small synthetic block size when testing basic LZMA support.
Tim Kientzle [Wed, 31 Dec 2008 07:53:09 +0000 (02:53 -0500)] 
Use a small synthetic block size when testing basic LZMA support.

SVN-Revision: 351

17 years agoOn second thought, argc is silly.
Tim Kientzle [Wed, 31 Dec 2008 07:52:33 +0000 (02:52 -0500)] 
On second thought, argc is silly.

SVN-Revision: 350

17 years agoFix libarchive_test with no arguments.
Tim Kientzle [Wed, 31 Dec 2008 07:46:35 +0000 (02:46 -0500)] 
Fix libarchive_test with no arguments.

SVN-Revision: 349

17 years agoSkip testing character conversion failures on platforms
Tim Kientzle [Wed, 31 Dec 2008 07:20:56 +0000 (02:20 -0500)] 
Skip testing character conversion failures on platforms
where the "C" locale never generates such failures.
(Cygwin apparently has an overly-permissive "C" locale;
wctomb() never fails.)

SVN-Revision: 348

17 years agoMore coding style improvements to test cases.
Tim Kientzle [Wed, 31 Dec 2008 07:19:18 +0000 (02:19 -0500)] 
More coding style improvements to test cases.

SVN-Revision: 347

17 years agoStyle fixes to test case.
Tim Kientzle [Wed, 31 Dec 2008 07:18:02 +0000 (02:18 -0500)] 
Style fixes to test case.

SVN-Revision: 346

17 years agoStyle fix to test case.
Tim Kientzle [Wed, 31 Dec 2008 07:17:19 +0000 (02:17 -0500)] 
Style fix to test case.

SVN-Revision: 345

17 years agoMerge r343 from trunk, fixes Issue 1.
Tim Kientzle [Wed, 31 Dec 2008 07:07:58 +0000 (02:07 -0500)] 
Merge r343 from trunk, fixes Issue 1.

SVN-Revision: 344

17 years agoAllow __LA_SSIZE_T and __LA_INT64_T to leak out of archive.h, since
Tim Kientzle [Wed, 31 Dec 2008 07:05:10 +0000 (02:05 -0500)] 
Allow __LA_SSIZE_T and __LA_INT64_T to leak out of archive.h, since
they're needed to properly declare the I/O callbacks.

Fixes Issue 1: http://code.google.com/p/libarchive/issues/detail?id=1

SVN-Revision: 343

17 years agoIsolate some Win32 issues to the archive_windows.[ch] files.
Tim Kientzle [Wed, 31 Dec 2008 06:59:11 +0000 (01:59 -0500)] 
Isolate some Win32 issues to the archive_windows.[ch] files.

Submitted by: Michihiro NAKAJIMA

SVN-Revision: 342

17 years agoMinor fixes for Visual Studio.
Tim Kientzle [Wed, 31 Dec 2008 06:57:35 +0000 (01:57 -0500)] 
Minor fixes for Visual Studio.

Submitted by: Michihiro NAKAJIMA

SVN-Revision: 341

17 years agoIf zlib/bzlib don't exist, use stub implementations of
Tim Kientzle [Wed, 31 Dec 2008 06:56:54 +0000 (01:56 -0500)] 
If zlib/bzlib don't exist, use stub implementations of
archive_write_set_compression_gzip/archive_write_set_compression_bzip2
that always return errors.

Submitted by: Michihiro NAKAJIMA

SVN-Revision: 340

17 years agolibarchive/test/platform.c no longer exists; remove it from the Visual Studio solutio...
Tim Kientzle [Wed, 31 Dec 2008 06:54:24 +0000 (01:54 -0500)] 
libarchive/test/platform.c no longer exists; remove it from the Visual Studio solution files.

Submitted by: Michihiro NAKAJIMA

SVN-Revision: 339

17 years agoPROJECTS and NEWS updates.
Tim Kientzle [Mon, 29 Dec 2008 07:14:34 +0000 (02:14 -0500)] 
PROJECTS and NEWS updates.

SVN-Revision: 338