]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
14 years agoCorrectly test the times on the very old files in the sample mtree.
Tim Kientzle [Sun, 11 Sep 2011 18:29:59 +0000 (14:29 -0400)] 
Correctly test the times on the very old files in the sample mtree.
Because time_t varies across platforms (32-bit, 64-bit, signed, and
unsigned), we can't just hard-code the expected value here, but we can
verify the that value returned is the oldest possible time_t value for
this platform.

SVN-Revision: 3700

14 years agoEnsure the returned 'time' value doesn't exceed the range of time_t on the
Tim Kientzle [Sun, 11 Sep 2011 17:23:50 +0000 (13:23 -0400)] 
Ensure the returned 'time' value doesn't exceed the range of time_t on the
local platform.

SVN-Revision: 3699

14 years agoUpdate comment.
Tim Kientzle [Sun, 11 Sep 2011 16:13:34 +0000 (12:13 -0400)] 
Update comment.

SVN-Revision: 3698

14 years agoNewer ZLib DLLs require ZLIB_WINAPI be defined.
Tim Kientzle [Sun, 11 Sep 2011 16:13:07 +0000 (12:13 -0400)] 
Newer ZLib DLLs require ZLIB_WINAPI be defined.

SVN-Revision: 3697

14 years agoAdd RAR SFX archive to test_fuzz.
Andres Mejia [Fri, 9 Sep 2011 14:45:49 +0000 (10:45 -0400)] 
Add RAR SFX archive to test_fuzz.

SVN-Revision: 3696

14 years agoAdd test case for RAR SFX archives.
Andres Mejia [Fri, 9 Sep 2011 14:45:12 +0000 (10:45 -0400)] 
Add test case for RAR SFX archives.

SVN-Revision: 3695

14 years agoAdd support for extracting a RAR SFX file.
Michihiro NAKAJIMA [Fri, 9 Sep 2011 04:29:25 +0000 (00:29 -0400)] 
Add support for extracting a RAR SFX file.

SVN-Revision: 3694

14 years agoFix build failure on Cygwin.
Michihiro NAKAJIMA [Thu, 8 Sep 2011 06:46:04 +0000 (02:46 -0400)] 
Fix build failure on Cygwin.

SVN-Revision: 3693

14 years agoFix issue 174.
Michihiro NAKAJIMA [Thu, 8 Sep 2011 06:18:18 +0000 (02:18 -0400)] 
Fix issue 174.
Correctly handle Windows style full-path names, which are
leading \\.\ or \\?\ or \\?\\UNC\ or \\?\Volume{GUID}\ or C:\,
in archive_write_disk_windows.c.

SVN-Revision: 3692

14 years agoRework the cpio readers and writers to not rely on structure
Tim Kientzle [Thu, 8 Sep 2011 05:11:02 +0000 (01:11 -0400)] 
Rework the cpio readers and writers to not rely on structure
alignment to read headers.

SVN-Revision: 3691

14 years agoCheck if the platform really supports crypto functions at the mtree writer
Michihiro NAKAJIMA [Wed, 7 Sep 2011 06:16:28 +0000 (02:16 -0400)] 
Check if the platform really supports crypto functions at the mtree writer
even if ARCHIVE_HAS_SHA* macros are defined, since Windows XP and earlier version
do not support some cyrpto functions.

SVN-Revision: 3690

14 years agoAvoid test_archive_sha384 and test_archive_sha512 failures on Windows XP, which does not
Michihiro NAKAJIMA [Wed, 7 Sep 2011 05:48:52 +0000 (01:48 -0400)] 
Avoid test_archive_sha384 and test_archive_sha512 failures on Windows XP, which does not
support both SHA384 and SHA512. We can only know that fact when that running time. And so
we should not depend on the compile conditions of crypto functions at our test suite.

SVN-Revision: 3689

14 years agoAdd support for RAR archives generated from BeOS machines.
Andres Mejia [Mon, 5 Sep 2011 17:09:06 +0000 (13:09 -0400)] 
Add support for RAR archives generated from BeOS machines.
I'm assuming RAR archives from BeOS use POSIX file attributes, based on looking
around in the Haiku distribution. I could not find or generate any RAR archives
from a BeOS/Haiku machine.

SVN-Revision: 3683

14 years agoSupport MAC OS generated RAR files.
Andres Mejia [Mon, 5 Sep 2011 16:28:32 +0000 (12:28 -0400)] 
Support MAC OS generated RAR files.
MAC OS generated RAR files use POSIX file attributes.

SVN-Revision: 3682

14 years agoEnable support for RAR files generated from MS-DOS and OS/2.
Andres Mejia [Mon, 5 Sep 2011 16:22:28 +0000 (12:22 -0400)] 
Enable support for RAR files generated from MS-DOS and OS/2.
Because file attributes in MS-DOS, OS/2, and Windows are similar, I am assuming
RAR archives generated from these three systems will use the same attributes. I
could not find or generate any test RAR archives for these cases.

SVN-Revision: 3681

14 years agoProvide basic test case for RAR files generated on Windows machines.
Andres Mejia [Mon, 5 Sep 2011 15:13:11 +0000 (11:13 -0400)] 
Provide basic test case for RAR files generated on Windows machines.

SVN-Revision: 3680

14 years agoRename lzx_br_read_ahead to lzx_br_read_ahead_0, and also rename
Michihiro NAKAJIMA [Mon, 5 Sep 2011 10:38:39 +0000 (06:38 -0400)] 
Rename lzx_br_read_ahead to lzx_br_read_ahead_0, and also rename
lzx_br_ensure to lzx_br_read_ahead so as to have the same meaning
to other bit readers.

SVN-Revision: 3679

14 years agoRename lzh_br_read_ahead, a bit reader macro, to lzh_br_read_ahead_0,
Michihiro NAKAJIMA [Mon, 5 Sep 2011 10:34:16 +0000 (06:34 -0400)] 
Rename lzh_br_read_ahead, a bit reader macro, to lzh_br_read_ahead_0,
and make a new lzh_br_read_ahead that that assures that there are enough
bits in the cache buffer.

SVN-Revision: 3678

14 years agoDo not calculate a next copy position unless it's really needed.
Michihiro NAKAJIMA [Mon, 5 Sep 2011 03:32:37 +0000 (23:32 -0400)] 
Do not calculate a next copy position unless it's really needed.

SVN-Revision: 3677

14 years agoExtend the tar test to verify that symlink and hardlink
Tim Kientzle [Sun, 4 Sep 2011 16:36:08 +0000 (12:36 -0400)] 
Extend the tar test to verify that symlink and hardlink
targets get properly rewritten by default.

Adjust the -s parser so that symlink and hardlink target
rewriting is enabled by default and the 's' or 'S' flags
disable both.

SVN-Revision: 3676

14 years agoLZX fotter-bits can take 17 bits, and so a bit reader should handle
Michihiro NAKAJIMA [Sun, 4 Sep 2011 09:08:25 +0000 (05:08 -0400)] 
LZX fotter-bits can take 17 bits, and so a bit reader should handle
over 16 bits in the bit stream.

SVN-Revision: 3674

14 years agoImprove decoding huffman code in both lha and cab reader.
Michihiro NAKAJIMA [Sun, 4 Sep 2011 07:16:39 +0000 (03:16 -0400)] 
Improve decoding huffman code in both lha and cab reader.
It's about 30% faster than previous version, and a total
extraction time is about 3% faster than previous version.

SVN-Revision: 3673

14 years agoTest integer parsing at the limits of 64-bit integers.
Tim Kientzle [Sat, 3 Sep 2011 18:22:57 +0000 (14:22 -0400)] 
Test integer parsing at the limits of 64-bit integers.

SVN-Revision: 3672

14 years agoRefactor the iconv probe by moving the repetitive try-compile
Tim Kientzle [Sat, 3 Sep 2011 18:01:33 +0000 (14:01 -0400)] 
Refactor the iconv probe by moving the repetitive try-compile
into a parametrized macro.

SVN-Revision: 3671

14 years agoLibarchive 2.8.5 v2.8.5
Tim Kientzle [Sat, 3 Sep 2011 16:20:07 +0000 (12:20 -0400)] 
Libarchive 2.8.5

SVN-Revision: 3670

14 years agoUse Nettle ripemd160 header and functions accepted into Nettle.
Andres Mejia [Fri, 2 Sep 2011 18:28:12 +0000 (14:28 -0400)] 
Use Nettle ripemd160 header and functions accepted into Nettle.

SVN-Revision: 3669

14 years agoIssue 178: compile issue on MSVC2010 with lzma support.
Michihiro NAKAJIMA [Thu, 1 Sep 2011 08:54:53 +0000 (04:54 -0400)] 
Issue 178: compile issue on MSVC2010 with lzma support.
Merge r2365 and r2367 from trunk.

SVN-Revision: 3668

14 years agoIssue 177: Fix --without-zlib compilation.
Michihiro NAKAJIMA [Thu, 1 Sep 2011 08:31:37 +0000 (04:31 -0400)] 
Issue 177: Fix --without-zlib compilation.

SVN-Revision: 3667

14 years agoIssue 176: Const-ify several static arrays.
Michihiro NAKAJIMA [Thu, 1 Sep 2011 08:25:09 +0000 (04:25 -0400)] 
Issue 176: Const-ify several static arrays.

SVN-Revision: 3666

14 years agoDelay a memory allocation for an output buffer at the xar reader
Michihiro NAKAJIMA [Wed, 31 Aug 2011 10:49:12 +0000 (06:49 -0400)] 
Delay a memory allocation for an output buffer at the xar reader
until it's really needed.

SVN-Revision: 3665

14 years agoAll type of LHa headers have a CRC16 value for a valid check to file contents
Michihiro NAKAJIMA [Wed, 31 Aug 2011 10:28:12 +0000 (06:28 -0400)] 
All type of LHa headers have a CRC16 value for a valid check to file contents
except early version of a level 0 header.

SVN-Revision: 3664

14 years agoIssue 175: Simplify filter bidding code.
Tim Kientzle [Wed, 31 Aug 2011 04:10:45 +0000 (00:10 -0400)] 
Issue 175: Simplify filter bidding code.

SVN-Revision: 3663

14 years agoRemove outdated definitions in archive_windows.h.
Michihiro NAKAJIMA [Sun, 28 Aug 2011 06:48:58 +0000 (02:48 -0400)] 
Remove outdated definitions in archive_windows.h.

SVN-Revision: 3662

14 years ago__archive_mktemp function should simply be in one file for maintenance, and so
Michihiro NAKAJIMA [Sun, 28 Aug 2011 06:38:41 +0000 (02:38 -0400)] 
__archive_mktemp function should simply be in one file for maintenance, and so
I migrated that of Windows implementation into archive_util.c.

SVN-Revision: 3661

14 years agoMigrate message digest functions on Windows into archive_crypto.c and
Michihiro NAKAJIMA [Sun, 28 Aug 2011 05:45:30 +0000 (01:45 -0400)] 
Migrate message digest functions on Windows into archive_crypto.c and
remove global function names, __la_hash_Init, __la_hash_Update and __la_hash_Final
since those are used only in archive_crypto.c.

SVN-Revision: 3660

14 years agoFix build failure on Windows.
Michihiro NAKAJIMA [Sun, 28 Aug 2011 04:58:44 +0000 (00:58 -0400)] 
Fix build failure on Windows.

SVN-Revision: 3659

14 years agoFetch current config.guess and config.sub as part of the release build.
Tim Kientzle [Sat, 27 Aug 2011 22:32:50 +0000 (18:32 -0400)] 
Fetch current config.guess and config.sub as part of the release build.

SVN-Revision: 3658

14 years agoPartly as documentation, include a step to fetch up-to-date
Tim Kientzle [Sat, 27 Aug 2011 22:31:45 +0000 (18:31 -0400)] 
Partly as documentation, include a step to fetch up-to-date
config.guess and config.sub as part of release building.

SVN-Revision: 3657

14 years agoImplement crypto support with the Nettle crypto library.
Andres Mejia [Sat, 27 Aug 2011 22:17:38 +0000 (18:17 -0400)] 
Implement crypto support with the Nettle crypto library.

SVN-Revision: 3656

14 years agoChange how crypto support is implemented within libarchive.
Andres Mejia [Sat, 27 Aug 2011 22:17:18 +0000 (18:17 -0400)] 
Change how crypto support is implemented within libarchive.

SVN-Revision: 3655

14 years agoFix warnings in make distcheck.
Tim Kientzle [Sat, 27 Aug 2011 22:17:13 +0000 (18:17 -0400)] 
Fix warnings in make distcheck.

SVN-Revision: 3654

14 years agoFix some warnings in make distcheck.
Tim Kientzle [Sat, 27 Aug 2011 22:16:53 +0000 (18:16 -0400)] 
Fix some warnings in make distcheck.

SVN-Revision: 3653

14 years agodoc/update.sh gets run during distcheck in a write-protected directory.
Tim Kientzle [Sat, 27 Aug 2011 21:54:55 +0000 (17:54 -0400)] 
doc/update.sh gets run during distcheck in a write-protected directory.

SVN-Revision: 3652

14 years agoMerge r3649: fix build on mingwrt 3.20.
Tim Kientzle [Sat, 27 Aug 2011 19:35:34 +0000 (15:35 -0400)] 
Merge r3649:  fix build on mingwrt 3.20.

SVN-Revision: 3651

14 years agoMerge r3605: Rename the iso_gz test to iso_Z to match the
Tim Kientzle [Sat, 27 Aug 2011 19:33:47 +0000 (15:33 -0400)] 
Merge r3605: Rename the iso_gz test to iso_Z to match the
fact that we're using Compress here instead of gzip.

SVN-Revision: 3650

14 years agoFix build with mingwrt 3.20.
Tim Kientzle [Sat, 27 Aug 2011 19:07:35 +0000 (15:07 -0400)] 
Fix build with mingwrt 3.20.

SVN-Revision: 3649

14 years agoAdditional fix to issue 168; merge r3647 from trunk.
Michihiro NAKAJIMA [Sat, 27 Aug 2011 16:48:54 +0000 (12:48 -0400)] 
Additional fix to issue 168; merge r3647 from trunk.

SVN-Revision: 3648

14 years agoAdditional fix to issue 168 because the change of r3642 was not sufficient.
Michihiro NAKAJIMA [Sat, 27 Aug 2011 16:31:33 +0000 (12:31 -0400)] 
Additional fix to issue 168 because the change of r3642 was not sufficient.
  - Make sure "CL" entry appear after its "RE" entry which the "CL" entry
    should be connected with.
  - Give consideration to the case that the top level "RE" entry has already
    been exposed outside before its tree.

SVN-Revision: 3647

14 years agoAdditional changes to r3645 for distribution.
Michihiro NAKAJIMA [Tue, 23 Aug 2011 09:14:50 +0000 (05:14 -0400)] 
Additional changes to r3645 for distribution.

SVN-Revision: 3646

14 years agoFix issue 168. Merge r3642 from trunk.
Michihiro NAKAJIMA [Tue, 23 Aug 2011 09:07:59 +0000 (05:07 -0400)] 
Fix issue 168. Merge r3642 from trunk.

SVN-Revision: 3645

14 years agoFix handling of ~ within the target of a 'tar -s' directive.
Colin Percival [Sat, 20 Aug 2011 07:19:41 +0000 (03:19 -0400)] 
Fix handling of ~ within the target of a 'tar -s' directive.

According to the man page, "~ is substituted with the match", but prior to
this commit it was substituted with the entire source string up to the end
of the matching region.

-s /o/_~/, prior to this commit: foo -> f_foo
-s /o/_~/, after this commit: foo -> f_oo

Reported by: Carlo Teubner

SVN-Revision: 3643

14 years agoFix issue 168.
Michihiro NAKAJIMA [Fri, 19 Aug 2011 06:32:35 +0000 (02:32 -0400)] 
Fix issue 168.
Change the mechanism handling a rr_moved directory,
which is Rockridge extension that can exceed the limitation of
a maximum directory depth of ISO 9660.
  - Stop reading all entries at a time.
  - Connect "CL" entry to "RE" entry dynamically, which "CL" and "RE"
    have information to rebuild a full directory tree.
  - Tweak some related tests since we use Headsort for re-ordering
    entries and it cannot make a steady order when the keies of
    the entries are the same.

SVN-Revision: 3642

14 years agoFix build on VS2005.
Tim Kientzle [Fri, 19 Aug 2011 05:50:47 +0000 (01:50 -0400)] 
Fix build on VS2005.

SVN-Revision: 3641

14 years agoExplicit no argument function definitions. Some compiler complains about it.
Michihiro NAKAJIMA [Fri, 19 Aug 2011 03:32:01 +0000 (23:32 -0400)] 
Explicit no argument function definitions. Some compiler complains about it.

SVN-Revision: 3640

14 years agoCorrect a total number of file entries in test_read_format_iso_2.iso.Z.uu
Michihiro NAKAJIMA [Thu, 18 Aug 2011 15:39:55 +0000 (11:39 -0400)] 
Correct a total number of file entries in test_read_format_iso_2.iso.Z.uu

SVN-Revision: 3639

14 years agoFixup errors, distinguising between errors caused by bad RAR files, and unsupported...
Andres Mejia [Thu, 18 Aug 2011 00:44:05 +0000 (20:44 -0400)] 
Fixup errors, distinguising between errors caused by bad RAR files, and unsupported operations.

SVN-Revision: 3638

14 years agoFix memory access errors reading corrupted RAR file using LZSS compression.
Andres Mejia [Wed, 17 Aug 2011 23:44:54 +0000 (19:44 -0400)] 
Fix memory access errors reading corrupted RAR file using LZSS compression.

SVN-Revision: 3637

14 years agoTry to workaround the fact that zconf.h defines Byte also.
Tim Kientzle [Wed, 17 Aug 2011 06:11:16 +0000 (02:11 -0400)] 
Try to workaround the fact that zconf.h defines Byte also.

SVN-Revision: 3636

14 years agoFix screw-up with r3624. Thanks to Michihiro for pointing it out.
Tim Kientzle [Wed, 17 Aug 2011 06:06:45 +0000 (02:06 -0400)] 
Fix screw-up with r3624.  Thanks to Michihiro for pointing it out.

SVN-Revision: 3635

14 years agoMake sure to go back to previous directory after test run.
Andres Mejia [Wed, 17 Aug 2011 01:39:07 +0000 (21:39 -0400)] 
Make sure to go back to previous directory after test run.

SVN-Revision: 3633

14 years agoAdd test cases for improper use of -C.
Andres Mejia [Tue, 16 Aug 2011 23:38:02 +0000 (19:38 -0400)] 
Add test cases for improper use of -C.

SVN-Revision: 3632

14 years agoFix build failure with implicit declaration of bsdtar_warnc.
Andres Mejia [Tue, 16 Aug 2011 23:37:54 +0000 (19:37 -0400)] 
Fix build failure with implicit declaration of bsdtar_warnc.
grep did not reveal where bsdtar_warnc was defined, changed to using lafe_warnc.

SVN-Revision: 3631

14 years agoQuash compiler warnings by explicitly casting to unsigned on both sides
Colin Percival [Tue, 16 Aug 2011 19:10:25 +0000 (15:10 -0400)] 
Quash compiler warnings by explicitly casting to unsigned on both sides
of ? : expressions.

Pointy hat to: cperciva

SVN-Revision: 3630

14 years agoCanonicalize spelling of "less than or equal to": "<=", not "=<".
Colin Percival [Tue, 16 Aug 2011 18:07:34 +0000 (14:07 -0400)] 
Canonicalize spelling of "less than or equal to": "<=", not "=<".

Via: Tarsnap

SVN-Revision: 3629

14 years agoRemove unnecessary call to strlen; we already know how long this string is.
Colin Percival [Tue, 16 Aug 2011 18:04:19 +0000 (14:04 -0400)] 
Remove unnecessary call to strlen; we already know how long this string is.

Via: Tarsnap

SVN-Revision: 3628

14 years agoFix file flag setting on linux in the event that EXT2_IOC_GETFLAGS fails
Colin Percival [Tue, 16 Aug 2011 18:00:20 +0000 (14:00 -0400)] 
Fix file flag setting on linux in the event that EXT2_IOC_GETFLAGS fails
the first time we call it and then succeeds a few lines later; prior to
this commit this peculiar scenario would result in 'newflags' being used
uninitialized.

While I'm here, fix spelling ("implicity" -> "implicitly", "occured" ->
"occurred", "SECURE_SYMLINK" -> "SECURE_SYMLINKS"), grammar ("is a
unusable"), and writespace.

Via: Tarsnap

SVN-Revision: 3627

14 years agoRelax the bidder to accept images created by buggy FreeBSD/NetBSD
Tim Kientzle [Tue, 16 Aug 2011 06:01:47 +0000 (02:01 -0400)] 
Relax the bidder to accept images created by buggy FreeBSD/NetBSD
"makefs" program.

SVN-Revision: 3625

14 years agoThe old "compression" terminology will be retired in libarchive 4.0.
Tim Kientzle [Tue, 16 Aug 2011 05:50:12 +0000 (01:50 -0400)] 
The old "compression" terminology will be retired in libarchive 4.0.
Make this automatic and document it correctly.

SVN-Revision: 3624

14 years agoSquawk if we read '-C' '' from consecutive lines.
Colin Percival [Tue, 16 Aug 2011 05:32:31 +0000 (01:32 -0400)] 
Squawk if we read '-C' '' from consecutive lines.

Via: Tarsnap

SVN-Revision: 3623

14 years agomemcpy(new_str, NULL, 0) is _technically_ undefined behaviour under C99;
Colin Percival [Tue, 16 Aug 2011 05:26:58 +0000 (01:26 -0400)] 
memcpy(new_str, NULL, 0) is _technically_ undefined behaviour under C99;
it's hard to imagine this actually being compiled "wrong", but avoid it
anyway.

Via: Tarsnap

SVN-Revision: 3622

14 years ago-C '' is meaningless; complain and die if we are given it.
Colin Percival [Tue, 16 Aug 2011 05:23:49 +0000 (01:23 -0400)] 
-C '' is meaningless; complain and die if we are given it.

Via: Tarsnap

SVN-Revision: 3621

14 years agoSpelling: similiar -> similar.
Colin Percival [Tue, 16 Aug 2011 05:21:00 +0000 (01:21 -0400)] 
Spelling: similiar -> similar.
Grammar: continue ... and stopped -> continue ... and stop.

Via: Tarsnap

SVN-Revision: 3620

14 years agoReference the correct file name.
Colin Percival [Tue, 16 Aug 2011 05:18:26 +0000 (01:18 -0400)] 
Reference the correct file name.

Via: Tarsnap

SVN-Revision: 3619

14 years agoFix whitespace.
Colin Percival [Tue, 16 Aug 2011 05:12:12 +0000 (01:12 -0400)] 
Fix whitespace.

Via: Tarsnap

SVN-Revision: 3618

14 years agoDelete unused "cur_offset" field.
Colin Percival [Tue, 16 Aug 2011 05:08:37 +0000 (01:08 -0400)] 
Delete unused "cur_offset" field.

Via: Tarsnap

SVN-Revision: 3617

14 years agoUpdate comment: pformat_data went away years ago.
Colin Percival [Tue, 16 Aug 2011 04:43:23 +0000 (00:43 -0400)] 
Update comment: pformat_data went away years ago.

Via: Tarsnap

SVN-Revision: 3615

14 years agoTypos in comments: "a archive" -> "an archive", "formts" -> "formats",
Colin Percival [Tue, 16 Aug 2011 04:38:43 +0000 (00:38 -0400)] 
Typos in comments: "a archive" -> "an archive", "formts" -> "formats",
"noone" -> "no one", "we where" -> "we were", "ar_size filed" -> "ar_size
field", "furtunately" -> "fortunately", "explicity" -> "explicitly",
"noticably" -> "noticeably".

Delete whitespace before a comma.

archive_read_header is called archive_read_next_header.
archive_entry_link_resolver_free is called archive_entry_linkresolver_free.

Via: Tarsnap

SVN-Revision: 3614

14 years agoError out of copy_data if get_extract fails.
Colin Percival [Tue, 16 Aug 2011 04:34:41 +0000 (00:34 -0400)] 
Error out of copy_data if get_extract fails.

While I'm here, fix some whitespace.

Via: Tarsnap

SVN-Revision: 3613

14 years agoDon't leak memory if realloc fails.
Colin Percival [Tue, 16 Aug 2011 04:30:48 +0000 (00:30 -0400)] 
Don't leak memory if realloc fails.

Via: Tarsnap

SVN-Revision: 3612

14 years agoCorrect indentation.
Colin Percival [Tue, 16 Aug 2011 04:29:29 +0000 (00:29 -0400)] 
Correct indentation.

Via: Tarsnap

SVN-Revision: 3611

14 years agoAdd missing \n to debug printf.
Colin Percival [Tue, 16 Aug 2011 04:28:47 +0000 (00:28 -0400)] 
Add missing \n to debug printf.

Via: Tarsnap

SVN-Revision: 3610

14 years agoPassing -C '' to tar is meaningless; complain about it.
Colin Percival [Tue, 16 Aug 2011 04:27:03 +0000 (00:27 -0400)] 
Passing -C '' to tar is meaningless; complain about it.

Via: Tarsnap

SVN-Revision: 3609

14 years agoFix grammar: it's -> its.
Colin Percival [Tue, 16 Aug 2011 04:25:32 +0000 (00:25 -0400)] 
Fix grammar: it's -> its.

Via: Tarsnap

SVN-Revision: 3608

14 years agoFix typo: arc -> argc.
Colin Percival [Tue, 16 Aug 2011 04:24:52 +0000 (00:24 -0400)] 
Fix typo: arc -> argc.

Via: Tarsnap

SVN-Revision: 3607

14 years agoFix build failure on Visual Studio.
Andres Mejia [Mon, 15 Aug 2011 23:41:33 +0000 (19:41 -0400)] 
Fix build failure on Visual Studio.

SVN-Revision: 3606

15 years agoAdd a test to check whether ISO images that interleave files and
Tim Kientzle [Mon, 15 Aug 2011 04:29:25 +0000 (00:29 -0400)] 
Add a test to check whether ISO images that interleave files and
directories can be properly read.
Currently, the ISO reader fails this test.

SVN-Revision: 3605

15 years agoImprove crc32 in archive_crc32.h for its performance.
Michihiro NAKAJIMA [Mon, 15 Aug 2011 02:03:10 +0000 (22:03 -0400)] 
Improve crc32 in archive_crc32.h for its performance.
A use of expansion code can make crc32 fast about 20% -30%
in any gcc optimization option(-O0,-O1,-O2 and -O3).

SVN-Revision: 3604

15 years agoMinor improvement. Adopt the part of the changes in r3602 to increase
Michihiro NAKAJIMA [Mon, 15 Aug 2011 01:47:49 +0000 (21:47 -0400)] 
Minor improvement. Adopt the part of the changes in r3602 to increase
extraction speed.

SVN-Revision: 3603

15 years agoRework the handling of a copy of decode data in the lha reader.
Michihiro NAKAJIMA [Mon, 15 Aug 2011 01:40:37 +0000 (21:40 -0400)] 
Rework the handling of a copy of decode data in the lha reader.
This change improves extraction performance; this version is
10% faster than previous version.

SVN-Revision: 3602

15 years agoFixup bsdcpio_test so it can be called using relative paths to bsdcpio_test.
Andres Mejia [Sun, 14 Aug 2011 18:05:06 +0000 (14:05 -0400)] 
Fixup bsdcpio_test so it can be called using relative paths to bsdcpio_test.
Now calling ./bsdcpio_test will run all tests, similar to ./libarchive_test.

SVN-Revision: 3601

15 years agoFixup bsdtar_test so it can be called using relative paths to bsdtar_test.
Andres Mejia [Sun, 14 Aug 2011 17:53:21 +0000 (13:53 -0400)] 
Fixup bsdtar_test so it can be called using relative paths to bsdtar_test.
Now calling ./bsdtar_test will run all tests, similar to ./libarchive_test.

SVN-Revision: 3600

15 years agoUpdate pkgconfig file to return path to installed libarchive libs and headers.
Andres Mejia [Sat, 13 Aug 2011 18:52:38 +0000 (14:52 -0400)] 
Update pkgconfig file to return path to installed libarchive libs and headers.
Thanks to Jonathan Creekmore for this patch.

SVN-Revision: 3599

15 years agoFix passing a wrong variable to archive_string_conversion_charset_name.
Michihiro NAKAJIMA [Thu, 11 Aug 2011 09:49:00 +0000 (05:49 -0400)] 
Fix passing a wrong variable to archive_string_conversion_charset_name.

SVN-Revision: 3597

15 years agoMove the parser state into the bsdtar structure.
Tim Kientzle [Thu, 11 Aug 2011 05:54:09 +0000 (01:54 -0400)] 
Move the parser state into the bsdtar structure.

SVN-Revision: 3591

15 years agoBe a little more verbose about fundamental sanity failures.
Tim Kientzle [Thu, 11 Aug 2011 05:53:07 +0000 (01:53 -0400)] 
Be a little more verbose about fundamental sanity failures.

SVN-Revision: 3590

15 years agoIf FHD_UNICODE is set but no unicode data, that file name form is UTF-8.
Michihiro NAKAJIMA [Thu, 11 Aug 2011 05:05:38 +0000 (01:05 -0400)] 
If FHD_UNICODE is set but no unicode data, that file name form is UTF-8.

SVN-Revision: 3589

15 years agoThe size of a symlink file should be zero since it does not have its file data.
Michihiro NAKAJIMA [Thu, 11 Aug 2011 04:37:27 +0000 (00:37 -0400)] 
The size of a symlink file should be zero since it does not have its file data.
Fix related problems that the RAR reader returned ARCHIVE_FAILED
with an error message, "CRC error", when archive_read_data was called
on reading a symlink file.

SVN-Revision: 3588

15 years agoImprove the handling of a string conversion object in the RAR reader
Michihiro NAKAJIMA [Thu, 11 Aug 2011 03:00:32 +0000 (23:00 -0400)] 
Improve the handling of a string conversion object in the RAR reader
so as to correctly read symbolic-link filenames in multi-byte characters.

SVN-Revision: 3587

15 years agoModify r3575. Do not include zlib.h secretly in archive_crc32.h.
Michihiro NAKAJIMA [Wed, 10 Aug 2011 11:48:31 +0000 (07:48 -0400)] 
Modify r3575. Do not include zlib.h secretly in archive_crc32.h.

SVN-Revision: 3586

15 years agoFix a memory leak in the rar reader.
Michihiro NAKAJIMA [Wed, 10 Aug 2011 07:26:36 +0000 (03:26 -0400)] 
Fix a memory leak in the rar reader.
- Free mmpd7_contest before Ppmd7_Construct is called.
- Clean up the code calling Ppmd7_Free function to be surely called in any cases.

SVN-Revision: 3585