]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
14 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

14 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

14 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

14 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

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

SVN-Revision: 2851

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

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

SVN-Revision: 2835

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

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

SVN-Revision: 2825

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 years agoIssue 113: Include an error message when the size overflows.
Tim Kientzle [Fri, 12 Nov 2010 04:47:46 +0000 (23:47 -0500)] 
Issue 113:  Include an error message when the size overflows.

SVN-Revision: 2784

14 years agoIssue 94: When writing into an fd that's not seekable (e.g., a pipe),
Tim Kientzle [Wed, 10 Nov 2010 07:05:47 +0000 (02:05 -0500)] 
Issue 94: When writing into an fd that's not seekable (e.g., a pipe),
we have to fill in zero holes for sparse files.

SVN-Revision: 2783

14 years agoIssue 113: When writing headers, return ARCHIVE_FAILED
Tim Kientzle [Wed, 10 Nov 2010 05:59:05 +0000 (00:59 -0500)] 
Issue 113:  When writing headers, return ARCHIVE_FAILED
on various problems:
  * Missing name
  * Missing size (except for hardlinks)
  * Missing filetype
  * Size too large for format

SVN-Revision: 2782

14 years agoIf we see junk when we're expecting a 'PK' signature
Tim Kientzle [Sun, 7 Nov 2010 02:14:21 +0000 (22:14 -0400)] 
If we see junk when we're expecting a 'PK' signature
block, scan forward to see if we can find a suitable
signature.

This is necessary to read archives that have been modified
by some Zip utilities that update entries in-place without
compacting the entire archive.

Of course, this would be very natural if libarchive
used the Central directory.  But even when libarchive
does support the Central directory, this kind of logic
will still be useful for reading Zip archives in streaming
mode.

SVN-Revision: 2781

14 years agoDeclare a function that was omitted.
Tim Kientzle [Wed, 3 Nov 2010 05:50:42 +0000 (01:50 -0400)] 
Declare a function that was omitted.

SVN-Revision: 2779

14 years agoReturn NULL if there is no error message.
Tim Kientzle [Sun, 31 Oct 2010 06:35:10 +0000 (02:35 -0400)] 
Return NULL if there is no error message.
In particular, we should start filling in assertions in lots
of tests to verify that textual error messages are getting
generated on errors.

SVN-Revision: 2777

14 years agoA test for r2769: Truncated compressed inputs should
Tim Kientzle [Sun, 31 Oct 2010 06:34:22 +0000 (02:34 -0400)] 
A test for r2769:  Truncated compressed inputs should
fail cleanly and include a text error message.

SVN-Revision: 2776

14 years agoRemove an outdated comment.
Tim Kientzle [Sun, 31 Oct 2010 06:33:20 +0000 (02:33 -0400)] 
Remove an outdated comment.

SVN-Revision: 2775

14 years agoAllow failure(NULL) to clear the failure detail message.
Tim Kientzle [Sun, 31 Oct 2010 06:26:15 +0000 (02:26 -0400)] 
Allow failure(NULL) to clear the failure detail message.

SVN-Revision: 2774

14 years ago__archive_write_filter returns a status, not a count of bytes written.
Tim Kientzle [Sun, 31 Oct 2010 06:24:18 +0000 (02:24 -0400)] 
__archive_write_filter returns a status, not a count of bytes written.
Correct the bzip2 and compress writers.

SVN-Revision: 2773

14 years agoReconcile the test harnesses across libarchive, tar, and cpio.
Tim Kientzle [Sun, 31 Oct 2010 04:44:03 +0000 (00:44 -0400)] 
Reconcile the test harnesses across libarchive, tar, and cpio.
Remove almost all of the varargs capabilities from the various
assertion helpers, since they complicate the code and are
hardly ever used.

SVN-Revision: 2772

14 years agosvn:ignore Mac OS .dylib files
Tim Kientzle [Sun, 31 Oct 2010 03:41:02 +0000 (23:41 -0400)] 
svn:ignore Mac OS .dylib files

SVN-Revision: 2771

14 years agoInclude an actual text error message if the gzip, bzip2, xz, lzma, or
Tim Kientzle [Sun, 31 Oct 2010 03:28:15 +0000 (23:28 -0400)] 
Include an actual text error message if the gzip, bzip2, xz, lzma, or
lzip input is truncated.

SVN-Revision: 2769

14 years agoHandle umask a little more carefully: Instead of setting umask to
Tim Kientzle [Sat, 30 Oct 2010 07:38:53 +0000 (03:38 -0400)] 
Handle umask a little more carefully:  Instead of setting umask to
zero, then restoring a file, then restoring umask, just query
the umask and adjust the file restore operations to account for it.

Go ahead and query the umask at new() time as well.
This opens the possibility of removing the umask query from
write_disk_header if you want to make libarchive behave more
nicely with threads.

SVN-Revision: 2768

14 years agoAfter removing support for writing SCHILY.dev/ino/nlink keyword,
Tim Kientzle [Tue, 26 Oct 2010 05:28:47 +0000 (01:28 -0400)] 
After removing support for writing SCHILY.dev/ino/nlink keyword,
I didn't update all of the tests.

SVN-Revision: 2765

14 years agoIssue 112: Use int64_t for tracking total size of entry
Tim Kientzle [Tue, 26 Oct 2010 05:18:26 +0000 (01:18 -0400)] 
Issue 112: Use int64_t for tracking total size of entry
when parsing off GNU tar sparse file information.

SVN-Revision: 2764

14 years agoAccept both '!' and '^' for a negated character class.
Tim Kientzle [Wed, 6 Oct 2010 04:19:58 +0000 (00:19 -0400)] 
Accept both '!' and '^' for a negated character class.

SVN-Revision: 2748

14 years agofix a bug introduced in the last set of cleanups to this file; if setting the unconsu...
Brian Harring [Mon, 27 Sep 2010 15:42:07 +0000 (11:42 -0400)] 
fix a bug introduced in the last set of cleanups to this file; if setting the unconsumed, don't invoke consume ourselves (this fixes the readahead/consume in this case)

SVN-Revision: 2741

14 years agofix a read_ahead/consume pairing that was missed in the cleanup
Brian Harring [Mon, 27 Sep 2010 15:40:00 +0000 (11:40 -0400)] 
fix a read_ahead/consume pairing that was missed in the cleanup

SVN-Revision: 2740

14 years agointercept dumb requests, and return immediately
Brian Harring [Mon, 27 Sep 2010 15:37:49 +0000 (11:37 -0400)] 
intercept dumb requests, and return immediately

SVN-Revision: 2739

14 years agofix more read_ahead/consume pairings to ensure that when a consume is invoked, that...
Brian Harring [Mon, 27 Sep 2010 15:28:19 +0000 (11:28 -0400)] 
fix more read_ahead/consume pairings to ensure that when a consume is invoked, that data is no longer accessed

SVN-Revision: 2738

14 years agoupdate iso archive for proper read_(ahead|consume) pairing... that's the last of...
Brian Harring [Sat, 25 Sep 2010 07:03:50 +0000 (03:03 -0400)] 
update iso archive for proper read_(ahead|consume) pairing... that's the last of 'em.

SVN-Revision: 2701

14 years agoupdate zip for proper read_(ahead|consume).
Brian Harring [Sat, 25 Sep 2010 06:46:42 +0000 (02:46 -0400)] 
update zip for proper read_(ahead|consume).

SVN-Revision: 2700

14 years agocleanup xar's readahead/consume pairing... pretty clean actually.
Brian Harring [Sat, 25 Sep 2010 06:12:39 +0000 (02:12 -0400)] 
cleanup xar's readahead/consume pairing... pretty clean actually.

SVN-Revision: 2699

14 years agofinish conversion over to tar_flush_unconsumed, and converting adhoc readahead/consum...
Brian Harring [Sat, 25 Sep 2010 05:43:07 +0000 (01:43 -0400)] 
finish conversion over to tar_flush_unconsumed, and converting adhoc readahead/consume pairing.  Haven't been able to pinpoint why test_read_large, test_read_truncated, and test_read_data_large fail when poisoning is enabled- either the readahead/consume pairing is still off slightly, or (what I suspect) there is a dangling ptr that just happens to work currently.  Will root this one out under libtransform where I can more easily make the actual space no longer valid (literal free'ing), hopefully smoking it out via a segfault.

SVN-Revision: 2698

14 years agomore work to pair tar's readahead/consume; this still isn't perfect (the disabled...
Brian Harring [Sat, 25 Sep 2010 04:36:27 +0000 (00:36 -0400)] 
more work to pair tar's readahead/consume; this still isn't perfect (the disabled poison code w/in tar_flush_unconsumed confirms this), although pretty close.

SVN-Revision: 2697

14 years agoinitial cleanup of tar readahead/consume pairing; not finished (read_header is a...
Brian Harring [Fri, 24 Sep 2010 07:44:52 +0000 (03:44 -0400)] 
initial cleanup of tar readahead/consume pairing; not finished (read_header is a doozie)

SVN-Revision: 2696

14 years agoupdate raw w/ proper read_ahead/consume pairing
Brian Harring [Fri, 24 Sep 2010 05:27:00 +0000 (01:27 -0400)] 
update raw w/ proper read_ahead/consume pairing

SVN-Revision: 2695

14 years agoadd a format level data skip to cpio
Brian Harring [Thu, 23 Sep 2010 13:08:03 +0000 (09:08 -0400)] 
add a format level data skip to cpio

SVN-Revision: 2694

14 years agoconsume only when the read_ahead data is no longer in use...
Brian Harring [Thu, 23 Sep 2010 13:00:50 +0000 (09:00 -0400)] 
consume only when the read_ahead data is no longer in use...

SVN-Revision: 2693

14 years agohopefully the last ar mod needed; same thing as the last set of commits, do not mark...
Brian Harring [Thu, 23 Sep 2010 11:52:21 +0000 (07:52 -0400)] 
hopefully the last ar mod needed; same thing as the last set of commits, do not mark data you're actively using as consumed till it's consumed

SVN-Revision: 2692

14 years agoreplace an adhoc consume/skip invocation with a proper skip/consume invocation (prima...
Brian Harring [Thu, 23 Sep 2010 11:40:18 +0000 (07:40 -0400)] 
replace an adhoc consume/skip invocation with a proper skip/consume invocation (primarily relevant since the underlaying transforms/source may be able to shift to an lseek; unlikely, but it simplifies the code a bit).  As for updating padding when the seek is less than what was requested, this is being done purely to keep existing behaviour- the ARCHIVE_FATAL return should make this a noop, but being safe.

SVN-Revision: 2691