]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agoMatch unknown filesize property for zip archives in the assertions.
Joerg Sonnenberger [Tue, 26 May 2009 18:57:06 +0000 (14:57 -0400)] 
Match unknown filesize property for zip archives in the assertions.
Test the deflate case if zlib.h is present, otherwise use store.

SVN-Revision: 1131

16 years agoInclude real crc32 if zlib.h is missing.
Joerg Sonnenberger [Tue, 26 May 2009 18:54:07 +0000 (14:54 -0400)] 
Include real crc32 if zlib.h is missing.

SVN-Revision: 1130

16 years agoExplicitly request store mode.
Joerg Sonnenberger [Tue, 26 May 2009 17:21:51 +0000 (13:21 -0400)] 
Explicitly request store mode.

SVN-Revision: 1129

16 years agoFix test case to compute CRC32 correctly.
Joerg Sonnenberger [Tue, 26 May 2009 16:36:55 +0000 (12:36 -0400)] 
Fix test case to compute CRC32 correctly.

SVN-Revision: 1128

16 years agoCorrectly write compressed size to the central catalog.
Joerg Sonnenberger [Tue, 26 May 2009 16:27:38 +0000 (12:27 -0400)] 
Correctly write compressed size to the central catalog.

SVN-Revision: 1127

16 years agoKill redundant void * casts.
Joerg Sonnenberger [Tue, 26 May 2009 15:56:53 +0000 (11:56 -0400)] 
Kill redundant void * casts.

SVN-Revision: 1126

16 years agoNow that zip format can create something usable, allow selecting it via
Joerg Sonnenberger [Tue, 26 May 2009 15:46:33 +0000 (11:46 -0400)] 
Now that zip format can create something usable, allow selecting it via
--format.

SVN-Revision: 1125

16 years agoFix store support and make it the default for now.
Joerg Sonnenberger [Tue, 26 May 2009 15:45:51 +0000 (11:45 -0400)] 
Fix store support and make it the default for now.

SVN-Revision: 1124

16 years agoDeflate is method 8.
Joerg Sonnenberger [Tue, 26 May 2009 15:23:40 +0000 (11:23 -0400)] 
Deflate is method 8.

SVN-Revision: 1123

16 years agoActually rename the bytecrc32 function...
Joerg Sonnenberger [Tue, 26 May 2009 15:07:11 +0000 (11:07 -0400)] 
Actually rename the bytecrc32 function...

SVN-Revision: 1122

16 years agoRename bytecrc32 to crc32 and use it only if zlib is not present.
Joerg Sonnenberger [Tue, 26 May 2009 15:06:13 +0000 (11:06 -0400)] 
Rename bytecrc32 to crc32 and use it only if zlib is not present.

SVN-Revision: 1121

16 years agoFix indentation.
Joerg Sonnenberger [Tue, 26 May 2009 15:02:12 +0000 (11:02 -0400)] 
Fix indentation.

SVN-Revision: 1120

16 years agoExpand mtree:indent text.
Joerg Sonnenberger [Tue, 26 May 2009 14:19:13 +0000 (10:19 -0400)] 
Expand mtree:indent text.

SVN-Revision: 1119

16 years agoRefactor common frontend code into a separate library.
Joerg Sonnenberger [Tue, 26 May 2009 12:47:02 +0000 (08:47 -0400)] 
Refactor common frontend code into a separate library.

SVN-Revision: 1118

16 years agoHandle patterns with full path the same way as tar does:
Joerg Sonnenberger [Tue, 26 May 2009 12:39:52 +0000 (08:39 -0400)] 
Handle patterns with full path the same way as tar does:
Only match against full pathes in archive.

SVN-Revision: 1117

16 years agoPush skipping leading slashes in patterns into pathmatch.
Joerg Sonnenberger [Tue, 26 May 2009 12:32:48 +0000 (08:32 -0400)] 
Push skipping leading slashes in patterns into pathmatch.
Skip all leading slashes when doing so.

SVN-Revision: 1116

16 years agoFix count.
Joerg Sonnenberger [Tue, 26 May 2009 10:47:30 +0000 (06:47 -0400)] 
Fix count.

SVN-Revision: 1115

16 years agoFix test case for positive time zones.
Joerg Sonnenberger [Tue, 26 May 2009 09:24:51 +0000 (05:24 -0400)] 
Fix test case for positive time zones.

SVN-Revision: 1114

16 years agoAdd comment about what various Operating Systems are known to have and
Joerg Sonnenberger [Tue, 26 May 2009 08:37:35 +0000 (04:37 -0400)] 
Add comment about what various Operating Systems are known to have and
what is supported.

SVN-Revision: 1113

16 years agoUpdate some of the top-level guide files:
Tim Kientzle [Mon, 25 May 2009 17:08:00 +0000 (13:08 -0400)] 
Update some of the top-level guide files:
  * Remove PROJECTS in favor of the WishList in the Wiki
  * Clarify INSTALL
  * getdate.y no longer exists
  * Minor README corrections and edits

SVN-Revision: 1112

16 years agoVerify cmake builds as part of "make distcheck"
Tim Kientzle [Mon, 25 May 2009 16:46:49 +0000 (12:46 -0400)] 
Verify cmake builds as part of "make distcheck"

SVN-Revision: 1111

16 years agoCatch up with new file
Tim Kientzle [Mon, 25 May 2009 16:09:49 +0000 (12:09 -0400)] 
Catch up with new file

SVN-Revision: 1110

16 years agoCatch up with new and renamed files.
Tim Kientzle [Mon, 25 May 2009 16:09:25 +0000 (12:09 -0400)] 
Catch up with new and renamed files.

SVN-Revision: 1109

16 years agoInclude new file.
Tim Kientzle [Mon, 25 May 2009 16:08:32 +0000 (12:08 -0400)] 
Include new file.

SVN-Revision: 1108

16 years agoMerge r1093 from trunk: Correctly account for
Tim Kientzle [Mon, 25 May 2009 05:02:50 +0000 (01:02 -0400)] 
Merge r1093 from trunk: Correctly account for
"extra data" field when reading gzip headers.
In particular, this fixes reading gzip files that
have been signed with the OpenBSD "gzsig" program.

SVN-Revision: 1104

16 years agoBe more careful about text/binary mode.
Tim Kientzle [Sun, 24 May 2009 23:35:53 +0000 (19:35 -0400)] 
Be more careful about text/binary mode.

Libarchive is already pretty careful about using O_BINARY
whenever it opens a file handle internally; this extends
that care to file descriptors that are passed in from clients
by invoking _setmode() explicitly.

The test harness was much less careful about O_BINARY;
this adds those flags to all open() calls and modifies
fopen() calls to use "wb" and "rb" explicitly.

In particular, this should remove the need for clients
to use invoke _set_fmode() at all.

This is not yet completely tested...

SVN-Revision: 1103

16 years agoRemove extraneous line break.
Tim Kientzle [Sun, 24 May 2009 23:04:23 +0000 (19:04 -0400)] 
Remove extraneous line break.

SVN-Revision: 1102

16 years agoInclude O_BINARY when opening the file here, for consistency.
Tim Kientzle [Sun, 24 May 2009 23:03:06 +0000 (19:03 -0400)] 
Include O_BINARY when opening the file here, for consistency.

SVN-Revision: 1101

16 years agoRemove redundant copies of COPYING and README as discussed with Tim.
Joerg Sonnenberger [Sun, 24 May 2009 03:25:35 +0000 (23:25 -0400)] 
Remove redundant copies of COPYING and README as discussed with Tim.

SVN-Revision: 1100

16 years agoAdjust for 2009.
Joerg Sonnenberger [Sun, 24 May 2009 03:25:16 +0000 (23:25 -0400)] 
Adjust for 2009.

SVN-Revision: 1099

16 years agoMove hashing function calling into a separate file. Provide the glue
Joerg Sonnenberger [Sun, 24 May 2009 03:24:07 +0000 (23:24 -0400)] 
Move hashing function calling into a separate file. Provide the glue
for OpenSSL and libc functions in NetBSD and OpenBSD as well as
simplified configure logic. OpenSSL is now only pulled in if the
platform does not provide all needed hash functions.

SVN-Revision: 1098

16 years agoInline ToSeconds() in the only place it's used.
Tim Kientzle [Sun, 24 May 2009 01:11:37 +0000 (21:11 -0400)] 
Inline ToSeconds() in the only place it's used.

SVN-Revision: 1097

16 years agoBreak a long line.
Tim Kientzle [Sun, 24 May 2009 01:06:48 +0000 (21:06 -0400)] 
Break a long line.

SVN-Revision: 1096

16 years agoCorrect the declaration of a static volatile.
Tim Kientzle [Sat, 23 May 2009 17:29:40 +0000 (13:29 -0400)] 
Correct the declaration of a static volatile.

SVN-Revision: 1095

16 years agoRename a scratch variable. This is used to workaround
Tim Kientzle [Sat, 23 May 2009 17:29:00 +0000 (13:29 -0400)] 
Rename a scratch variable.  This is used to workaround
a bug with some versions of GCC that don't support
cast-to-void for explicitly ignoring return values.

SVN-Revision: 1094

16 years agoCorrectly skip the "extra data" field in the gzip header.
Tim Kientzle [Sat, 23 May 2009 04:28:06 +0000 (00:28 -0400)] 
Correctly skip the "extra data" field in the gzip header.
In particular, this fixes reading the OpenSSH tarballs.

SVN-Revision: 1093

16 years agoIssue 23: A minor correction to the new dosmaperr()
Tim Kientzle [Fri, 15 May 2009 04:54:38 +0000 (00:54 -0400)] 
Issue 23:  A minor correction to the new dosmaperr()
function.  libarchive library now builds on MinGW;
still work to do on the test harness...

SVN-Revision: 1085

16 years agoAdd custom _dosmaperr() implementation (copied from
Tim Kientzle [Fri, 15 May 2009 04:49:23 +0000 (00:49 -0400)] 
Add custom _dosmaperr() implementation (copied from
PostgreSQL) and use it instead of the undocumented
Windows CRT function (which isn't available in all versions
of Windows CRT).  Rename it to la_dosmaperr() to avoid
any name conflicts with the "standard" one.

SVN-Revision: 1084

16 years agoIssue 23: Fix a number of minor compatibility problems with MinGW.
Tim Kientzle [Fri, 15 May 2009 00:11:13 +0000 (20:11 -0400)] 
Issue 23: Fix a number of minor compatibility problems with MinGW.

SVN-Revision: 1083

16 years agoAvoid problems because of varying ino_t sizes on different platforms. In particular...
Tim Kientzle [Thu, 14 May 2009 23:55:24 +0000 (19:55 -0400)] 
Avoid problems because of varying ino_t sizes on different platforms.  In particular, Windows uses a 16-bit (?!) ino_t, so we can't just cast the constant here to ino_t.  The next API changes should avoid ino_t entirely to prevent problems reading cpio archives on platforms where the native ino_t type isn't big enough.

SVN-Revision: 1082

16 years agoRefactor logic for crossing mount points. This provides a hook for
Tim Kientzle [Sun, 10 May 2009 20:07:39 +0000 (16:07 -0400)] 
Refactor logic for crossing mount points.  This provides a hook for
special handling of synthetic and non-local filesystems.

SVN-Revision: 1081

16 years agoMake uncompressed zip test independent of zlib.
Tim Kientzle [Sun, 10 May 2009 19:46:22 +0000 (15:46 -0400)] 
Make uncompressed zip test independent of zlib.

SVN-Revision: 1080

16 years agoCustom crc32() implementation so we can still write
Tim Kientzle [Sun, 10 May 2009 19:44:34 +0000 (15:44 -0400)] 
Custom crc32() implementation so we can still write
(uncompressed) Zip archives even without zlib.

SVN-Revision: 1079

16 years agoHandle short writes correctly.
Tim Kientzle [Sun, 10 May 2009 19:43:44 +0000 (15:43 -0400)] 
Handle short writes correctly.

SVN-Revision: 1078

16 years agoMark library variables as "standard" so they show up in the default cmake gui configu...
Tim Kientzle [Sat, 9 May 2009 07:22:54 +0000 (03:22 -0400)] 
Mark library variables as "standard" so they show up in the default cmake gui configuration view.

SVN-Revision: 1077

16 years agoDon't mix statements and declarations in portable C.
Tim Kientzle [Sat, 9 May 2009 07:20:54 +0000 (03:20 -0400)] 
Don't mix statements and declarations in portable C.

SVN-Revision: 1076

16 years agoBuilding on Ubuntu 9 provoked some complaints about return values
Tim Kientzle [Sat, 9 May 2009 01:15:17 +0000 (21:15 -0400)] 
Building on Ubuntu 9 provoked some complaints about return values
not being used.  Some of these are good catches, a few are
annoying.  Unfortunately, GCC on this system won't just
allow you to cast the result explicitly to (void) to
shut up the error, so I've had to introduce some gratuitous
extra variables.  <sigh>

SVN-Revision: 1075

16 years agoFix build on platforms without zlib.h. I need to dig out my old
Tim Kientzle [Fri, 8 May 2009 17:32:08 +0000 (13:32 -0400)] 
Fix build on platforms without zlib.h.  I need to dig out my old
CRC code and drop it in here to correctly break this dependency,
but these tests are so badly broken right now anyway...

SVN-Revision: 1074

16 years agoMake archive_write_set_format_zip build if zlib is missing.
Tim Kientzle [Fri, 8 May 2009 17:17:55 +0000 (13:17 -0400)] 
Make archive_write_set_format_zip build if zlib is missing.

SVN-Revision: 1073

16 years agoSeparate the xattr management for archive_entry into a separate
Tim Kientzle [Fri, 8 May 2009 16:57:01 +0000 (12:57 -0400)] 
Separate the xattr management for archive_entry into a separate
source file.  The only linkage between the xattr routines and
the rest of archive_entry is through public API functions, so
this doesn't expose any internal interfaces and will make it
easier to extend and modify the xattr management in the future.
(In particular, we'll need to add support for looking up specific
xattrs by name in the very near future.)

SVN-Revision: 1072

16 years agoFix the CMake build on systems that lack a C++ compiler.
Tim Kientzle [Fri, 8 May 2009 16:50:46 +0000 (12:50 -0400)] 
Fix the CMake build on systems that lack a C++ compiler.
libarchive doesn't need C++, so we should be able to build
on systems that don't have a C++ compiler.

SVN-Revision: 1071

16 years agoTrack an old file rename.
Tim Kientzle [Fri, 8 May 2009 16:49:34 +0000 (12:49 -0400)] 
Track an old file rename.

SVN-Revision: 1070

16 years agoMerge r1068 from trunk: This partially reverts r868, which
Tim Kientzle [Thu, 7 May 2009 22:55:24 +0000 (18:55 -0400)] 
Merge r1068 from trunk:  This partially reverts r868, which
broke tar handling of end-of-file when reading from a pipe.
With this change, tar once again flushes input from a pipe
which avoids SIGPIPE getting sent upstream.

SVN-Revision: 1069

16 years agoThe refactoring of r868 changed read_open_filename() to
Tim Kientzle [Thu, 7 May 2009 22:53:09 +0000 (18:53 -0400)] 
The refactoring of r868 changed read_open_filename() to
just use read_open_fd() for the degenerate stdin case.
Unfortunately, there's a critical difference between these
two:  read_open_fd() does no special processing on close;
read_open_filename() flushes input pipes on close.  As
a result, pipelines such as "gunzip|tar" would cause gunzip
to fail with SIGPIPE.  Especially with /bin/csh (which reports
the success of the first program in a pipeline, not the last
as /bin/sh and bash do), this caused some ugly problems.

Thanks to Alexey Shuvaev for reporting this failure and
patiently helping me to track down the cause.

SVN-Revision: 1068

16 years agoSync up with Makefile in FreeBSD-CURRENT tree.
Tim Kientzle [Mon, 27 Apr 2009 22:37:35 +0000 (18:37 -0400)] 
Sync up with Makefile in FreeBSD-CURRENT tree.

SVN-Revision: 1067

16 years agoRename test_acl_solaris to test_compat_solaris_tar_acl.
Tim Kientzle [Mon, 27 Apr 2009 18:29:15 +0000 (14:29 -0400)] 
Rename test_acl_solaris to test_compat_solaris_tar_acl.
(The former makes it sound like we're testing system-specific
ACL support for Solaris, which isn't implemented yet.)

SVN-Revision: 1066

16 years agoUpdate some comments.
Tim Kientzle [Mon, 27 Apr 2009 18:20:08 +0000 (14:20 -0400)] 
Update some comments.

SVN-Revision: 1065

16 years agoMinor refactoring: Have __archive_read_skip() use
Tim Kientzle [Mon, 27 Apr 2009 17:34:15 +0000 (13:34 -0400)] 
Minor refactoring: Have __archive_read_skip() use
__archive_read_skip_lenient() directly.

SVN-Revision: 1064

16 years agoMake a note here about Solaris ACL handling. It would be
Tim Kientzle [Mon, 27 Apr 2009 06:16:02 +0000 (02:16 -0400)] 
Make a note here about Solaris ACL handling.  It would be
nice to fill this in someday.

SVN-Revision: 1063

16 years agoTest cpio bin_be format.
Tim Kientzle [Mon, 27 Apr 2009 06:08:48 +0000 (02:08 -0400)] 
Test cpio bin_be format.

SVN-Revision: 1062

16 years agoFix big-endian binary cpio archives.
Tim Kientzle [Mon, 27 Apr 2009 05:51:19 +0000 (01:51 -0400)] 
Fix big-endian binary cpio archives.

SVN-Revision: 1061

16 years agoassertEqualMem() should have always accepted void * arguments.
Tim Kientzle [Mon, 27 Apr 2009 05:27:53 +0000 (01:27 -0400)] 
assertEqualMem() should have always accepted void * arguments.

SVN-Revision: 1060

16 years agoFill in the correct signature checks for lzma and xz output.
Tim Kientzle [Mon, 27 Apr 2009 05:27:13 +0000 (01:27 -0400)] 
Fill in the correct signature checks for lzma and xz output.

SVN-Revision: 1059

16 years agoMake sure that each test source file has exactly one DEFINE_TEST().
Tim Kientzle [Mon, 27 Apr 2009 05:14:04 +0000 (01:14 -0400)] 
Make sure that each test source file has exactly one DEFINE_TEST().
In particular, the cmake test setup assumes this.

SVN-Revision: 1058

16 years agoRemvoe more debugging cruft.
Tim Kientzle [Mon, 27 Apr 2009 04:50:47 +0000 (00:50 -0400)] 
Remvoe more debugging cruft.

SVN-Revision: 1057

16 years agoOuch. Take out some debug statements I accidentally left in.
Tim Kientzle [Mon, 27 Apr 2009 04:50:04 +0000 (00:50 -0400)] 
Ouch.  Take out some debug statements I accidentally left in.

SVN-Revision: 1056

16 years agoCorrect an earlier typo. <sigh>
Tim Kientzle [Mon, 27 Apr 2009 03:44:12 +0000 (23:44 -0400)] 
Correct an earlier typo.  <sigh>

SVN-Revision: 1055

16 years agoWhen reporting differences between blocks of memory, try
Tim Kientzle [Mon, 27 Apr 2009 03:43:26 +0000 (23:43 -0400)] 
When reporting differences between blocks of memory, try
to pick something relevant.

SVN-Revision: 1054

16 years agoFix up some issues with POSIX.1e ACLs:
Tim Kientzle [Mon, 27 Apr 2009 03:42:25 +0000 (23:42 -0400)] 
Fix up some issues with POSIX.1e ACLs:
 * Edward Napierala sent me an archive from Solaris 10 with Solaris-style
   ACLs that libarchive misparsed.  Fix the parser.
 * Add a test for reading Solaris-format ACLs
 * Preserve the order of ACL entries; this is purely cosmetic for now.
 * Fix the test_acl_pax test to match the order of the new ACL entries.
 * Correctly distinguish Solaris-style POSIX.1e ACLs from Solaris NFSv4 ACLs.
   Even if we can't parse the latter, we can at least recognize them and
   issue a suitable warning.

TODO:  Identify AIX-style ACLs (which should currently be recognized as
malformed Solaris-style ACLs).  I doubt libarchive will ever support AIX-style
ACLs, but it can at least recognize and warn about them.

SVN-Revision: 1053

16 years agoClear out the error message buffer on entry to a few more functions.
Tim Kientzle [Sun, 26 Apr 2009 18:26:27 +0000 (14:26 -0400)] 
Clear out the error message buffer on entry to a few more functions.

SVN-Revision: 1052

16 years agoEliminate an unused variable.
Tim Kientzle [Sun, 26 Apr 2009 18:22:13 +0000 (14:22 -0400)] 
Eliminate an unused variable.

SVN-Revision: 1051

16 years agoIssue 26: Fix failing cpio tests on systems where sgid bit propagates
Tim Kientzle [Tue, 21 Apr 2009 16:27:07 +0000 (12:27 -0400)] 
Issue 26: Fix failing cpio tests on systems where sgid bit propagates
to subdirectories.

SVN-Revision: 1050

16 years agoIssue 26: On systems where sgid bit propagates to subdirs, we
Tim Kientzle [Tue, 21 Apr 2009 16:26:03 +0000 (12:26 -0400)] 
Issue 26: On systems where sgid bit propagates to subdirs, we
can end up with spurious 02000 added to the modes of some directories.
Allow this.

SVN-Revision: 1049

16 years agoIssue 22: configure --without-openssl disables crypto hash support
Tim Kientzle [Mon, 20 Apr 2009 21:27:46 +0000 (17:27 -0400)] 
Issue 22: configure --without-openssl disables crypto hash support
and removes dependency on openssl and md libraries.

SVN-Revision: 1048

16 years agoIssue 22: --without-openssl skips probing for the hash functions.
Tim Kientzle [Mon, 20 Apr 2009 21:22:49 +0000 (17:22 -0400)] 
Issue 22:  --without-openssl skips probing for the hash functions.
Note: This currently also disables use of libmd on systems that have it.
That should probably be separated into a separate control.

SVN-Revision: 1047

16 years agoInclude test_read_format_raw
Tim Kientzle [Mon, 20 Apr 2009 21:21:10 +0000 (17:21 -0400)] 
Include test_read_format_raw

SVN-Revision: 1046

16 years agoMinor compile fix.
Tim Kientzle [Mon, 20 Apr 2009 21:20:39 +0000 (17:20 -0400)] 
Minor compile fix.

SVN-Revision: 1045

16 years agoMinor compile fix.
Tim Kientzle [Mon, 20 Apr 2009 21:20:06 +0000 (17:20 -0400)] 
Minor compile fix.

SVN-Revision: 1044

16 years agoMake the error dump for assertEqualMem() a bit more useful by
Tim Kientzle [Mon, 20 Apr 2009 21:01:51 +0000 (17:01 -0400)] 
Make the error dump for assertEqualMem() a bit more useful by
skipping a common initial portion and dumping a small block around
the first difference.

SVN-Revision: 1043

16 years agoIssue 21: The output of -tnv here depends on the timezone.
Tim Kientzle [Mon, 20 Apr 2009 18:20:44 +0000 (14:20 -0400)] 
Issue 21: The output of -tnv here depends on the timezone.
Since there are only two possible results, just compare it to
both and accept a match for either one.

SVN-Revision: 1037

16 years agoMerge r1033 from trunk to fix Issue 25.
Tim Kientzle [Mon, 20 Apr 2009 06:22:50 +0000 (02:22 -0400)] 
Merge r1033 from trunk to fix Issue 25.

SVN-Revision: 1036

16 years agoMake the file on the reference ISO be considerably larger.
Tim Kientzle [Mon, 20 Apr 2009 06:01:01 +0000 (02:01 -0400)] 
Make the file on the reference ISO be considerably larger.
BZip2 compression works really well for long blocks of zero bytes,
so this costs almost nothing.

SVN-Revision: 1034

16 years agoReading an mtree file, the body of the first regular file
Tim Kientzle [Mon, 20 Apr 2009 05:58:15 +0000 (01:58 -0400)] 
Reading an mtree file, the body of the first regular file
would not be read because of a misplaced return.

SVN-Revision: 1033

16 years agoMove UnsupportedCompress() macro into the only file that uses it.
Tim Kientzle [Sun, 19 Apr 2009 22:50:37 +0000 (18:50 -0400)] 
Move UnsupportedCompress() macro into the only file that uses it.
Make test_fuzz a bit more sensitive by actually reading the
body of each entry instead of just skipping it.

SVN-Revision: 1032

16 years agoMerge r1030 from trunk: Cast away a compiler warning.
Tim Kientzle [Sun, 19 Apr 2009 22:46:12 +0000 (18:46 -0400)] 
Merge r1030 from trunk: Cast away a compiler warning.

SVN-Revision: 1031

16 years agoarchive_entry_ino() returns ino_t which varies across platforms;
Tim Kientzle [Sun, 19 Apr 2009 22:45:18 +0000 (18:45 -0400)] 
archive_entry_ino() returns ino_t which varies across platforms;
casting the result to int makes this comparison more consistent.

SVN-Revision: 1030

16 years agoMerge r1028 from trunk: Exit with ARCHIVE_FATAL on a truncated
Tim Kientzle [Sun, 19 Apr 2009 21:36:38 +0000 (17:36 -0400)] 
Merge r1028 from trunk:  Exit with ARCHIVE_FATAL on a truncated
ISO archive.

SVN-Revision: 1029

16 years agoIf the archive is truncated, exit with ARCHIVE_FATAL.
Tim Kientzle [Sun, 19 Apr 2009 21:35:35 +0000 (17:35 -0400)] 
If the archive is truncated, exit with ARCHIVE_FATAL.

SVN-Revision: 1028

16 years agoFill in descriptions of the new GNU pax sparse handling,
Tim Kientzle [Sat, 18 Apr 2009 06:14:20 +0000 (02:14 -0400)] 
Fill in descriptions of the new GNU pax sparse handling,
briefly discuss Mac OS X resource fork extension,
explain SunOS 'A' record handling of NFSv4 ACLs,
describe terminator-pruning for extending file size
support, and a bit of minor wordsmithing.

SVN-Revision: 1027

16 years agoUpdate libarchive-formats: A little wordsmithing
Tim Kientzle [Sat, 18 Apr 2009 03:32:09 +0000 (23:32 -0400)] 
Update libarchive-formats:  A little wordsmithing
and some additional detail, especially about the mtree writer.

SVN-Revision: 1026

16 years agoAdd --lzma and -J options to cpio.
Tim Kientzle [Fri, 17 Apr 2009 07:10:26 +0000 (03:10 -0400)] 
Add --lzma and -J options to cpio.
Add tests for these.
Edit the existing compression tests so they correctly
distinguish unsupported options (e.g., we're testing GNU cpio)
from unsupported compression.

SVN-Revision: 1025

16 years agoEliminate a bunch of preprocessor symbols that aren't actually
Tim Kientzle [Fri, 17 Apr 2009 06:37:41 +0000 (02:37 -0400)] 
Eliminate a bunch of preprocessor symbols that aren't actually
used anywhere in cpio.

SVN-Revision: 1024

16 years agoWe don't need to conditionalize the compression options in
Tim Kientzle [Fri, 17 Apr 2009 06:36:46 +0000 (02:36 -0400)] 
We don't need to conditionalize the compression options in
cpio; we just ask libarchive and it will return an error if
it can't provide that feature.

SVN-Revision: 1023

16 years agoAudit and fix up the HAVE_* usage:
Tim Kientzle [Fri, 17 Apr 2009 06:09:28 +0000 (02:09 -0400)] 
Audit and fix up the HAVE_* usage:
 * bsdtar relies on libarchive to handle ACLs, so the ACL feature tests
   in bsdtar are no longer needed
 * ditto for extended attribute support
 * libarchive now implements set_compression_* functions always; if they
   don't work, calling them returns an error.  This changes a lot of
   bsdtar compression tests from compile time checks for a library
   existence to run-time checks for libarchive return values.
   In particular, bsdtar should not need to know which libraries
   or external programs libarchive might be using.

SVN-Revision: 1022

16 years agoIf we know it's a socket, say it's a socket.
Tim Kientzle [Fri, 17 Apr 2009 03:00:54 +0000 (23:00 -0400)] 
If we know it's a socket, say it's a socket.

SVN-Revision: 1021

16 years agoMerge r1017 from libarchive/trunk: Include mode when creating file.
Tim Kientzle [Thu, 16 Apr 2009 23:59:12 +0000 (19:59 -0400)] 
Merge r1017 from libarchive/trunk: Include mode when creating file.

SVN-Revision: 1020

16 years agoRemove extraneous option.
Tim Kientzle [Thu, 16 Apr 2009 23:36:41 +0000 (19:36 -0400)] 
Remove extraneous option.

SVN-Revision: 1019

16 years ago2.7.0 v2.7.0
Tim Kientzle [Thu, 16 Apr 2009 23:35:31 +0000 (19:35 -0400)] 
2.7.0

SVN-Revision: 1018

16 years agoInclude a missing mode value.
Tim Kientzle [Thu, 16 Apr 2009 23:33:39 +0000 (19:33 -0400)] 
Include a missing mode value.

Submitted by: Diego "Flameeyes" Pettenò

SVN-Revision: 1017

16 years agoRemove an unused option.
Tim Kientzle [Thu, 16 Apr 2009 23:31:55 +0000 (19:31 -0400)] 
Remove an unused option.

Submitted by: Diego "Flameeyes" Pettenò

SVN-Revision: 1016