]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agotest: add joliet iso with versioned files testcase.
Andreas Henriksson [Tue, 29 Jun 2010 15:47:14 +0000 (11:47 -0400)] 
test: add joliet iso with versioned files testcase.

Add test code and a Nero ISO image for testing joliet
code with isos that always append version numbers.

SVN-Revision: 2513

16 years agoMerge r2511:
Joerg Sonnenberger [Mon, 28 Jun 2010 21:44:02 +0000 (17:44 -0400)] 
Merge r2511:
Add two more cases where wcscmp is needed. From Hauke Fath

SVN-Revision: 2512

16 years agoAdd two more cases where wcscmp is needed. From Hauke Fath
Joerg Sonnenberger [Mon, 28 Jun 2010 21:31:24 +0000 (17:31 -0400)] 
Add two more cases where wcscmp is needed. From Hauke Fath

SVN-Revision: 2511

16 years agoMerge r2498:
Joerg Sonnenberger [Sun, 27 Jun 2010 18:51:04 +0000 (14:51 -0400)] 
Merge r2498:
Improve support for systems without modern wctype.h by providing local
versions of wcscpy in test_entry.c and wcscmp in main.c.

SVN-Revision: 2510

16 years agoMerge branches/wstring: This adds a new archive_wstring
Tim Kientzle [Sun, 27 Jun 2010 01:28:00 +0000 (21:28 -0400)] 
Merge branches/wstring:  This adds a new archive_wstring
type for unicode strings and uses it to simplify some
of the code in archive_entry.

SVN-Revision: 2508

16 years agoChoose the copy buffer size used for reading files
Tim Kientzle [Sat, 26 Jun 2010 18:41:38 +0000 (14:41 -0400)] 
Choose the copy buffer size used for reading files
to be archived dynamically:
  * At least 64k
  * At least as large as the -b setting
In particular, this should speed up things noticably when large -b
values are in use.  This is also the first cut at aligning the copy
buffer so we can take advantage of O_DIRECT someday.

SVN-Revision: 2504

16 years agoUse -b setting when interpolating archives.
Tim Kientzle [Sat, 26 Jun 2010 17:18:30 +0000 (13:18 -0400)] 
Use -b setting when interpolating archives.
Simplify the handling of -b values by setting
a default early and then just using the value
instead of duplicating the logic.

SVN-Revision: 2503

16 years agoUse intmax_t for %jd printf arguments.
Tim Kientzle [Sat, 26 Jun 2010 06:17:32 +0000 (02:17 -0400)] 
Use intmax_t for %jd printf arguments.
We should probably be using archive_string_sprintf
here instead of printf to avoid the portability problem
(not all platforms have intmax_t, not all have %jd).

SVN-Revision: 2502

16 years agoVarious tar format improvements:
Tim Kientzle [Fri, 25 Jun 2010 23:26:45 +0000 (19:26 -0400)] 
Various tar format improvements:
 * Improve description of Apple extensions
 * AIX ACL extensions
 * Solaris ACL extensions
 * Move numeric extensions section next to ustar section
 * Add summary of tar header types
 * Add LIBARCHIVE.* pax extensions

SVN-Revision: 2501

16 years agoClear a new fixup_entry. Otherwise, the fixup pass
Tim Kientzle [Fri, 25 Jun 2010 18:31:53 +0000 (14:31 -0400)] 
Clear a new fixup_entry.  Otherwise, the fixup pass
crashes when it tries to free the garbage pointers.

SVN-Revision: 2500

16 years agocast DWORD to int to match %d printf specifier
Tim Kientzle [Fri, 25 Jun 2010 04:03:48 +0000 (00:03 -0400)] 
cast DWORD to int to match %d printf specifier

SVN-Revision: 2499

16 years agoImprove support for systems without modern wctype.h by providing local
Joerg Sonnenberger [Thu, 24 Jun 2010 20:14:41 +0000 (16:14 -0400)] 
Improve support for systems without modern wctype.h by providing local
versions of wcscpy in test_entry.c and wcscmp in main.c.

SVN-Revision: 2498

16 years agoMerge r2495: Fix distribution list to include all cpio testcases.
Joerg Sonnenberger [Mon, 21 Jun 2010 15:27:51 +0000 (11:27 -0400)] 
Merge r2495: Fix distribution list to include all cpio testcases.
Megre r2496: Don't compile in wide char test cases if wcscpy is missing.

SVN-Revision: 2497

16 years agoDon't compile in wide char test cases if wcscpy is missing.
Joerg Sonnenberger [Mon, 21 Jun 2010 12:42:02 +0000 (08:42 -0400)] 
Don't compile in wide char test cases if wcscpy is missing.

SVN-Revision: 2496

16 years agoFix distribution list to include all cpio testcases.
Joerg Sonnenberger [Mon, 21 Jun 2010 12:31:42 +0000 (08:31 -0400)] 
Fix distribution list to include all cpio testcases.

SVN-Revision: 2495

16 years agoMerge 2493:
Joerg Sonnenberger [Sun, 20 Jun 2010 21:24:22 +0000 (17:24 -0400)] 
Merge 2493:
Be nice to ancient bzlib.h, it needs stdio.h.

SVN-Revision: 2494

16 years agoBe nice to ancient bzlib.h, it needs stdio.h.
Joerg Sonnenberger [Sun, 20 Jun 2010 21:22:40 +0000 (17:22 -0400)] 
Be nice to ancient bzlib.h, it needs stdio.h.

SVN-Revision: 2493

16 years agoMerge r2490 and r2491:
Joerg Sonnenberger [Sat, 19 Jun 2010 17:47:04 +0000 (13:47 -0400)] 
Merge r2490 and r2491:
Fall back to getgrgid and getpwuid if the reentrant versions are missing.

SVN-Revision: 2492

16 years agoMust define constants to 1 for #if to work.
Joerg Sonnenberger [Sat, 19 Jun 2010 17:34:15 +0000 (13:34 -0400)] 
Must define constants to 1 for #if to work.

SVN-Revision: 2491

16 years agoFall back to getgrgid and getpwuid if the reentrant versions are missing.
Joerg Sonnenberger [Sat, 19 Jun 2010 17:25:58 +0000 (13:25 -0400)] 
Fall back to getgrgid and getpwuid if the reentrant versions are missing.

SVN-Revision: 2490

16 years agoMerge 2488: Deal with bzip2 before 1.0 by not using it.
Joerg Sonnenberger [Sat, 19 Jun 2010 13:14:17 +0000 (09:14 -0400)] 
Merge 2488: Deal with bzip2 before 1.0 by not using it.

SVN-Revision: 2489

16 years agoDeal with bzip2 before 1.0 by not using it.
Joerg Sonnenberger [Sat, 19 Jun 2010 13:02:48 +0000 (09:02 -0400)] 
Deal with bzip2 before 1.0 by not using it.

SVN-Revision: 2488

16 years agoAdd ARCHIVE_EXTRACT_MAC_METADATA flag to archive_write_disk. This
Tim Kientzle [Sat, 19 Jun 2010 02:48:53 +0000 (22:48 -0400)] 
Add ARCHIVE_EXTRACT_MAC_METADATA flag to archive_write_disk.  This
feeds the mac_metadata blob from the archive_entry to the Mac
copyfile() function to restore ACLs and xattrs.  Restoring these attrs
on dirs is correctly deferred until end-of-archive.

Enable this for tar -p

This is the rest of the support for reading and restoring
Apple extensions to tar archives.

SVN-Revision: 2486

16 years agoIncrease the amount of context when assertEqualMem fails.
Tim Kientzle [Fri, 18 Jun 2010 00:50:33 +0000 (20:50 -0400)] 
Increase the amount of context when assertEqualMem fails.

SVN-Revision: 2484

16 years agoMerge 2482: stdint.h is needed on QNX for the test cases too.
Joerg Sonnenberger [Thu, 17 Jun 2010 14:41:44 +0000 (10:41 -0400)] 
Merge 2482: stdint.h is needed on QNX for the test cases too.

SVN-Revision: 2483

16 years agoQNX needs stdint.h in the test cases as well.
Joerg Sonnenberger [Thu, 17 Jun 2010 14:40:05 +0000 (10:40 -0400)] 
QNX needs stdint.h in the test cases as well.
From Sean Boudreau.

SVN-Revision: 2482

16 years agoMerge r2480:
Joerg Sonnenberger [Wed, 16 Jun 2010 21:55:50 +0000 (17:55 -0400)] 
Merge r2480:
If no equal sign was found in the buffer, don't use it as base for
computing the line length.

SVN-Revision: 2481

16 years agoIf no equal sign was found in the buffer, don't use it as base for
Joerg Sonnenberger [Wed, 16 Jun 2010 21:49:51 +0000 (17:49 -0400)] 
If no equal sign was found in the buffer, don't use it as base for
computing the line length.

SVN-Revision: 2480

16 years agoMerge r2269 and part of r2359:
Joerg Sonnenberger [Wed, 16 Jun 2010 20:29:53 +0000 (16:29 -0400)] 
Merge r2269 and part of r2359:
Only enable FreeBSD-style xattr support, if EXTATTR_NAMESPACE_USER
exists.

SVN-Revision: 2479

16 years agoMerged r2058, r2366, r2375-r2380, r2385-r2392, r2395, r2402,r
Joerg Sonnenberger [Wed, 16 Jun 2010 20:05:39 +0000 (16:05 -0400)] 
Merged r2058, r2366, r2375-r2380, r2385-r2392, r2395, r2402,r
r2404-r2405, r2410-r2412, r2415, r2420, r2476 from trunk:

- Refactor hash function scan to use a compile+link test to increase
  robustness
- Deal with missing getgrnam_r / getpwnam_r functions
- Properly define HAVE_SIGACTION for cmake
- Only use poll in filter_fork.c, if either poll.h or sys/poll.h exists
- \\ -> \e in man pages, drop empty BUGS section
- Deal with interrupted reads and continue

Bump version to 2.8.4

SVN-Revision: 2478

16 years agoRevert r2412 and require autoconf 2.65 instead.
Joerg Sonnenberger [Wed, 16 Jun 2010 18:38:50 +0000 (14:38 -0400)] 
Revert r2412 and require autoconf 2.65 instead.

SVN-Revision: 2477

16 years agoOnly use poll(2) if either poll.h or sys/poll.h exists.
Joerg Sonnenberger [Tue, 15 Jun 2010 23:55:05 +0000 (19:55 -0400)] 
Only use poll(2) if either poll.h or sys/poll.h exists.

SVN-Revision: 2476

16 years agoFix a segmentation fault.
Michihiro NAKAJIMA [Mon, 14 Jun 2010 05:12:01 +0000 (01:12 -0400)] 
Fix a segmentation fault.

SVN-Revision: 2475

16 years agoMake EXT2_IOC_GETFLAGS enabled and fix build error.
Michihiro NAKAJIMA [Mon, 14 Jun 2010 05:06:11 +0000 (01:06 -0400)] 
Make EXT2_IOC_GETFLAGS enabled and fix build error.

SVN-Revision: 2474

16 years agoUse __FreeBSD__ macro instead of HAVE_GETVFSBYNAME and HAVE_STATFS.
Michihiro NAKAJIMA [Mon, 14 Jun 2010 04:34:29 +0000 (00:34 -0400)] 
Use __FreeBSD__ macro instead of HAVE_GETVFSBYNAME and HAVE_STATFS.

SVN-Revision: 2473

16 years agoOn Windows, remove chdir/SetCurrentDirectory from archive_read_disk.c
Michihiro NAKAJIMA [Mon, 14 Jun 2010 04:19:40 +0000 (00:19 -0400)] 
On Windows, remove chdir/SetCurrentDirectory from archive_read_disk.c
You cannot exceed the 260 bytes limit of path length, even if
you change the current working directory as POSIX system.
For example,
  SetCurrentDirectory(<240-bytes-full-path>);
  CreateFile(<21-bytes-path>);
  ^^^ it fails because the `full' path length of that file is 262 bytes.
      This is Windows behavior. we should use wchar_t with '\\?\' prefix
      to exceed the path limit.

SVN-Revision: 2472

16 years agoFix an overflow in the compression ratio calculation.
Tim Kientzle [Mon, 14 Jun 2010 03:00:23 +0000 (23:00 -0400)] 
Fix an overflow in the compression ratio calculation.

SVN-Revision: 2471

16 years agoUse FindFirstFile for the first entry to detect whether the entry is a symbolic link...
Michihiro NAKAJIMA [Fri, 11 Jun 2010 19:38:46 +0000 (15:38 -0400)] 
Use FindFirstFile for the first entry to detect whether the entry is a symbolic link because GetFileInformationByHandle does not provide Reparse Point Tag.

SVN-Revision: 2470

16 years agoAdd support for archive_read_disk_current_filesystem_is_remote on Windows.
Michihiro NAKAJIMA [Fri, 11 Jun 2010 18:35:39 +0000 (14:35 -0400)] 
Add support for archive_read_disk_current_filesystem_is_remote on Windows.

SVN-Revision: 2469

16 years agoIt seems OpenBSD does not set MNT_LOCAL/ST_LOCAL to statvfs.f_flag.
Michihiro NAKAJIMA [Fri, 11 Jun 2010 09:08:52 +0000 (05:08 -0400)] 
It seems OpenBSD does not set MNT_LOCAL/ST_LOCAL to statvfs.f_flag.
ST_LOCAL and MNT_LOCAL are the same value on NetBSD, but OpenBSD
does not define ST_LOCAL so we should use it instead of MNT_LOCAL
to prevent OpenBSD.

SVN-Revision: 2468

16 years agoRename filesystem_information to setup_current_filesystem and
Michihiro NAKAJIMA [Fri, 11 Jun 2010 08:55:49 +0000 (04:55 -0400)] 
Rename filesystem_information to setup_current_filesystem and
make its arguments simple.

SVN-Revision: 2467

16 years agoAdd support for archive_read_disk_current_filesystem_is_synthetic and
Michihiro NAKAJIMA [Fri, 11 Jun 2010 07:39:27 +0000 (03:39 -0400)] 
Add support for archive_read_disk_current_filesystem_is_synthetic and
archive_read_disk_current_filesystem_is_remote on Linux.

SVN-Revision: 2466

16 years agoTweak a test for directory traversals.
Michihiro NAKAJIMA [Fri, 11 Jun 2010 07:18:06 +0000 (03:18 -0400)] 
Tweak a test for directory traversals.
The order of file entry on different platform varies.

SVN-Revision: 2465

16 years agoAdd support for archive_read_disk_current_filesystem_is_remote on NetBSD and OpenBSD.
Michihiro NAKAJIMA [Fri, 11 Jun 2010 07:07:53 +0000 (03:07 -0400)] 
Add support for archive_read_disk_current_filesystem_is_remote on NetBSD and OpenBSD.

SVN-Revision: 2464

16 years agoAdd archive_read_disk_current_filesystem_is_synthetic and
Michihiro NAKAJIMA [Fri, 11 Jun 2010 01:06:15 +0000 (21:06 -0400)] 
Add archive_read_disk_current_filesystem_is_synthetic and
archive_read_disk_current_filesystem_is_remote, which provide
filesystem information. Currently those are supported on FreeBSD only.
I will guradually support other platform.

SVN-Revision: 2463

16 years agoAdd archive_read_disk_current_filesystem which returns an ID, which
Michihiro NAKAJIMA [Thu, 10 Jun 2010 22:57:12 +0000 (18:57 -0400)] 
Add archive_read_disk_current_filesystem which returns an ID, which
is index of filesystem entry you've visited through directory traversals
in archive_read_disk.

SVN-Revision: 2462

16 years agoSupport archive_read_data_block in archive_read_disk.
Michihiro NAKAJIMA [Thu, 10 Jun 2010 20:39:39 +0000 (16:39 -0400)] 
Support archive_read_data_block in archive_read_disk.

SVN-Revision: 2461

16 years agoAdditional test calling archive_read_disk with a regular file.
Michihiro NAKAJIMA [Thu, 10 Jun 2010 18:31:48 +0000 (14:31 -0400)] 
Additional test calling archive_read_disk with a regular file.

SVN-Revision: 2460

16 years agoBackout __la_lstat.
Michihiro NAKAJIMA [Thu, 10 Jun 2010 00:18:31 +0000 (20:18 -0400)] 
Backout __la_lstat.
It seems using FILE_FLAG_OPEN_REPARSE_POINT flag to CreateFile has effect to other things, not only symbolic link.
We have to check Reparse Point Tags before using FILE_FLAG_OPEN_REPARSE_POINT.

SVN-Revision: 2459

16 years agoAdd __la_lstat similar to lstat.
Michihiro NAKAJIMA [Wed, 9 Jun 2010 22:52:09 +0000 (18:52 -0400)] 
Add __la_lstat similar to lstat.

SVN-Revision: 2458

16 years agoAdd test code for using wildcard on Windows.
Michihiro NAKAJIMA [Wed, 9 Jun 2010 22:08:49 +0000 (18:08 -0400)] 
Add test code for using wildcard on Windows.

SVN-Revision: 2457

16 years agoUse struct archive_string for handling a path name at archvie_read_disk.c
Michihiro NAKAJIMA [Wed, 9 Jun 2010 22:01:38 +0000 (18:01 -0400)] 
Use struct archive_string for handling a path name at archvie_read_disk.c

SVN-Revision: 2456

16 years agoBring the code supporting directory traversals from bsdtar/tree.[ch]
Michihiro NAKAJIMA [Wed, 9 Jun 2010 21:54:13 +0000 (17:54 -0400)] 
Bring the code supporting directory traversals from bsdtar/tree.[ch]
into archive_read_disk.c and modify it.
Introduce new APIs archive_read_disk_open and archive_read_disk_descend.

TODO: - implement archive_read_data_block and others.
      - adapt it to libarchive world, for example, use struct archive_string.

SVN-Revision: 2455

16 years agoFix my previous committed code; eliminate build error with ARCHIVE_VERSION_NUMBER...
Michihiro NAKAJIMA [Tue, 8 Jun 2010 21:33:24 +0000 (17:33 -0400)] 
Fix my previous committed code; eliminate build error with ARCHIVE_VERSION_NUMBER >= 3000000

SVN-Revision: 2454

16 years agoMake archive_read_next_header2 and archive_read_data_block virtualization.
Michihiro NAKAJIMA [Tue, 8 Jun 2010 21:18:32 +0000 (17:18 -0400)] 
Make archive_read_next_header2 and archive_read_data_block virtualization.
This is a initial step of supporting directory traversals in archive_read_disk.

SVN-Revision: 2453

16 years agoSupport for reading Mac OS-style metadata blobs.
Tim Kientzle [Sat, 5 Jun 2010 02:28:31 +0000 (22:28 -0400)] 
Support for reading Mac OS-style metadata blobs.
This adds support for such blobs to archive_entry and
extends the tar reader to identify the special entries
and store them in the archive_entry.

Remaining: extend archive_write_disk to actually
restore the metadata to the file on disk.

SVN-Revision: 2446

16 years agoLimit the scope of a variable.
Tim Kientzle [Sat, 5 Jun 2010 01:52:51 +0000 (21:52 -0400)] 
Limit the scope of a variable.

SVN-Revision: 2445

16 years agoIf the temporary file gets truncated for any reason, die
Tim Kientzle [Sat, 5 Jun 2010 01:51:47 +0000 (21:51 -0400)] 
If the temporary file gets truncated for any reason, die
instead of getting stuck in an infinite loop.

SVN-Revision: 2444

16 years agoSwitch version to 3.0; we should be exercising the 3.0 API in our everyday testing...
Tim Kientzle [Fri, 4 Jun 2010 16:11:32 +0000 (12:11 -0400)] 
Switch version to 3.0; we should be exercising the 3.0 API in our everyday testing and development.

SVN-Revision: 2443

16 years agoAn lzip test reference file was omitted from the distribution.
Tim Kientzle [Fri, 4 Jun 2010 16:10:49 +0000 (12:10 -0400)] 
An lzip test reference file was omitted from the distribution.

SVN-Revision: 2442

16 years agoarchive_read_data_block is public, even in libarchive 3.0.
Tim Kientzle [Thu, 3 Jun 2010 06:27:45 +0000 (02:27 -0400)] 
archive_read_data_block is public, even in libarchive 3.0.

SVN-Revision: 2441

16 years agoEliminate a warning about singed/unsigned mismatch.
Michihiro NAKAJIMA [Tue, 1 Jun 2010 10:59:08 +0000 (06:59 -0400)] 
Eliminate a warning about singed/unsigned mismatch.

SVN-Revision: 2440

16 years agoCompiling on msys complains using %zd with ssize_t.
Michihiro NAKAJIMA [Tue, 1 Jun 2010 10:51:42 +0000 (06:51 -0400)] 
Compiling on msys complains using %zd with ssize_t.

SVN-Revision: 2439

16 years agoOn msys, include unistd.h before we redefine ftruncate() to
Michihiro NAKAJIMA [Tue, 1 Jun 2010 10:45:39 +0000 (06:45 -0400)] 
On msys, include unistd.h before we redefine ftruncate() to
prevent build error from a type mismatch of ftruncate().

Msys has a unistd.h file and it defines ftruncate() with off_t, and
then it will causes build error after we redefine ftruncate() as
__la_ftruncate(int, int64_t).

SVN-Revision: 2438

16 years agoEliminate some more off_t usage; mark some that are okay because
Tim Kientzle [Mon, 31 May 2010 19:01:37 +0000 (15:01 -0400)] 
Eliminate some more off_t usage; mark some that are okay because
they're only used on specific platforms where off_t is
required.

SVN-Revision: 2437

16 years agoI think I've now removed every off_t from the format handlers.
Tim Kientzle [Mon, 31 May 2010 18:48:59 +0000 (14:48 -0400)] 
I think I've now removed every off_t from the format handlers.

SVN-Revision: 2436

16 years agoStyle: whitespace
Tim Kientzle [Mon, 31 May 2010 18:46:52 +0000 (14:46 -0400)] 
Style: whitespace

SVN-Revision: 2435

16 years agoChange a bunch more internal off_t to int64_t.
Tim Kientzle [Mon, 31 May 2010 18:46:16 +0000 (14:46 -0400)] 
Change a bunch more internal off_t to int64_t.

SVN-Revision: 2434

16 years agoUse int64_t here to match archive_windows.h
Tim Kientzle [Mon, 31 May 2010 18:42:21 +0000 (14:42 -0400)] 
Use int64_t here to match archive_windows.h

SVN-Revision: 2433

16 years agoFor internal APIs, we don't need to worry about the API version.
Tim Kientzle [Mon, 31 May 2010 18:37:17 +0000 (14:37 -0400)] 
For internal APIs, we don't need to worry about the API version.

SVN-Revision: 2432

16 years agoHandle EINTR in write calls:
Tim Kientzle [Mon, 31 May 2010 18:20:46 +0000 (14:20 -0400)] 
Handle EINTR in write calls:
  * In low-level writers, just retry after EINTR
  * In archive_write, handle short writes by generating additional writes for the remainder of the block.

In particular, this fixes a problem with bsdtar failing if you try to use the SIGINT handler.

SVN-Revision: 2431

16 years agoAdd condition macros of HASH for Mac OS X, which macros I forgot to add into build...
Michihiro NAKAJIMA [Sun, 30 May 2010 14:45:07 +0000 (10:45 -0400)] 
Add condition macros of HASH  for Mac OS X, which macros I forgot to add into build/cmake/config.h.in at r2415.

SVN-Revision: 2420

16 years agoCheck if xar writer is supported.
Michihiro NAKAJIMA [Sun, 30 May 2010 14:31:22 +0000 (10:31 -0400)] 
Check if xar writer is supported.

SVN-Revision: 2419

16 years agoAdd xar writer.
Michihiro NAKAJIMA [Fri, 28 May 2010 17:29:06 +0000 (13:29 -0400)] 
Add xar writer.

SVN-Revision: 2417

16 years agoOn Mac OS X, HASH functions are available in libSystem, which is the system library...
Michihiro NAKAJIMA [Fri, 21 May 2010 16:03:39 +0000 (12:03 -0400)] 
On Mac OS X, HASH functions are available in libSystem, which is the system library and including libc,libinfo,libkvm,libm and libpthread.

SVN-Revision: 2415

16 years agoEnable HAVE_SYS_TYPES_H macro during HASH detecting because
Michihiro NAKAJIMA [Thu, 20 May 2010 14:50:00 +0000 (10:50 -0400)] 
Enable HAVE_SYS_TYPES_H macro during HASH detecting because
md5.h,sha1.h and sha2.h requre sys/types.h

SVN-Revision: 2412

16 years agoTRY_COMPILE requires specific include paths and library paths.
Michihiro NAKAJIMA [Tue, 18 May 2010 06:43:09 +0000 (02:43 -0400)] 
TRY_COMPILE requires specific include paths and library paths.
if there are no specific library, TRY_COMPILE wont link any additional
libraries, it means ARCHIVE_HASH_*_OPENSSL are never detected.

SVN-Revision: 2411

16 years agoFor the second time and later, Prevent unneeded HASH detection.
Michihiro NAKAJIMA [Tue, 18 May 2010 06:12:37 +0000 (02:12 -0400)] 
For the second time and later, Prevent unneeded HASH detection.

SVN-Revision: 2410

16 years agoOoops. r2403 accidentally included some debugging shims.
Tim Kientzle [Sun, 16 May 2010 20:40:04 +0000 (16:40 -0400)] 
Ooops.  r2403 accidentally included some debugging shims.

SVN-Revision: 2406

16 years agoRetry the read() operation on EINTR. In particular, tar should not die on SIGINT.
Tim Kientzle [Sun, 16 May 2010 20:35:38 +0000 (16:35 -0400)] 
Retry the read() operation on EINTR.  In particular, tar should not die on SIGINT.

SVN-Revision: 2405

16 years agoHAVE_SIGACTION is required by tar.
Tim Kientzle [Sun, 16 May 2010 20:34:23 +0000 (16:34 -0400)] 
HAVE_SIGACTION is required by tar.

SVN-Revision: 2404

16 years agoProperly support filter(-1) as a shorthand for "the last filter",
Tim Kientzle [Sun, 16 May 2010 20:33:30 +0000 (16:33 -0400)] 
Properly support filter(-1) as a shorthand for "the last filter",
which is always the client proxy.  In particular, tar uses this for
reporting position in the input stream.

SVN-Revision: 2403

16 years agoMsys requires wincypt.h to use CALG_* macros.
Michihiro NAKAJIMA [Sat, 15 May 2010 06:13:13 +0000 (02:13 -0400)] 
Msys requires wincypt.h to use CALG_* macros.

SVN-Revision: 2402

16 years agoFix a return-value mixup when time restore failed.
Tim Kientzle [Fri, 14 May 2010 14:23:59 +0000 (10:23 -0400)] 
Fix a return-value mixup when time restore failed.
Restore ACLs after restoring time.  (NFS4 ACLs
can prohibit the owner from setting time on a file.)

SVN-Revision: 2401

16 years agoOn Solaris 9, root is in group 1.
Tim Kientzle [Fri, 14 May 2010 10:41:02 +0000 (06:41 -0400)] 
On Solaris 9, root is in group 1.

SVN-Revision: 2397

16 years agoDivide the code detecting ARCHIVE_HASH_*_WIN from CHECK_MD() to
Michihiro NAKAJIMA [Fri, 14 May 2010 07:38:07 +0000 (03:38 -0400)] 
Divide the code detecting ARCHIVE_HASH_*_WIN from CHECK_MD() to
clarify what CHECK_MD does. Basically, CHECK_MD prove that we
can map the HASH functions, which have several types of name, to
archive_{hash name}_init, archive_{hash name}_final and
archive_{hash name}_update through archive_hash.h.
But using ARCHIVE_HASH_*_WIN requires if ACLG_{hash name} is
available, and then __la_hash_*() used under the ARCHIVE_HASH_*_WIN
are defined at archive_windows.c. it's completely different the way
the CHECK_MD does.

SVN-Revision: 2395

16 years agoNo empty BUGS section. It's not like they don't exist...
Joerg Sonnenberger [Thu, 13 May 2010 21:44:23 +0000 (17:44 -0400)] 
No empty BUGS section. It's not like they don't exist...

SVN-Revision: 2392

16 years ago\\ -> \e
Joerg Sonnenberger [Thu, 13 May 2010 21:38:34 +0000 (17:38 -0400)] 
\\ -> \e

SVN-Revision: 2391

16 years ago__la_hash_*() are defined at archive_windows.c, those won't appear
Michihiro NAKAJIMA [Wed, 12 May 2010 12:41:18 +0000 (08:41 -0400)] 
__la_hash_*() are defined at archive_windows.c, those won't appear
on other platform.

SVN-Revision: 2390

16 years agoThis is a part of r2388. I forgot.
Michihiro NAKAJIMA [Wed, 12 May 2010 08:59:09 +0000 (04:59 -0400)] 
This is a part of r2388. I forgot.
Use directoly CALG_* macro to work CHECK_MD() with ARCHIVE_HASH_*_WIN.

SVN-Revision: 2389

16 years agoAvoid TRY_COMPILE() failure when detecting ARCHIVE_HASH_*_WIN.
Michihiro NAKAJIMA [Wed, 12 May 2010 08:41:03 +0000 (04:41 -0400)] 
Avoid TRY_COMPILE() failure when detecting ARCHIVE_HASH_*_WIN.

SVN-Revision: 2388

16 years agoSimplify an MD_CHECK macro in CMakeLists.txt.
Michihiro NAKAJIMA [Wed, 12 May 2010 08:06:54 +0000 (04:06 -0400)] 
Simplify an MD_CHECK macro in CMakeLists.txt.
Using MD_CHECK_{hash name} confuses a person who uses CMake -U option,
which removes a specified variable from CMakeCache.

SVN-Revision: 2387

16 years agoSet a proper include directory path for hash detecting with CMake.
Michihiro NAKAJIMA [Wed, 12 May 2010 07:05:43 +0000 (03:05 -0400)] 
Set a proper include directory path for hash detecting with CMake.

SVN-Revision: 2386

16 years agoMove the definitions related to hash in archive_windows.h into archive_hash.h
Michihiro NAKAJIMA [Wed, 12 May 2010 06:22:10 +0000 (02:22 -0400)] 
Move the definitions related to hash in archive_windows.h into archive_hash.h

SVN-Revision: 2385

16 years agoRemove an unused variable.
Tim Kientzle [Wed, 12 May 2010 02:27:24 +0000 (22:27 -0400)] 
Remove an unused variable.

SVN-Revision: 2384

16 years agofix fwrites... remember, semi modern glibc's, the return on it is marked for checking...
Brian Harring [Tue, 11 May 2010 09:20:42 +0000 (05:20 -0400)] 
fix fwrites... remember, semi modern glibc's, the return on it is marked for checking, thus when doing maintenance/dev builds (which converts warnings to errors) unchecked fwrites are compile failures

SVN-Revision: 2382

16 years ago_WIN32_WINNT has been defined at config.h.
Michihiro NAKAJIMA [Tue, 11 May 2010 02:35:17 +0000 (22:35 -0400)] 
_WIN32_WINNT has been defined at config.h.

SVN-Revision: 2380

16 years agoAdd "__la_" prefix to our hash functions defined at archive_windows.c
Michihiro NAKAJIMA [Mon, 10 May 2010 15:51:56 +0000 (11:51 -0400)] 
Add "__la_" prefix to our hash functions defined at archive_windows.c

SVN-Revision: 2379

16 years agoTweak archive_windows.[ch] for ARCHIVE_HASH_*, new hash detection.
Michihiro NAKAJIMA [Mon, 10 May 2010 15:34:32 +0000 (11:34 -0400)] 
Tweak archive_windows.[ch] for ARCHIVE_HASH_*, new hash detection.

SVN-Revision: 2378

16 years agoAdd ARCHIVE_HASH_*_WIN macro for CMake build system.
Michihiro NAKAJIMA [Mon, 10 May 2010 14:29:48 +0000 (10:29 -0400)] 
Add ARCHIVE_HASH_*_WIN macro for CMake build system.

SVN-Revision: 2377