]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Tim Kientzle [Sun, 28 Jun 2009 08:08:04 +0000 (04:08 -0400)]
cpio doesn't need set_fmode(O_BINARY) any more so we can remove it.
Also, fix up the uid/gid formatting to work properly on Windows (whose printf() functions don't support ISO C99).
SVN-Revision: 1201
Tim Kientzle [Sun, 28 Jun 2009 08:01:50 +0000 (04:01 -0400)]
When verifying date, be tolerant of "Jan 01" or "Jan 1" and also tolerate different line endings.
SVN-Revision: 1200
Tim Kientzle [Sun, 28 Jun 2009 08:00:33 +0000 (04:00 -0400)]
Fix running bsdcpio_test in a dir with spaces by quoting the program name appropriately.
SVN-Revision: 1199
Tim Kientzle [Sun, 28 Jun 2009 01:45:48 +0000 (21:45 -0400)]
Minor touchups for FreeBSD Makefiles.
SVN-Revision: 1198
Tim Kientzle [Sun, 28 Jun 2009 01:44:54 +0000 (21:44 -0400)]
Use sprintf_s only in MSVC, not in MinGW, Cygwin, or other Windows-based environments.
SVN-Revision: 1197
Tim Kientzle [Sun, 28 Jun 2009 00:05:54 +0000 (20:05 -0400)]
Include <io.h> and <fcntl.h> to pull in setmode(), fileno(), and O_BINARY
for Cygwin.
SVN-Revision: 1195
Tim Kientzle [Sat, 27 Jun 2009 23:59:27 +0000 (19:59 -0400)]
Better error reporting of certain test failures.
SVN-Revision: 1194
Tim Kientzle [Sat, 27 Jun 2009 19:51:30 +0000 (15:51 -0400)]
Delete empty svn:mergeinfo that seem to have crept in from somewhere.
SVN-Revision: 1192
Tim Kientzle [Sat, 27 Jun 2009 19:48:17 +0000 (15:48 -0400)]
Revert r1016 because of feedback from Charles Wilson.
SVN-Revision: 1191
Tim Kientzle [Sat, 27 Jun 2009 18:36:51 +0000 (14:36 -0400)]
Force client-provided file descriptors to binary mode
on Cygwin.
SVN-Revision: 1190
Tim Kientzle [Sat, 27 Jun 2009 18:32:16 +0000 (14:32 -0400)]
binmode.o should no longer be needed on Cygwin.
SVN-Revision: 1189
Tim Kientzle [Sat, 27 Jun 2009 03:51:50 +0000 (23:51 -0400)]
I believe the _set_fmode() here is no longer needed.
SVN-Revision: 1188
Tim Kientzle [Sat, 27 Jun 2009 03:48:20 +0000 (23:48 -0400)]
On Windows, set _O_BINARY on filehandles passed in from clients.
This should eliminate the need for clients to take special
measures to get correct binary handling.
SVN-Revision: 1187
Tim Kientzle [Sat, 27 Jun 2009 03:44:34 +0000 (23:44 -0400)]
Fix "make check" by matching some recent variable renaming.
SVN-Revision: 1186
Tim Kientzle [Fri, 26 Jun 2009 04:21:47 +0000 (00:21 -0400)]
Use different files for each sub-test here to make it easier to diagnose failures.
SVN-Revision: 1184
Tim Kientzle [Fri, 26 Jun 2009 04:21:02 +0000 (00:21 -0400)]
Break into debugger on reference file failure only after printing out the explanation.
If -vv, then print out each command as it's run.
SVN-Revision: 1183
Tim Kientzle [Fri, 26 Jun 2009 04:18:37 +0000 (00:18 -0400)]
If neither SIGINFO nor SIGUSR1 is being used, don't crash.
SVN-Revision: 1182
Tim Kientzle [Tue, 23 Jun 2009 05:18:00 +0000 (01:18 -0400)]
SVN-Revision: 1181
Tim Kientzle [Mon, 22 Jun 2009 05:10:55 +0000 (01:10 -0400)]
The output of uudecode is binary.
SVN-Revision: 1180
Tim Kientzle [Mon, 22 Jun 2009 03:59:15 +0000 (23:59 -0400)]
Fix build when regex.h is unavailable.
SVN-Revision: 1179
Tim Kientzle [Mon, 22 Jun 2009 03:58:22 +0000 (23:58 -0400)]
Ooops. Make it compile again.
SVN-Revision: 1178
Tim Kientzle [Sun, 21 Jun 2009 17:10:46 +0000 (13:10 -0400)]
Clear error buffer on entry to archive_read_open2().
Limit options setting to archives that have not yet been opened.
SVN-Revision: 1177
Colin Percival [Sun, 21 Jun 2009 05:09:55 +0000 (01:09 -0400)]
Clear any warning/error messages set by archive_read_support_compression_*
functions, since we're ignoring their return codes. This eliminates the
weird behaviour of printing "Using external unxz program for xz
decompression" if an unrelated error occurs when opening an archive (due
to the message lingering in the error message buffer).
Approved by: kientzle
SVN-Revision: 1176
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
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
Tim Kientzle [Thu, 18 Jun 2009 05:44:35 +0000 (01:44 -0400)]
Sync up the test harnesses somewhat.
SVN-Revision: 1171
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
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
Tim Kientzle [Mon, 15 Jun 2009 06:17:44 +0000 (02:17 -0400)]
Remove unused variable.
SVN-Revision: 1168
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
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
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
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
Tim Kientzle [Sun, 14 Jun 2009 05:43:13 +0000 (01:43 -0400)]
Drop a few unnecessary arguments.
SVN-Revision: 1163
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
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
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
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
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
Tim Kientzle [Fri, 12 Jun 2009 04:52:35 +0000 (00:52 -0400)]
Couple of minor build issues on MinGW.
SVN-Revision: 1157
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
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
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
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
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
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
Tim Kientzle [Fri, 5 Jun 2009 04:54:08 +0000 (00:54 -0400)]
Fix build when libz is unavailable.
SVN-Revision: 1145
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
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
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
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
Tim Kientzle [Fri, 29 May 2009 05:35:04 +0000 (01:35 -0400)]
Distribution needs header files.
SVN-Revision: 1140
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
Tim Kientzle [Fri, 29 May 2009 05:15:58 +0000 (01:15 -0400)]
Remove obsolete PROJECTS file from Makefile.am.
SVN-Revision: 1138
Joerg Sonnenberger [Wed, 27 May 2009 15:39:26 +0000 (11:39 -0400)]
Replace zip_encode with the normal endian functions.
SVN-Revision: 1137
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
Joerg Sonnenberger [Tue, 26 May 2009 20:03:29 +0000 (16:03 -0400)]
Writing zip is fully supported.
SVN-Revision: 1135
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
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
Joerg Sonnenberger [Tue, 26 May 2009 18:58:08 +0000 (14:58 -0400)]
Make compression support work.
SVN-Revision: 1132
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
Joerg Sonnenberger [Tue, 26 May 2009 18:54:07 +0000 (14:54 -0400)]
Include real crc32 if zlib.h is missing.
SVN-Revision: 1130
Joerg Sonnenberger [Tue, 26 May 2009 17:21:51 +0000 (13:21 -0400)]
Explicitly request store mode.
SVN-Revision: 1129
Joerg Sonnenberger [Tue, 26 May 2009 16:36:55 +0000 (12:36 -0400)]
Fix test case to compute CRC32 correctly.
SVN-Revision: 1128
Joerg Sonnenberger [Tue, 26 May 2009 16:27:38 +0000 (12:27 -0400)]
Correctly write compressed size to the central catalog.
SVN-Revision: 1127
Joerg Sonnenberger [Tue, 26 May 2009 15:56:53 +0000 (11:56 -0400)]
Kill redundant void * casts.
SVN-Revision: 1126
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
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
Joerg Sonnenberger [Tue, 26 May 2009 15:23:40 +0000 (11:23 -0400)]
Deflate is method 8.
SVN-Revision: 1123
Joerg Sonnenberger [Tue, 26 May 2009 15:07:11 +0000 (11:07 -0400)]
Actually rename the bytecrc32 function...
SVN-Revision: 1122
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
Joerg Sonnenberger [Tue, 26 May 2009 15:02:12 +0000 (11:02 -0400)]
Fix indentation.
SVN-Revision: 1120
Joerg Sonnenberger [Tue, 26 May 2009 14:19:13 +0000 (10:19 -0400)]
Expand mtree:indent text.
SVN-Revision: 1119
Joerg Sonnenberger [Tue, 26 May 2009 12:47:02 +0000 (08:47 -0400)]
Refactor common frontend code into a separate library.
SVN-Revision: 1118
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
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
Joerg Sonnenberger [Tue, 26 May 2009 10:47:30 +0000 (06:47 -0400)]
Fix count.
SVN-Revision: 1115
Joerg Sonnenberger [Tue, 26 May 2009 09:24:51 +0000 (05:24 -0400)]
Fix test case for positive time zones.
SVN-Revision: 1114
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
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
Tim Kientzle [Mon, 25 May 2009 16:46:49 +0000 (12:46 -0400)]
Verify cmake builds as part of "make distcheck"
SVN-Revision: 1111
Tim Kientzle [Mon, 25 May 2009 16:09:49 +0000 (12:09 -0400)]
Catch up with new file
SVN-Revision: 1110
Tim Kientzle [Mon, 25 May 2009 16:09:25 +0000 (12:09 -0400)]
Catch up with new and renamed files.
SVN-Revision: 1109
Tim Kientzle [Mon, 25 May 2009 16:08:32 +0000 (12:08 -0400)]
Include new file.
SVN-Revision: 1108
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
Tim Kientzle [Sun, 24 May 2009 23:04:23 +0000 (19:04 -0400)]
Remove extraneous line break.
SVN-Revision: 1102
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
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
Joerg Sonnenberger [Sun, 24 May 2009 03:25:16 +0000 (23:25 -0400)]
Adjust for 2009.
SVN-Revision: 1099
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
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
Tim Kientzle [Sun, 24 May 2009 01:06:48 +0000 (21:06 -0400)]
Break a long line.
SVN-Revision: 1096
Tim Kientzle [Sat, 23 May 2009 17:29:40 +0000 (13:29 -0400)]
Correct the declaration of a static volatile.
SVN-Revision: 1095
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
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
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
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
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
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
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