]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agoInclude a minimal test for iso9660 options handling. In
Tim Kientzle [Sat, 20 Jun 2009 06:15:28 +0000 (02:15 -0400)] 
Include a minimal test for iso9660 options handling.  In
particular, this tests the fix made in r1172.

SVN-Revision: 1175

16 years agoFix "tar --options=iso9660:joliet" and other uses of
Tim Kientzle [Sat, 20 Jun 2009 06:00:30 +0000 (02:00 -0400)] 
Fix "tar --options=iso9660:joliet" and other uses of
format options.

SVN-Revision: 1172

16 years agoSync up the test harnesses somewhat.
Tim Kientzle [Thu, 18 Jun 2009 05:44:35 +0000 (01:44 -0400)] 
Sync up the test harnesses somewhat.

SVN-Revision: 1171

16 years agoMake bsdtar_test and bsdcpio_test aware of TMPDIR/TMP/TEMPDIR
Tim Kientzle [Thu, 18 Jun 2009 05:11:18 +0000 (01:11 -0400)] 
Make bsdtar_test and bsdcpio_test aware of TMPDIR/TMP/TEMPDIR
environment variables.

SVN-Revision: 1170

16 years agoCompare 'avail' to 0, not ARCHIVE_OK. (A zero value here
Tim Kientzle [Mon, 15 Jun 2009 06:19:38 +0000 (02:19 -0400)] 
Compare 'avail' to 0, not ARCHIVE_OK.  (A zero value here
represents the number of bytes available, not a success status.)

SVN-Revision: 1169

16 years agoRemove unused variable.
Tim Kientzle [Mon, 15 Jun 2009 06:17:44 +0000 (02:17 -0400)] 
Remove unused variable.

SVN-Revision: 1168

16 years agoFix a bunch of tests on Visual Studio:
Tim Kientzle [Mon, 15 Jun 2009 01:48:29 +0000 (21:48 -0400)] 
Fix a bunch of tests on Visual Studio:
 * detect bzip2 unavailability and skip those tests
 * Now that we have better handling for missing compression,
   test_fuzz doesn't need to test whether it can handle
   a file before it tries fuzzing it.
 * Change off_t to int64_t for a lot of internal vars
   to support VS 32-bit off_t; since we can't change
   the external client_skip interface until libarchive 3.0,
   just limit forward skips until then.

SVN-Revision: 1167

16 years agoWhen building out the read filter pipeline, ask each filter
Tim Kientzle [Sun, 14 Jun 2009 17:46:29 +0000 (13:46 -0400)] 
When building out the read filter pipeline, ask each filter
for some data after we initialize it.  This catches filter
startup failures (such as errors forking an external program)
at open time.  Adjust one test that now sees an error earlier.

SVN-Revision: 1166

16 years agoVerify the reference directory even if it was specified on the command line.
Tim Kientzle [Sun, 14 Jun 2009 07:15:06 +0000 (03:15 -0400)] 
Verify the reference directory even if it was specified on the command line.

SVN-Revision: 1165

16 years agoSkip this test if libarchive isn't compiled with libbz2.
Tim Kientzle [Sun, 14 Jun 2009 07:13:59 +0000 (03:13 -0400)] 
Skip this test if libarchive isn't compiled with libbz2.

SVN-Revision: 1164

16 years agoDrop a few unnecessary arguments.
Tim Kientzle [Sun, 14 Jun 2009 05:43:13 +0000 (01:43 -0400)] 
Drop a few unnecessary arguments.

SVN-Revision: 1163

16 years agoSwitch the tar test suite to use stdio (FILE *, fopen, etc)
Tim Kientzle [Sun, 14 Jun 2009 05:37:44 +0000 (01:37 -0400)] 
Switch the tar test suite to use stdio (FILE *, fopen, etc)
instead of Unix I/O calls (open()/read()/write()).  This
is partly to address some portability issues---I want to
minimize platform-specific code in the test suites---and
partly because there isn't a compelling argument for using
Unix I/O calls in the test suites (unlike libarchive itself,
which does have specific requirements that require the
use of Unix I/O instead of stdio).

After this is tested on more platforms, I hope to apply similar
changes to the cpio and libarchive test suites.

SVN-Revision: 1162

16 years agoSince bsdtar already pays for stdio, just use fprintf() here instead of trying to...
Tim Kientzle [Fri, 12 Jun 2009 05:19:15 +0000 (01:19 -0400)] 
Since bsdtar already pays for stdio, just use fprintf() here instead of trying to economize by using write().

SVN-Revision: 1161

16 years agoIf signals can't be handled, stub out the setup functions.
Tim Kientzle [Fri, 12 Jun 2009 05:14:33 +0000 (01:14 -0400)] 
If signals can't be handled, stub out the setup functions.

SVN-Revision: 1160

16 years agoDon't use off_t or size_t for measuring file sizes.
Tim Kientzle [Fri, 12 Jun 2009 05:01:14 +0000 (01:01 -0400)] 
Don't use off_t or size_t for measuring file sizes.

SVN-Revision: 1159

16 years agoFix libarchive_test on MinGW. Can we do better here?
Tim Kientzle [Fri, 12 Jun 2009 04:54:24 +0000 (00:54 -0400)] 
Fix libarchive_test on MinGW.  Can we do better here?

SVN-Revision: 1158

16 years agoCouple of minor build issues on MinGW.
Tim Kientzle [Fri, 12 Jun 2009 04:52:35 +0000 (00:52 -0400)] 
Couple of minor build issues on MinGW.

SVN-Revision: 1157

16 years ago_set_fmode(O_BINARY) shouldn't be needed here; we should just include O_BINARY with...
Tim Kientzle [Fri, 12 Jun 2009 04:47:23 +0000 (00:47 -0400)] 
_set_fmode(O_BINARY) shouldn't be needed here; we should just include O_BINARY with any open() calls as necessary.

SVN-Revision: 1156

16 years agoIf neither SIGINFO nor SIGUSR1 is defined, don't build the signal-handling functions.
Tim Kientzle [Fri, 12 Jun 2009 04:45:06 +0000 (00:45 -0400)] 
If neither SIGINFO nor SIGUSR1 is defined, don't build the signal-handling functions.

SVN-Revision: 1155

16 years agoUpdate to use the new "libarchive frontend" common functions.
Tim Kientzle [Fri, 12 Jun 2009 04:09:55 +0000 (00:09 -0400)] 
Update to use the new "libarchive frontend" common functions.

SVN-Revision: 1154

16 years agoProperty fixups: Renamed files on trunk don't need mergeinfo.
Tim Kientzle [Fri, 12 Jun 2009 03:30:15 +0000 (23:30 -0400)] 
Property fixups: Renamed files on trunk don't need mergeinfo.

SVN-Revision: 1149

16 years agoReverse-merge r1147: Increase the limit on how much memory liblzma is allowed to...
Tim Kientzle [Fri, 12 Jun 2009 03:29:11 +0000 (23:29 -0400)] 
Reverse-merge r1147:  Increase the limit on how much memory liblzma is allowed to allocate.

SVN-Revision: 1148

16 years agoUse sigaction instead of signal. This unbreaks Solaris and other
Colin Percival [Fri, 5 Jun 2009 06:15:50 +0000 (02:15 -0400)] 
Use sigaction instead of signal.  This unbreaks Solaris and other
platforms with SysV signal-handling semantics.

Obtained from: tarsnap

SVN-Revision: 1146

16 years agoFix build when libz is unavailable.
Tim Kientzle [Fri, 5 Jun 2009 04:54:08 +0000 (00:54 -0400)] 
Fix build when libz is unavailable.

SVN-Revision: 1145

16 years agoComment tweaks; make it a little more obvious the difference
Tim Kientzle [Sat, 30 May 2009 07:38:01 +0000 (03:38 -0400)] 
Comment tweaks; make it a little more obvious the difference
between examples/untar.c and contrib/untar.c.  I should
probably rename one of these.

SVN-Revision: 1144

16 years agoComment improvements, minor code fixes for standalone untar program.
Tim Kientzle [Sat, 30 May 2009 07:36:04 +0000 (03:36 -0400)] 
Comment improvements, minor code fixes for standalone untar program.

SVN-Revision: 1143

16 years agofnmatch(3) is no longer use, so don't check for it.
Joerg Sonnenberger [Fri, 29 May 2009 06:38:52 +0000 (02:38 -0400)] 
fnmatch(3) is no longer use, so don't check for it.

SVN-Revision: 1142

16 years agoFree data in the proper order; this caused a crash
Tim Kientzle [Fri, 29 May 2009 05:38:51 +0000 (01:38 -0400)] 
Free data in the proper order; this caused a crash
with malloc debugging turned on.

SVN-Revision: 1141

16 years agoDistribution needs header files.
Tim Kientzle [Fri, 29 May 2009 05:35:04 +0000 (01:35 -0400)] 
Distribution needs header files.

SVN-Revision: 1140

16 years agoA lot of common client source files were recently moved to
Tim Kientzle [Fri, 29 May 2009 05:16:35 +0000 (01:16 -0400)] 
A lot of common client source files were recently moved to
the 'libarchive_fe' directory.

SVN-Revision: 1139

16 years agoRemove obsolete PROJECTS file from Makefile.am.
Tim Kientzle [Fri, 29 May 2009 05:15:58 +0000 (01:15 -0400)] 
Remove obsolete PROJECTS file from Makefile.am.

SVN-Revision: 1138

16 years agoReplace zip_encode with the normal endian functions.
Joerg Sonnenberger [Wed, 27 May 2009 15:39:26 +0000 (11:39 -0400)] 
Replace zip_encode with the normal endian functions.

SVN-Revision: 1137

16 years agoReplace archive_write_zip_set_deflate and archive_write_zip_set_store
Joerg Sonnenberger [Tue, 26 May 2009 20:21:39 +0000 (16:21 -0400)] 
Replace archive_write_zip_set_deflate and archive_write_zip_set_store
with options.

SVN-Revision: 1136

16 years agoWriting zip is fully supported.
Joerg Sonnenberger [Tue, 26 May 2009 20:03:29 +0000 (16:03 -0400)] 
Writing zip is fully supported.

SVN-Revision: 1135

16 years agoHard-wire buffer size only once and check for malloc error.
Joerg Sonnenberger [Tue, 26 May 2009 20:01:19 +0000 (16:01 -0400)] 
Hard-wire buffer size only once and check for malloc error.

SVN-Revision: 1134

16 years agoRefactor crc32 into a separate file and provide a version that actually
Joerg Sonnenberger [Tue, 26 May 2009 19:37:20 +0000 (15:37 -0400)] 
Refactor crc32 into a separate file and provide a version that actually
works.

SVN-Revision: 1133

16 years agoMake compression support work.
Joerg Sonnenberger [Tue, 26 May 2009 18:58:08 +0000 (14:58 -0400)] 
Make compression support work.

SVN-Revision: 1132

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 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 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