]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
15 years agoGet a block size and an alignment of a filesystem for open() to
Michihiro NAKAJIMA [Sun, 16 Jan 2011 20:10:31 +0000 (15:10 -0500)] 
Get a block size and an alignment of a filesystem for open() to
use O_DIRECT flag.

SVN-Revision: 2897

15 years agoCorrectoly gather the file system statistics where the target file of
Michihiro NAKAJIMA [Sun, 16 Jan 2011 15:52:14 +0000 (10:52 -0500)] 
Correctoly gather the file system statistics where the target file of
a symbolic link is.

SVN-Revision: 2896

15 years agoUse openat() operations at the directory traversals.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 14:53:35 +0000 (09:53 -0500)] 
Use openat() operations at the directory traversals.

SVN-Revision: 2895

15 years agoIssue 127: Always initialize restore_pwd so it always gets
Tim Kientzle [Sat, 15 Jan 2011 04:18:48 +0000 (23:18 -0500)] 
Issue 127:  Always initialize restore_pwd so it always gets
cleaned up correctly, even on platforms that don't use edit_deep_directories.

SVN-Revision: 2888

15 years agoIssue 128: Don't initialize a static vtable more than once.
Tim Kientzle [Sat, 15 Jan 2011 04:13:39 +0000 (23:13 -0500)] 
Issue 128:  Don't initialize a static vtable more than once.

SVN-Revision: 2887

15 years agoAdd loop check to the directory traversals.
Michihiro NAKAJIMA [Fri, 14 Jan 2011 12:08:30 +0000 (07:08 -0500)] 
Add loop check to the directory traversals.

SVN-Revision: 2886

15 years agoSimply reduce "#ifdef HAVE_FCHDIR" lines.
Michihiro NAKAJIMA [Fri, 14 Jan 2011 07:07:47 +0000 (02:07 -0500)] 
Simply reduce "#ifdef HAVE_FCHDIR" lines.

SVN-Revision: 2885

15 years agoAvoid the difference between posix and Windows about behavior of
Michihiro NAKAJIMA [Thu, 13 Jan 2011 17:01:09 +0000 (12:01 -0500)] 
Avoid the difference between posix and Windows about behavior of
directory traversals; posix version changes working directory
everywhere while traversing a directory tree, but Windows version
does not at all. The difference will probably make user confused.
Change posix version behavior close to Windows version by restoring
working directory when the function returns. This change includes
the intention removing chdir() operation by using openat()-style
operations if the platform supports it.

SVN-Revision: 2884

15 years agoClean up style. no funcational changes.
Michihiro NAKAJIMA [Thu, 13 Jan 2011 10:35:20 +0000 (05:35 -0500)] 
Clean up style. no funcational changes.

SVN-Revision: 2883

15 years agoWe have already had GNU tar writer, and so it is unnecessary to change
Michihiro NAKAJIMA [Thu, 13 Jan 2011 09:50:56 +0000 (04:50 -0500)] 
We have already had GNU tar writer, and so it is unnecessary to change
a writing format from GNU tar to ustar when using -u or -r options.

SVN-Revision: 2882

15 years agoRemove dated comment or comment for posix platform.
Michihiro NAKAJIMA [Thu, 13 Jan 2011 06:28:47 +0000 (01:28 -0500)] 
Remove dated comment or comment for posix platform.

SVN-Revision: 2881

15 years agoRemove unneeded off_t from archive_read_disk_windows.
Michihiro NAKAJIMA [Wed, 12 Jan 2011 17:05:47 +0000 (12:05 -0500)] 
Remove unneeded off_t from archive_read_disk_windows.

SVN-Revision: 2880

15 years agoSet PATH_MAX to the size the 2nd argument of getcwd function instead of zero.
Michihiro NAKAJIMA [Wed, 12 Jan 2011 16:53:55 +0000 (11:53 -0500)] 
Set PATH_MAX to the size the 2nd argument of getcwd function instead of zero.
If the size is zero, Solaris getcwd will return NULL because
the size will be used for malloc argument as allocating memory
size.

SVN-Revision: 2879

15 years agoMake an archive_read_data_block of archive_read_disk handle a sparse file.
Michihiro NAKAJIMA [Wed, 12 Jan 2011 15:55:16 +0000 (10:55 -0500)] 
Make an archive_read_data_block of archive_read_disk handle a sparse file.

SVN-Revision: 2878

15 years agoFix a distribution file name.
Michihiro NAKAJIMA [Wed, 12 Jan 2011 14:17:11 +0000 (09:17 -0500)] 
Fix a distribution file name.

SVN-Revision: 2877

15 years agoProve that statfs is available.
Michihiro NAKAJIMA [Wed, 12 Jan 2011 09:24:43 +0000 (04:24 -0500)] 
Prove that statfs is available.

SVN-Revision: 2876

15 years agoUpdate a test for directory traversals;
Michihiro NAKAJIMA [Tue, 11 Jan 2011 16:35:59 +0000 (11:35 -0500)] 
Update a test for directory traversals;
 1. add a test for archive_read_disk_set_symlink_hybrid(),
 2. add a test for archive_read_disk_set_symlink_logical().

SVN-Revision: 2875

15 years agoFix a symlink handling of directory traversals after reopening a disk reader.
Michihiro NAKAJIMA [Tue, 11 Jan 2011 13:14:46 +0000 (08:14 -0500)] 
Fix a symlink handling of directory traversals after reopening a disk reader.

SVN-Revision: 2874

15 years agoImprove directory traversals to be able to reopen.
Michihiro NAKAJIMA [Tue, 11 Jan 2011 11:25:40 +0000 (06:25 -0500)] 
Improve directory traversals to be able to reopen.

SVN-Revision: 2873

15 years agouse assertEqualInt instead; when it fails, it actually gives useful data
Brian Harring [Tue, 11 Jan 2011 06:04:52 +0000 (01:04 -0500)] 
use assertEqualInt instead; when it fails, it actually gives useful data

SVN-Revision: 2868

15 years agoChange a compression type of test_option_keep_newer_files.tgz from gzip
Michihiro NAKAJIMA [Mon, 10 Jan 2011 11:15:34 +0000 (06:15 -0500)] 
Change a compression type of test_option_keep_newer_files.tgz from gzip
to compress.

SVN-Revision: 2867

15 years agoAs discussed in Issue 125, we're misusing CHECK_SYMBOL_EXISTS to
Tim Kientzle [Sat, 8 Jan 2011 22:15:08 +0000 (17:15 -0500)] 
As discussed in Issue 125, we're misusing CHECK_SYMBOL_EXISTS to
test the usability of various functions.  CHECK_SYMBOL_EXISTS
doesn't attempt to link anything, so can't verify that the symbol
is actually present in libraries.

In particular, this causes problems in some cross-compile
environments (such as the LSB build environment), where the
system headers may define some symbols (such as major()) that
can't be linked against the cross libraries.

SVN-Revision: 2866

15 years agoInitialize a loop counter.
Michihiro NAKAJIMA [Thu, 6 Jan 2011 11:23:46 +0000 (06:23 -0500)] 
Initialize a loop counter.

SVN-Revision: 2865

15 years agoProperly reset working directory when a directory traversals object is
Michihiro NAKAJIMA [Thu, 6 Jan 2011 11:18:29 +0000 (06:18 -0500)] 
Properly reset working directory when a directory traversals object is
released even if it would be broken off.

SVN-Revision: 2864

15 years agoSkip a test if platform does not have cat command.
Michihiro NAKAJIMA [Thu, 6 Jan 2011 03:59:38 +0000 (22:59 -0500)] 
Skip a test if platform does not have cat command.

SVN-Revision: 2863

15 years agoFix compling error. A const pointer cannot be used to free().
Michihiro NAKAJIMA [Thu, 6 Jan 2011 03:51:04 +0000 (22:51 -0500)] 
Fix compling error. A const pointer cannot be used to free().

SVN-Revision: 2862

15 years agoChange a compression type of test_compat_mac_gnutar.tgz.uu from gzip
Michihiro NAKAJIMA [Wed, 5 Jan 2011 16:19:30 +0000 (11:19 -0500)] 
Change a compression type of test_compat_mac_gnutar.tgz.uu from gzip
to compress so that test_compat_mac_gnutar does not fail on Windows platform,
which does not have libz by default.

SVN-Revision: 2861

15 years agoRemove posix code from archive_read_disk_windows.
Michihiro NAKAJIMA [Wed, 5 Jan 2011 03:03:50 +0000 (22:03 -0500)] 
Remove posix code from archive_read_disk_windows.

SVN-Revision: 2860

15 years agoImprove r2857; If symlink is broken, use its directory path instead.
Michihiro NAKAJIMA [Wed, 5 Jan 2011 02:46:21 +0000 (21:46 -0500)] 
Improve r2857; If symlink is broken, use its directory path instead.

SVN-Revision: 2859

15 years agoAdd a nil terminator size to the size of archive_string when
Michihiro NAKAJIMA [Mon, 3 Jan 2011 16:00:21 +0000 (11:00 -0500)] 
Add a nil terminator size to the size of archive_string when
using archive_string_ensure function.

SVN-Revision: 2858

15 years agoDo not find out a filesystem status when the symlink is broken.
Michihiro NAKAJIMA [Mon, 3 Jan 2011 09:54:49 +0000 (04:54 -0500)] 
Do not find out a filesystem status when the symlink is broken.
statfs will be failed by its brokenness.

SVN-Revision: 2857

15 years agoIf a platform cannot handle a symbolic link, do not archive a symlink file.
Michihiro NAKAJIMA [Mon, 3 Jan 2011 08:23:47 +0000 (03:23 -0500)] 
If a platform cannot handle a symbolic link, do not archive a symlink file.

SVN-Revision: 2856

15 years agoSkip a test for MSZIP of CAB reader if libarchive compiled without libz.
Michihiro NAKAJIMA [Mon, 3 Jan 2011 08:11:57 +0000 (03:11 -0500)] 
Skip a test for MSZIP of CAB reader if libarchive compiled without libz.

SVN-Revision: 2855

15 years agoCorrectly detect Windows full paths.
Michihiro NAKAJIMA [Mon, 3 Jan 2011 07:22:12 +0000 (02:22 -0500)] 
Correctly detect Windows full paths.

SVN-Revision: 2854

15 years agoExtend tar/test/test_option_r to verify the bug that Michihiro found
Tim Kientzle [Sun, 2 Jan 2011 20:03:04 +0000 (15:03 -0500)] 
Extend tar/test/test_option_r to verify the bug that Michihiro found
with -r brokenness.
This turns out to be a bug in the core archive_read I/O not correctly
tracking the current file position under some circumstances.
Extend libarchive/test/test_read_position to verify file position
tracking both with and without a registered skip function.
Fix the bug:  When libarchive falls back to regular reads to fill
out an internal skip request, it failed to count those
bytes toward the current file position.

SVN-Revision: 2853

15 years agoExtend the test of bsdtar -r to exercise larger file contents.
Tim Kientzle [Sun, 2 Jan 2011 19:16:59 +0000 (14:16 -0500)] 
Extend the test of bsdtar -r to exercise larger file contents.
This does not reproduce the problem that Michihiro recently found,
but it's an improvement in the test, so it's worth checking in.

SVN-Revision: 2852

15 years agoEliminate a warning.
Michihiro NAKAJIMA [Sat, 1 Jan 2011 10:32:41 +0000 (05:32 -0500)] 
Eliminate a warning.

SVN-Revision: 2851

15 years agoPrevent a segmentation fault caused by a broken ISO image, and
Michihiro NAKAJIMA [Sat, 1 Jan 2011 07:55:03 +0000 (02:55 -0500)] 
Prevent a segmentation fault caused by a broken ISO image, and
improve error handling of this case.

SVN-Revision: 2850

15 years agoSupport --numeric-owner for tar extraction as well as archive creation.
Tim Kientzle [Fri, 31 Dec 2010 17:57:48 +0000 (12:57 -0500)] 
Support --numeric-owner for tar extraction as well as archive creation.
This just involves reworking tar's extraction routines slightly to use
archive_read_extract2() with a custom-configured archive_write_disk
object, instead of the more convenient archive_read_extract()
interface that automatically builds a standard archive_write_disk
object.

SVN-Revision: 2849

15 years agoliblzma 5.0 provides a better solution for memory usage limit in decoding.
Michihiro NAKAJIMA [Fri, 31 Dec 2010 11:30:20 +0000 (06:30 -0500)] 
liblzma 5.0 provides a better solution for memory usage limit in decoding.

SVN-Revision: 2848

15 years agoPrevent buffer over flow in decoding LZX when reading broken CAB file.
Michihiro NAKAJIMA [Fri, 31 Dec 2010 09:28:46 +0000 (04:28 -0500)] 
Prevent buffer over flow in decoding LZX when reading broken CAB file.

SVN-Revision: 2847

15 years agoIf the size field is negative (which can happen with base-256
Tim Kientzle [Fri, 31 Dec 2010 08:45:46 +0000 (03:45 -0500)] 
If the size field is negative (which can happen with base-256
extended headers), truncate it to zero and return an error.

SVN-Revision: 2846

15 years agoCorrectly format the value -9223372036854775808.
Tim Kientzle [Fri, 31 Dec 2010 05:09:18 +0000 (00:09 -0500)] 
Correctly format the value -9223372036854775808.

SVN-Revision: 2845

15 years agoAdd a lzh test data file in the distribution.
Michihiro NAKAJIMA [Thu, 30 Dec 2010 13:42:12 +0000 (08:42 -0500)] 
Add a lzh test data file in the distribution.

SVN-Revision: 2844

15 years agoPrevent another infinity loop in ISO 9660 reader.
Michihiro NAKAJIMA [Thu, 30 Dec 2010 12:01:21 +0000 (07:01 -0500)] 
Prevent another infinity loop in ISO 9660 reader.

SVN-Revision: 2843

15 years agoFix a buffer over flow at reading bit lengths of huffman code of LZX when
Michihiro NAKAJIMA [Thu, 30 Dec 2010 10:14:46 +0000 (05:14 -0500)] 
Fix a buffer over flow at reading bit lengths of huffman code of LZX when
reading broken CAB file.

SVN-Revision: 2842

15 years agoMake a check strict to SUSP CE extension.
Michihiro NAKAJIMA [Thu, 30 Dec 2010 09:12:07 +0000 (04:12 -0500)] 
Make a check strict to SUSP CE extension.

SVN-Revision: 2841

15 years agoPrevent inifity loop when reading broken CAB file.
Michihiro NAKAJIMA [Thu, 30 Dec 2010 08:18:57 +0000 (03:18 -0500)] 
Prevent inifity loop when reading broken CAB file.

SVN-Revision: 2840

15 years agoDo not trust a compression type in CAB file.
Michihiro NAKAJIMA [Thu, 30 Dec 2010 07:56:56 +0000 (02:56 -0500)] 
Do not trust a compression type in CAB file.

SVN-Revision: 2839

15 years agoAdd the ability to decode LZX, which is one of compression type of MS Cabinet file.
Michihiro NAKAJIMA [Wed, 29 Dec 2010 14:38:03 +0000 (09:38 -0500)] 
Add the ability to decode LZX, which is one of compression type of MS Cabinet file.

SVN-Revision: 2838

15 years agoAvoid compling error by mingw32-gcc.
Michihiro NAKAJIMA [Sat, 25 Dec 2010 03:43:38 +0000 (22:43 -0500)] 
Avoid compling error by mingw32-gcc.

SVN-Revision: 2837

15 years agoRename some macro names. Those conflict with macro in stdio.h on msys.
Michihiro NAKAJIMA [Fri, 24 Dec 2010 16:14:02 +0000 (11:14 -0500)] 
Rename some macro names. Those conflict with macro in stdio.h on msys.

SVN-Revision: 2836

15 years agoCorrect spelling.
Michihiro NAKAJIMA [Fri, 24 Dec 2010 09:29:00 +0000 (04:29 -0500)] 
Correct spelling.

SVN-Revision: 2835

15 years agoRemove a check for archive_entry_mtime from cab reader test.
Michihiro NAKAJIMA [Thu, 23 Dec 2010 08:26:50 +0000 (03:26 -0500)] 
Remove a check for archive_entry_mtime from cab reader test.
I realized that DOS date/time cannot be tested on any timezone.

SVN-Revision: 2834

15 years agoUpdate how to make sample files for cab reader test.
Michihiro NAKAJIMA [Thu, 23 Dec 2010 08:17:00 +0000 (03:17 -0500)] 
Update how to make sample files for cab reader test.

SVN-Revision: 2833

15 years agoAdd support for Microsoft Cabinet(.cab) format.
Michihiro NAKAJIMA [Wed, 22 Dec 2010 16:01:31 +0000 (11:01 -0500)] 
Add support for Microsoft Cabinet(.cab) format.

Currently, this code supports STORE and MSZIP.
This reader always decompress recorded data even if archive_read_data
function is not called at all, because all blocks, which are
splited in 32768 bytes of uncompresssed data, need uncompressed
data of previous block to be decompressed, and there is no chance
that the format reader in libarchive knows that a caller application
such as bsdtar performs listing up filenames or finding one to
extract a specific file.

SVN-Revision: 2832

15 years agoAdd support for lha/lzh archive format.
Michihiro NAKAJIMA [Mon, 20 Dec 2010 08:59:25 +0000 (03:59 -0500)] 
Add support for lha/lzh archive format.

SVN-Revision: 2831

15 years agoIssue 124: Correct some references to getpwuid and getgrgid.
Tim Kientzle [Mon, 20 Dec 2010 04:44:41 +0000 (23:44 -0500)] 
Issue 124:  Correct some references to getpwuid and getgrgid.

SVN-Revision: 2830

15 years agoMake sure a check of a filename in joliet extension does not access
Michihiro NAKAJIMA [Fri, 17 Dec 2010 04:27:08 +0000 (23:27 -0500)] 
Make sure a check of a filename in joliet extension does not access
invalid address.

SVN-Revision: 2829

15 years agoRemove unneeded assignment. 'seenJoliet' has already had the same value.
Michihiro NAKAJIMA [Thu, 16 Dec 2010 13:39:42 +0000 (08:39 -0500)] 
Remove unneeded assignment. 'seenJoliet' has already had the same value.

SVN-Revision: 2828

15 years agoMake sure a returned pointer is not NULL.
Michihiro NAKAJIMA [Thu, 16 Dec 2010 13:17:56 +0000 (08:17 -0500)] 
Make sure a returned pointer is not NULL.

SVN-Revision: 2827

15 years agoFix a wrong scope to hex.
Michihiro NAKAJIMA [Thu, 16 Dec 2010 12:36:18 +0000 (07:36 -0500)] 
Fix a wrong scope to hex.

SVN-Revision: 2826

15 years agoRemove dead code.
Michihiro NAKAJIMA [Thu, 16 Dec 2010 12:32:39 +0000 (07:32 -0500)] 
Remove dead code.

SVN-Revision: 2825

15 years agoAvoid clang static analyze error at archive_entry_sparse.c
Michihiro NAKAJIMA [Thu, 16 Dec 2010 12:15:28 +0000 (07:15 -0500)] 
Avoid clang static analyze error at archive_entry_sparse.c
though I do not think what the nalayzer pointed out will happen.

SVN-Revision: 2824

15 years agoFix a test that breaks on systems where GID 17 is actually
Tim Kientzle [Sat, 11 Dec 2010 18:56:34 +0000 (13:56 -0500)] 
Fix a test that breaks on systems where GID 17 is actually
used.  Leave comments about some additional cases that would
be nice to test if someone can figure out a good way to do
so (a way that won't break on Windows, for example).

SVN-Revision: 2821

15 years agoFix issue 119.
Michihiro NAKAJIMA [Tue, 7 Dec 2010 06:40:51 +0000 (01:40 -0500)] 
Fix issue 119.
Change the file location check that a file location does not exceed
volume block. New one is that a file content does not exceed volume
block(end of an ISO image). It is better than previous check even
if the issue did not happen.

While reading an ISO image generated by an older version of mkisofs
utility, a file location indicates the end the ISO image if its file
size is zero and it is the last file of all files of the ISO image,
so it is possible that the location value is the same as the number
of the total block of the ISO image.

SVN-Revision: 2820

15 years agoFix issue 119.
Michihiro NAKAJIMA [Tue, 7 Dec 2010 06:36:39 +0000 (01:36 -0500)] 
Fix issue 119.
Change the file location check that a file location does not exceed
volume block. New one is that a file content does not exceed volume
block(end of an ISO image). It is better than previous check even
if the issue did not happen.

While reading an ISO image generated by an older version of mkisofs
utility, a file location indicates the end the ISO image if its file
size is zero and it is the last file of all files of the ISO image,
so it is possible that the location value is the same as the number
of the total block of the ISO image.

SVN-Revision: 2819

15 years agoRename archive_wstrappend_mbs to archive_wstrcpy_mbs to better reflect what it actual...
Tim Kientzle [Tue, 7 Dec 2010 05:19:50 +0000 (00:19 -0500)] 
Rename archive_wstrappend_mbs to archive_wstrcpy_mbs to better reflect what it actually does.

SVN-Revision: 2818

15 years agoMerge r2814 from trunk: Fix Issue 121
Tim Kientzle [Tue, 7 Dec 2010 05:06:01 +0000 (00:06 -0500)] 
Merge r2814 from trunk: Fix Issue 121

SVN-Revision: 2817

15 years agoDon't try to copy entry data if the entry has zero size.
Tim Kientzle [Tue, 7 Dec 2010 05:02:31 +0000 (00:02 -0500)] 
Don't try to copy entry data if the entry has zero size.
In particular, this causes "Cannot write to empty file" errors
when extracting GNU tar extended 'D' directory entries.

SVN-Revision: 2816

15 years agoProperly set a wcs length.
Michihiro NAKAJIMA [Mon, 6 Dec 2010 13:19:37 +0000 (08:19 -0500)] 
Properly set a wcs length.

SVN-Revision: 2815

15 years agoClear the "contents" data before parsing the next mtree entry.
Tim Kientzle [Sun, 5 Dec 2010 23:35:40 +0000 (18:35 -0500)] 
Clear the "contents" data before parsing the next mtree entry.

This may be the cause of the problem reported in Issue 121.

SVN-Revision: 2814

15 years agoFirst part of the NFS4 ACL support.
Tim Kientzle [Sun, 5 Dec 2010 20:50:03 +0000 (15:50 -0500)] 
First part of the NFS4 ACL support.

This renames a few things to acknowledge that there really
is more than one kind of ACL in the world and extends
the basic ACL storage to support the NFS4/NTFS ACL
mode bits.  The ACL storage has also gained some
error checks to ensure that a single ACL does not have
both NFS4/NTFS and POSIX.1e ACEs.

SVN-Revision: 2813

15 years agoMerge r2811 from trunk: Don't try to verify that compression-level=0
Tim Kientzle [Sun, 5 Dec 2010 20:30:23 +0000 (15:30 -0500)] 
Merge r2811 from trunk:  Don't try to verify that compression-level=0
produces larger results than the default compression, since this isn't
true for all versions of liblzma.

SVN-Revision: 2812

15 years agoDon't assert that compression-level=0 produces larger file
Tim Kientzle [Sun, 5 Dec 2010 20:28:34 +0000 (15:28 -0500)] 
Don't assert that compression-level=0 produces larger file
than the default compression, since the actual result varies
depending on the version of liblzma.

SVN-Revision: 2811

15 years agoAdjust cut-off condition to correctly return INT_MAX for large integers.
Joerg Sonnenberger [Sun, 5 Dec 2010 00:54:03 +0000 (19:54 -0500)] 
Adjust cut-off condition to correctly return INT_MAX for large integers.
Found by Maksymilian Arciemowicz <cxib@securityreason.com>.

SVN-Revision: 2810

15 years agoRestore ACLs after calls to chmod().
Tim Kientzle [Mon, 29 Nov 2010 02:50:17 +0000 (21:50 -0500)] 
Restore ACLs after calls to chmod().

In particular, current versions of ZFS on Solaris and
FreeBSD erase ACLs on each call to chmod, so ACL
restore has to follow chmod calls on those platforms.

SVN-Revision: 2809

15 years agoPass the ACL into set_acl(), not the entire entry.
Tim Kientzle [Mon, 29 Nov 2010 02:21:39 +0000 (21:21 -0500)] 
Pass the ACL into set_acl(), not the entire entry.

SVN-Revision: 2808

15 years agoPass the fd and name down into the ACL setting routine.
Tim Kientzle [Mon, 29 Nov 2010 01:58:21 +0000 (20:58 -0500)] 
Pass the fd and name down into the ACL setting routine.

SVN-Revision: 2807

15 years agoFix an annoying build problem where you could
Tim Kientzle [Mon, 29 Nov 2010 01:35:18 +0000 (20:35 -0500)] 
Fix an annoying build problem where you could
configure with cmake, make some changes, re-configure,
and the build would consistently break with missing crypto
libraries.

The solution is to separate testing for available
implementations (the try-compiles happen only if
the decision hasn't been cached) from deciding which
additional libraries to add to the build (which happens
regardless).

SVN-Revision: 2806

15 years agoAdd explicit arguments to set_acls() for the file descriptor and entry.
Tim Kientzle [Mon, 29 Nov 2010 00:10:14 +0000 (19:10 -0500)] 
Add explicit arguments to set_acls() for the file descriptor and entry.
This is a step towards refactoring directory ACLs to be written
during the fixup pass.

SVN-Revision: 2805

15 years agoRefactor test_basic a bit, add checks to verify the file contents.
Tim Kientzle [Sun, 28 Nov 2010 22:51:21 +0000 (17:51 -0500)] 
Refactor test_basic a bit, add checks to verify the file contents.

SVN-Revision: 2804

15 years agoDo not assume that all platforms have readdir_r function.
Michihiro NAKAJIMA [Thu, 25 Nov 2010 14:27:20 +0000 (09:27 -0500)] 
Do not assume that all platforms have readdir_r function.

SVN-Revision: 2803

15 years agoAllocate memory as much as we need in test_write_format_xar.
Michihiro NAKAJIMA [Tue, 23 Nov 2010 07:33:15 +0000 (02:33 -0500)] 
Allocate memory as much as we need in test_write_format_xar.

SVN-Revision: 2802

15 years agoUse readdir_r instead of readdir in directory traversals.
Michihiro NAKAJIMA [Tue, 23 Nov 2010 07:10:11 +0000 (02:10 -0500)] 
Use readdir_r instead of readdir in directory traversals.

SVN-Revision: 2801

15 years agoInclude some missing test data files in the distribution.
Tim Kientzle [Sun, 21 Nov 2010 00:30:11 +0000 (19:30 -0500)] 
Include some missing test data files in the distribution.

SVN-Revision: 2800

15 years agoAdd a couple of files that were omitted from Makefile.am
Tim Kientzle [Sun, 21 Nov 2010 00:18:39 +0000 (19:18 -0500)] 
Add a couple of files that were omitted from Makefile.am

SVN-Revision: 2799

15 years agoRevert a change that was inadvertently picked up in r2793.
Tim Kientzle [Sun, 21 Nov 2010 00:18:16 +0000 (19:18 -0500)] 
Revert a change that was inadvertently picked up in r2793.
Also, add an AC_LANG_SOURCE call that seems to be required
since autoconf 2.68.

SVN-Revision: 2798

15 years agoMake sure 'tempdir' variable gets initialized correctly.
Tim Kientzle [Sun, 21 Nov 2010 00:15:54 +0000 (19:15 -0500)] 
Make sure 'tempdir' variable gets initialized correctly.

SVN-Revision: 2797

15 years agoMove var declaration to the start of the function, as per ISO C.
Tim Kientzle [Sun, 21 Nov 2010 00:08:32 +0000 (19:08 -0500)] 
Move var declaration to the start of the function, as per ISO C.

SVN-Revision: 2796

15 years agoThe other part of r2794.
Tim Kientzle [Sat, 20 Nov 2010 23:56:41 +0000 (18:56 -0500)] 
The other part of r2794.

SVN-Revision: 2795

15 years agoVisual Studio 9 does not like this use of 'inline'.
Tim Kientzle [Sat, 20 Nov 2010 23:54:16 +0000 (18:54 -0500)] 
Visual Studio 9 does not like this use of 'inline'.

SVN-Revision: 2794

15 years agoMove the abstract ACL manipulations into a separate source file.
Tim Kientzle [Sat, 20 Nov 2010 07:17:02 +0000 (02:17 -0500)] 
Move the abstract ACL manipulations into a separate source file.

SVN-Revision: 2793

15 years agoFix a typo in the cpio test.
Tim Kientzle [Sat, 20 Nov 2010 05:51:36 +0000 (00:51 -0500)] 
Fix a typo in the cpio test.

SVN-Revision: 2792

15 years agoBig string overhaul:
Tim Kientzle [Fri, 19 Nov 2010 06:49:07 +0000 (01:49 -0500)] 
Big string overhaul:
  * Remove __ from names (ISO C reserves names prefixed with __)
  * Remove the gratuitous macro wrappers
  * Remove a couple of unused functions
  * Try to simplify some of the implementations a bit more.
  * Move the "archive entry string" (aes) functions into archive_string
    as "archive_multistring" so these can be used outside of archive_entry

SVN-Revision: 2791

15 years agoAn ACL is a collection of ACEs.
Tim Kientzle [Wed, 17 Nov 2010 06:10:49 +0000 (01:10 -0500)] 
An ACL is a collection of ACEs.

SVN-Revision: 2790

15 years agoAdd %ls and %S to archive_string_sprintf() for formatting wide-character strings,
Tim Kientzle [Fri, 12 Nov 2010 05:50:55 +0000 (00:50 -0500)] 
Add %ls and %S to archive_string_sprintf() for formatting wide-character strings,
use it to fix a build error on Windows putting wchar_t paths into error messages.

SVN-Revision: 2788

15 years agoStrip the Windows-specific code out of the POSIX directory traversal.
Tim Kientzle [Fri, 12 Nov 2010 05:29:25 +0000 (00:29 -0500)] 
Strip the Windows-specific code out of the POSIX directory traversal.

SVN-Revision: 2787

15 years agoSplit the archive_read_disk traversal into separate POSIX and Windows implementations.
Tim Kientzle [Fri, 12 Nov 2010 05:12:11 +0000 (00:12 -0500)] 
Split the archive_read_disk traversal into separate POSIX and Windows implementations.
There are just too many differences.

SVN-Revision: 2786

15 years agoIssue 114: Remove duplicate include.
Tim Kientzle [Fri, 12 Nov 2010 04:49:22 +0000 (23:49 -0500)] 
Issue 114: Remove duplicate include.

SVN-Revision: 2785