]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agoUse CMAKE_PREFIX_PATH directly by the people who use cmake.
Michihiro NAKAJIMA [Sat, 31 Jan 2009 06:18:47 +0000 (01:18 -0500)] 
Use CMAKE_PREFIX_PATH directly by the people who use cmake.
On Windows, set "C:/Program Files/GnuWin32" to
CMAKE_PREFIX_PATH instead of "C:/Program Files/GnuWin32/lib".
Add check that path is existed.

SVN-Revision: 520

16 years agoFix build when neither <rmd160.h> nor <ripemd.h> nor <openssl/ripemd.h>
Tim Kientzle [Sat, 31 Jan 2009 05:24:19 +0000 (00:24 -0500)] 
Fix build when neither <rmd160.h> nor <ripemd.h> nor <openssl/ripemd.h>
is available.

SVN-Revision: 519

16 years agoFreeBSD has <ctype.h>
Tim Kientzle [Sat, 31 Jan 2009 05:22:51 +0000 (00:22 -0500)] 
FreeBSD has <ctype.h>

SVN-Revision: 518

16 years agoUse ~0 instead of -1 to set all bits on for a 'all' keyword.
Michihiro NAKAJIMA [Fri, 30 Jan 2009 06:11:33 +0000 (01:11 -0500)] 
Use ~0 instead of -1 to set all bits on for a 'all' keyword.

SVN-Revision: 517

16 years agoBug fix in mtree format. does not add '\' character
Michihiro NAKAJIMA [Fri, 30 Jan 2009 06:06:28 +0000 (01:06 -0500)] 
Bug fix in mtree format. does not add '\' character
to the end of a entry when the entry is only a filename
whose length is longer than 15bytes.

SVN-Revision: 516

16 years agoIn mtree format, add support dironly keyword.
Michihiro NAKAJIMA [Fri, 30 Jan 2009 05:53:44 +0000 (00:53 -0500)] 
In mtree format, add support dironly keyword.
It's like mtree(8) -d option.

SVN-Revision: 515

16 years agoIn mtree format.
Michihiro NAKAJIMA [Fri, 30 Jan 2009 05:49:56 +0000 (00:49 -0500)] 
In mtree format.
- Use /set keyword.
- Indent output form.
- Convert one line to multiple lines for output
  if the line is longer than 77.

SVN-Revision: 514

16 years agoFix read attribute keywords of a file with multiple lines
Michihiro NAKAJIMA [Fri, 30 Jan 2009 03:53:15 +0000 (22:53 -0500)] 
Fix read attribute keywords of a file with multiple lines
in mtree format.

SVN-Revision: 513

16 years agoIn mtree format, add support ripemd160digest/rmd160/rmd160digest.
Michihiro NAKAJIMA [Thu, 29 Jan 2009 10:22:43 +0000 (05:22 -0500)] 
In mtree format, add support ripemd160digest/rmd160/rmd160digest.

SVN-Revision: 512

16 years agoIn mtree format, add nano second entry to the time keyword output.
Michihiro NAKAJIMA [Thu, 29 Jan 2009 09:20:44 +0000 (04:20 -0500)] 
In mtree format, add nano second entry to the time keyword output.
It is the same as mtree(8).

SVN-Revision: 511

16 years agoFix some compiling error when use strict warning options.
Michihiro NAKAJIMA [Thu, 29 Jan 2009 08:40:43 +0000 (03:40 -0500)] 
Fix some compiling error when use strict warning options.

SVN-Revision: 510

16 years agoImprove portability of MD5/SHA* headers and functions
Michihiro NAKAJIMA [Thu, 29 Jan 2009 08:10:43 +0000 (03:10 -0500)] 
Improve portability of MD5/SHA* headers and functions
used in mtree format.
It tested on FreeBSD, NetBSD and Ubuntu.

SVN-Revision: 509

16 years agoAlways swallow the PK\007\008 end-of-data marker, even if this
Tim Kientzle [Thu, 29 Jan 2009 07:01:48 +0000 (02:01 -0500)] 
Always swallow the PK\007\008 end-of-data marker, even if this
is a non-regular file.  In particular, it seems that some "jar"
programs store directory entries using length-at-end semantics.
Which is wasteful (a directory is always zero length, so there's
no point in storing the additional data), but entirely legal.

SVN-Revision: 508

16 years agoUse isdigit instead of isnumber. some platform don't have it.
Michihiro NAKAJIMA [Thu, 29 Jan 2009 03:49:23 +0000 (22:49 -0500)] 
Use isdigit instead of isnumber. some platform don't have it.

SVN-Revision: 507

16 years agoEliminate compiling error on linux.
Michihiro NAKAJIMA [Thu, 29 Jan 2009 03:42:18 +0000 (22:42 -0500)] 
Eliminate compiling error on linux.

SVN-Revision: 506

16 years agoFix %ju handling in archive_string_sprintf()
Tim Kientzle [Thu, 29 Jan 2009 03:08:40 +0000 (22:08 -0500)] 
Fix %ju handling in archive_string_sprintf()

SVN-Revision: 505

16 years agoIn mtree format, add support sha256/sha256digest,
Michihiro NAKAJIMA [Thu, 29 Jan 2009 02:38:07 +0000 (21:38 -0500)] 
In mtree format, add support sha256/sha256digest,
sha384/sha384digest and sha512/sha512digest keywords.

SVN-Revision: 504

16 years agoIn mtree format, add support sha1/sha1digest keyword.
Michihiro NAKAJIMA [Thu, 29 Jan 2009 02:22:07 +0000 (21:22 -0500)] 
In mtree format, add support sha1/sha1digest keyword.

SVN-Revision: 503

16 years agoIn mtree format, add support md5/md5digest keyword.
Michihiro NAKAJIMA [Thu, 29 Jan 2009 02:16:46 +0000 (21:16 -0500)] 
In mtree format, add support md5/md5digest keyword.

SVN-Revision: 502

16 years agoIn mtree format, add support cksum keyword.
Michihiro NAKAJIMA [Thu, 29 Jan 2009 02:13:44 +0000 (21:13 -0500)] 
In mtree format, add support cksum keyword.

SVN-Revision: 501

16 years agoAllow numerics to the option name of the options frame work.
Michihiro NAKAJIMA [Wed, 28 Jan 2009 11:31:12 +0000 (06:31 -0500)] 
Allow numerics to the option name of the options frame work.

SVN-Revision: 500

16 years agomtree format support options frame work.
Michihiro NAKAJIMA [Wed, 28 Jan 2009 04:01:17 +0000 (23:01 -0500)] 
mtree format support options frame work.

SVN-Revision: 499

16 years agoInclude the new test_write_disk_sparse in the autoconf and cmake builds.
Tim Kientzle [Tue, 27 Jan 2009 17:22:21 +0000 (12:22 -0500)] 
Include the new test_write_disk_sparse in the autoconf and cmake builds.

SVN-Revision: 498

16 years agoRemove unnecessary handling for list.h.
Michihiro NAKAJIMA [Tue, 27 Jan 2009 09:02:24 +0000 (04:02 -0500)] 
Remove unnecessary handling for list.h.
It make sure an "out-of-source" build.

SVN-Revision: 497

16 years agoResolve the problem of list.h that compiling error
Michihiro NAKAJIMA [Tue, 27 Jan 2009 08:41:00 +0000 (03:41 -0500)] 
Resolve the problem of list.h that compiling error
(compiler can't find list.h) occured when using
cmake and an "out-of-source" build.

SVN-Revision: 496

16 years agoAvoid compiling error with cmake on FreeBSD.
Michihiro NAKAJIMA [Tue, 27 Jan 2009 06:03:36 +0000 (01:03 -0500)] 
Avoid compiling error with cmake on FreeBSD.

SVN-Revision: 495

16 years agoRemove dated comment.
Michihiro NAKAJIMA [Mon, 26 Jan 2009 14:55:01 +0000 (09:55 -0500)] 
Remove dated comment.

SVN-Revision: 494

16 years agoAdd support "compression-level" option which can cange
Michihiro NAKAJIMA [Mon, 26 Jan 2009 14:40:16 +0000 (09:40 -0500)] 
Add support "compression-level" option which can cange
a compression level of a deflate between 0 and 9 to
the gzip compressor.

SVN-Revision: 493

16 years agoAdd support "--format-options" option to bsdtar to use
Michihiro NAKAJIMA [Mon, 26 Jan 2009 14:36:09 +0000 (09:36 -0500)] 
Add support "--format-options" option to bsdtar to use
format option frame work.

SVN-Revision: 492

16 years agoImplement format/filter/compressor option frame work.
Michihiro NAKAJIMA [Mon, 26 Jan 2009 14:27:50 +0000 (09:27 -0500)] 
Implement format/filter/compressor option frame work.

SVN-Revision: 491

16 years agoInclude sys/time.h; Linux requires it for futimes/lutimes.
Tim Kientzle [Mon, 26 Jan 2009 05:53:19 +0000 (00:53 -0500)] 
Include sys/time.h; Linux requires it for futimes/lutimes.

SVN-Revision: 490

16 years agoInclude sys/time.h; Linux requires it for futimes/lutimes.
Tim Kientzle [Mon, 26 Jan 2009 05:53:19 +0000 (00:53 -0500)] 
Include sys/time.h; Linux requires it for futimes/lutimes.

SVN-Revision: 490

16 years agoMerge r187704 from FreeBSD-CURRENT: This fixes ARCHIVE_EXTRACT_SPARSE
Tim Kientzle [Mon, 26 Jan 2009 05:48:18 +0000 (00:48 -0500)] 
Merge r187704 from FreeBSD-CURRENT: This fixes ARCHIVE_EXTRACT_SPARSE
handling and adds a test for this feature to prevent regressions.

This should fix "tar -S"

SVN-Revision: 489

16 years agoReport srcpath here. I'm not sure it really matters, but some
Tim Kientzle [Thu, 22 Jan 2009 06:01:21 +0000 (01:01 -0500)] 
Report srcpath here.  I'm not sure it really matters, but some
people seem to prefer it.

SVN-Revision: 459

16 years agoPrefer sourcepath to pathname. For directory walks that use
Tim Kientzle [Thu, 22 Jan 2009 05:59:06 +0000 (00:59 -0500)] 
Prefer sourcepath to pathname.  For directory walks that use
the chdir strategy, the sourcepath is the correct way to access
the file.

SVN-Revision: 458

16 years agoDon't append the strerror() information here; we're returning
Tim Kientzle [Thu, 22 Jan 2009 05:58:23 +0000 (00:58 -0500)] 
Don't append the strerror() information here; we're returning
the errno anyway, so the client can do that if they want.
In particular, this fixes a lot of duplicated errno information.

SVN-Revision: 457

16 years agoMerge r455 from trunk: Fix Solaris 10/OpenSolaris build
Tim Kientzle [Wed, 21 Jan 2009 06:34:28 +0000 (01:34 -0500)] 
Merge r455 from trunk: Fix Solaris 10/OpenSolaris build

Submitted by: Fabian Groffen

SVN-Revision: 456

16 years agoFix Solaris 10 and OpenSolaris builds of bsdcpio.
Tim Kientzle [Wed, 21 Jan 2009 06:31:26 +0000 (01:31 -0500)] 
Fix Solaris 10 and OpenSolaris builds of bsdcpio.

Submitted by: Fabian Groffen

SVN-Revision: 455

16 years agolibarchive 2.6.1 v2.6.1
Tim Kientzle [Mon, 19 Jan 2009 06:34:26 +0000 (01:34 -0500)] 
libarchive 2.6.1

SVN-Revision: 454

16 years agoRead extended attributes from disk on FreeBSD.
Tim Kientzle [Mon, 19 Jan 2009 06:33:42 +0000 (01:33 -0500)] 
Read extended attributes from disk on FreeBSD.
This should be the last piece needed for functional extended attribute
handling on FreeBSD.  More testing is required, though.

SVN-Revision: 453

16 years agoStub out the "close" entry for archive_read_disk.
Tim Kientzle [Mon, 19 Jan 2009 06:32:41 +0000 (01:32 -0500)] 
Stub out the "close" entry for archive_read_disk.

SVN-Revision: 452

16 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

16 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

16 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

16 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

16 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

16 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

16 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

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

SVN-Revision: 440

16 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

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

SVN-Revision: 438

16 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

16 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

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

SVN-Revision: 435

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

SVN-Revision: 434

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

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

SVN-Revision: 383

16 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