]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agoRevert r1289 and correct some of the *id_t defines:
Tim Kientzle [Sun, 2 Aug 2009 19:16:28 +0000 (15:16 -0400)] 
Revert r1289 and correct some of the *id_t defines:
 * uid_t/gid_t/id_t all default to "short" on Win32, "unsigned int" elsewhere
 * pid_t doesn't need to be probed so remove it

SVN-Revision: 1306

16 years agoAnother step towards clean Windows builds: libarchive, libarchive_test, and bsdtar_...
Tim Kientzle [Sun, 2 Aug 2009 18:34:07 +0000 (14:34 -0400)] 
Another step towards clean Windows builds:  libarchive, libarchive_test, and  bsdtar_test all build cleanly now under both Visual C++ and MinGW.

SVN-Revision: 1305

16 years agoConditionalize link, symlink, and lstat support.
Tim Kientzle [Sat, 1 Aug 2009 05:30:24 +0000 (01:30 -0400)] 
Conditionalize link, symlink, and lstat support.

SVN-Revision: 1304

16 years agoCorrect off-by-one checking for an end-of-archive marker.
Tim Kientzle [Fri, 31 Jul 2009 15:27:17 +0000 (11:27 -0400)] 
Correct off-by-one checking for an end-of-archive marker.

Thanks to: vti

SVN-Revision: 1303

16 years agoDon't crash if hardlinks can't be created.
Tim Kientzle [Thu, 30 Jul 2009 05:55:03 +0000 (01:55 -0400)] 
Don't crash if hardlinks can't be created.

SVN-Revision: 1302

16 years agoUse the new assertUmask() wrapper.
Tim Kientzle [Thu, 30 Jul 2009 05:46:18 +0000 (01:46 -0400)] 
Use the new assertUmask() wrapper.

SVN-Revision: 1301

16 years agoRevert r1295; it was well-intentioned but wrong.
Tim Kientzle [Tue, 28 Jul 2009 15:14:42 +0000 (11:14 -0400)] 
Revert r1295; it was well-intentioned but wrong.

SVN-Revision: 1300

16 years agoNeed some headers here.
Tim Kientzle [Mon, 27 Jul 2009 04:32:00 +0000 (00:32 -0400)] 
Need some headers here.

SVN-Revision: 1299

16 years agoWindows _strdup nonsense.
Tim Kientzle [Mon, 27 Jul 2009 04:29:36 +0000 (00:29 -0400)] 
Windows _strdup nonsense.

SVN-Revision: 1298

16 years agoLook for io.h
Tim Kientzle [Mon, 27 Jul 2009 04:28:57 +0000 (00:28 -0400)] 
Look for io.h

SVN-Revision: 1297

16 years agoTrim down Windows shims for tar: A lot of this has simply gone away:
Tim Kientzle [Mon, 27 Jul 2009 04:27:03 +0000 (00:27 -0400)] 
Trim down Windows shims for tar:  A lot of this has simply gone away:
  * the open/read/write/close emulations were for the test harness, which now uses stdio,
  * mkdir() was for the test harness, which has been refactored so it's no longer needed here
  * opendir/readdir/closedir are only needed by tree.c and are being pushed down into tree.c

SVN-Revision: 1296

16 years agoUse fread() for reading from console; this needs to be carefully tested.
Tim Kientzle [Mon, 27 Jul 2009 04:23:26 +0000 (00:23 -0400)] 
Use fread() for reading from console; this needs to be carefully tested.

SVN-Revision: 1295

16 years agoRemove the Windows-specific wildcard expansion layer; this is going to get reimplemen...
Tim Kientzle [Mon, 27 Jul 2009 04:22:50 +0000 (00:22 -0400)] 
Remove the Windows-specific wildcard expansion layer; this is going to get reimplemented in tree.c soon.

SVN-Revision: 1294

16 years agoDisable symlink checks on Windows for now.
Tim Kientzle [Mon, 27 Jul 2009 04:20:10 +0000 (00:20 -0400)] 
Disable symlink checks on Windows for now.

SVN-Revision: 1293

16 years agoMore Windows fudges.
Tim Kientzle [Mon, 27 Jul 2009 04:19:15 +0000 (00:19 -0400)] 
More Windows fudges.

SVN-Revision: 1292

16 years agoDisable most of this for Windows. Revisit someday.
Tim Kientzle [Mon, 27 Jul 2009 04:18:46 +0000 (00:18 -0400)] 
Disable most of this for Windows.  Revisit someday.

SVN-Revision: 1291

16 years agoWindows fixes.
Tim Kientzle [Mon, 27 Jul 2009 04:18:20 +0000 (00:18 -0400)] 
Windows fixes.

SVN-Revision: 1290

16 years agoFix the uid_t and gid_t declarations to match those of VS and MinGW.
Tim Kientzle [Mon, 27 Jul 2009 04:16:54 +0000 (00:16 -0400)] 
Fix the uid_t and gid_t declarations to match those of VS and MinGW.

SVN-Revision: 1289

16 years agoMinor compile fixes.
Tim Kientzle [Mon, 27 Jul 2009 04:09:31 +0000 (00:09 -0400)] 
Minor compile fixes.

SVN-Revision: 1288

16 years agoPrefer AE_* defines for portability.
Tim Kientzle [Mon, 27 Jul 2009 04:04:21 +0000 (00:04 -0400)] 
Prefer AE_* defines for portability.

SVN-Revision: 1287

16 years agoMore portability improvements.
Tim Kientzle [Mon, 27 Jul 2009 04:00:31 +0000 (00:00 -0400)] 
More portability improvements.

SVN-Revision: 1286

16 years agoMore portability refactoring.
Tim Kientzle [Mon, 27 Jul 2009 03:52:20 +0000 (23:52 -0400)] 
More portability refactoring.

SVN-Revision: 1285

16 years agoPortability refactoring of a few more libarchive tests.
Tim Kientzle [Mon, 27 Jul 2009 03:40:50 +0000 (23:40 -0400)] 
Portability refactoring of a few more libarchive tests.

SVN-Revision: 1284

16 years agotest_write_disk_sparse now uses stdio instead of Posix system calls.
Tim Kientzle [Mon, 27 Jul 2009 03:25:18 +0000 (23:25 -0400)] 
test_write_disk_sparse now uses stdio instead of Posix system calls.

SVN-Revision: 1283

16 years agoMerge some of the bsdtar_test refactoring into libarchive_test and
Tim Kientzle [Sun, 26 Jul 2009 23:49:56 +0000 (19:49 -0400)] 
Merge some of the bsdtar_test refactoring into libarchive_test and
start updating individual test cases.

SVN-Revision: 1282

16 years agoCleanup after last commit: bsdtar_test builds and passes again on FreeBSD.
Tim Kientzle [Sun, 26 Jul 2009 22:58:46 +0000 (18:58 -0400)] 
Cleanup after last commit: bsdtar_test builds and passes again on FreeBSD.

SVN-Revision: 1281

16 years agoRefactor the date formatting slightly.
Tim Kientzle [Sun, 26 Jul 2009 21:42:30 +0000 (17:42 -0400)] 
Refactor the date formatting slightly.

SVN-Revision: 1280

16 years agoTest refactoring to isolate Windows/Posix-specific functions.
Tim Kientzle [Sun, 26 Jul 2009 21:41:39 +0000 (17:41 -0400)] 
Test refactoring to isolate Windows/Posix-specific functions.

This almost builds completely cleanly on VS9 and MinGW; a little more fidgeting is still needed.

SVN-Revision: 1279

16 years agoAdd config.h conditional for Windows <io.h>
Tim Kientzle [Sun, 26 Jul 2009 07:47:34 +0000 (03:47 -0400)] 
Add config.h conditional for Windows <io.h>

SVN-Revision: 1278

16 years agoMerge various test framework improvements across the various
Tim Kientzle [Sun, 26 Jul 2009 04:12:29 +0000 (00:12 -0400)] 
Merge various test framework improvements across the various
test harnesses.  In particular, there have been a few spot
changes to improve Windows support.

SVN-Revision: 1277

16 years agoProvide assertMakeDir() for tests to use instead of raw mkdir(). In particular,...
Tim Kientzle [Sun, 26 Jul 2009 02:59:29 +0000 (22:59 -0400)] 
Provide assertMakeDir() for tests to use instead of raw mkdir().  In particular, this allows us to hide the difference between POSIX two-argument mkdir() and Windows single-argument version.

SVN-Revision: 1276

16 years agoFix ISO9660 hardlink handling and fix the parsing of
Tim Kientzle [Sat, 25 Jul 2009 06:18:47 +0000 (02:18 -0400)] 
Fix ISO9660 hardlink handling and fix the parsing of
Rockridge symlinks.  Update tests to verify the correct
behavior here.

SVN-Revision: 1275

16 years agoReword the skip message here.
Tim Kientzle [Sat, 25 Jul 2009 06:17:21 +0000 (02:17 -0400)] 
Reword the skip message here.

SVN-Revision: 1274

16 years agoChdir() out of the work directory before trying to remove it.
Tim Kientzle [Fri, 24 Jul 2009 04:39:49 +0000 (00:39 -0400)] 
Chdir() out of the work directory before trying to remove it.

SVN-Revision: 1273

16 years agoAllow work dir to be deleted on Windows.
Tim Kientzle [Fri, 24 Jul 2009 04:32:02 +0000 (00:32 -0400)] 
Allow work dir to be deleted on Windows.

SVN-Revision: 1272

16 years agoMerge r1170: Use environment variables to locate a suitable
Tim Kientzle [Fri, 24 Jul 2009 04:18:18 +0000 (00:18 -0400)] 
Merge r1170:  Use environment variables to locate a suitable
temp directory, fix the final dir cleanup.

SVN-Revision: 1271

16 years agoFix distcheck failure.
Charles Wilson [Thu, 23 Jul 2009 23:49:05 +0000 (19:49 -0400)] 
Fix distcheck failure.

SVN-Revision: 1268

16 years agoFix the test naming. The cmake-based builds assume that
Tim Kientzle [Thu, 23 Jul 2009 04:32:07 +0000 (00:32 -0400)] 
Fix the test naming.  The cmake-based builds assume that
we have exactly one official test case in each source file.
If that's violated, the tests report wrong names for failed tests.

SVN-Revision: 1267

16 years agoMore tolerance of Windows/Posix behavioral differences.
Tim Kientzle [Thu, 23 Jul 2009 04:21:44 +0000 (00:21 -0400)] 
More tolerance of Windows/Posix behavioral differences.

SVN-Revision: 1266

16 years agoWindows and Posix libarchive ports handle errors a little differently for external...
Tim Kientzle [Thu, 23 Jul 2009 04:16:09 +0000 (00:16 -0400)] 
Windows and Posix libarchive ports handle errors a little differently for external decompression programs; verify that the responses are reasonable, but don't be too rigid.

SVN-Revision: 1265

16 years agoRemove unnecessary 'extern "C"' from private headers.
Charles Wilson [Wed, 22 Jul 2009 12:13:50 +0000 (08:13 -0400)] 
Remove unnecessary 'extern "C"' from private headers.
Correct include guard in archive_windows.h

SVN-Revision: 1264

16 years agoMerge r1167 (part c) from trunk
Charles Wilson [Wed, 22 Jul 2009 12:01:18 +0000 (08:01 -0400)] 
Merge r1167 (part c) from trunk
Fix a bunch of tests on Visual Studio:
 * 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.
    libarchive/archive_private.h
    libarchive/archive_read.c
    libarchive/archive_read_support_format_tar.c

SVN-Revision: 1263

16 years agoVisual Studio doesn't support %jd.
Tim Kientzle [Wed, 22 Jul 2009 05:19:21 +0000 (01:19 -0400)] 
Visual Studio doesn't support %jd.
"int" is sufficient here on every platform I know of.

SVN-Revision: 1262

16 years agoSupport -I <arg>
Tim Kientzle [Wed, 22 Jul 2009 05:18:24 +0000 (01:18 -0400)] 
Support -I <arg>

SVN-Revision: 1261

16 years agoMinor MinGW fixes.
Charles Wilson [Tue, 21 Jul 2009 04:54:01 +0000 (00:54 -0400)] 
Minor MinGW fixes.
* bsdtar_windows.h: ensure struct bsdtar and struct archive are forward
declared before declaring functions that take pointers to those types.

SVN-Revision: 1260

16 years agoMinor MinGW fixes.
Charles Wilson [Tue, 21 Jul 2009 04:52:25 +0000 (00:52 -0400)] 
Minor MinGW fixes.
* bsdtar_windows.h: New MinGW already defines PRId64; guard it.
Ensure we have definition of MAX_PATH in time, by including windows.h.

SVN-Revision: 1259

16 years agoForgot to add file in r1257.
Charles Wilson [Tue, 21 Jul 2009 04:44:16 +0000 (00:44 -0400)] 
Forgot to add file in r1257.

SVN-Revision: 1258

16 years ago[MinGW/MSVC] Use correct types for (replacement) uid_t and git_d
Charles Wilson [Tue, 21 Jul 2009 04:43:29 +0000 (00:43 -0400)] 
[MinGW/MSVC] Use correct types for (replacement) uid_t and git_d

The st_uid and st_gid fields in struct stat are shorts, not unsigned
int nor (regular) int for MinGW (and, AFAICT, for MSVC as well).
However, neither platform defines uid_t or gid_t, but AC_TYPE_UID_T
defaults to "int" in that case, and the current defaults for __LA_UID_T
and __LA_GID_T in archive.h and archive_entry.h are "unsigned int". On
MinGW these ('int' and 'unsigned int') do not match each other, and they
certainly do not match 'short'.  Fix it.

* build/autoconf/la_uid_t.m4: New file defines la_TYPE_UID_T replacement
macro for AC_TYPE_UID_T.
* configure.ac: Use it.
* libarchive/archive.h [_WIN32]: Use correct default values for
__LA_GID_T and __LA_GID_T.
* libarchive/archive_entry.h [_WIN32]: Ditto.
* libarchive/archive_write_set_format_pax.c (archive_write_pax_header):
Avoid size-of-comparison warnings when uid_t/gid_t have less than 18 bits.

SVN-Revision: 1257

16 years agoMerge r1176 from trunk
Charles Wilson [Tue, 21 Jul 2009 04:02:52 +0000 (00:02 -0400)] 
Merge r1176 from trunk
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).
------------------------------------------------------------------------

SVN-Revision: 1256

16 years agoMerge r1167 (part b) from trunk
Charles Wilson [Tue, 21 Jul 2009 04:01:57 +0000 (00:01 -0400)] 
Merge r1167 (part b) from trunk
Fix a bunch of tests on Visual Studio:
 * 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.
libarchive/test/test_fuzz.c
------------------------------------------------------------------------

SVN-Revision: 1255

16 years agoMerge r1167 (part a) from trunk
Charles Wilson [Tue, 21 Jul 2009 03:57:55 +0000 (23:57 -0400)] 
Merge r1167 (part a) from trunk
Fix a bunch of tests on Visual Studio:
 * detect bzip2 unavailability and skip those tests
libarchive/test/test_read_format_cpio_bin_bz2.c
libarchive/test/test_read_format_pax_bz2.c
libarchive/test/test_read_format_tbz.c
------------------------------------------------------------------------

SVN-Revision: 1254

16 years agoMerge r1164 from trunk
Charles Wilson [Tue, 21 Jul 2009 03:56:12 +0000 (23:56 -0400)] 
Merge r1164 from trunk
Skip this test if libarchive isn't compiled with libbz2.
------------------------------------------------------------------------

SVN-Revision: 1253

16 years agoCorrect error when linking bsdtar/bsdcpio statically on cygwin
Charles Wilson [Tue, 21 Jul 2009 02:43:26 +0000 (22:43 -0400)] 
Correct error when linking bsdtar/bsdcpio statically on cygwin

SVN-Revision: 1252

16 years agoCorrect error when linking bsdtar/bsdcpio statically on cygwin
Charles Wilson [Tue, 21 Jul 2009 02:01:06 +0000 (22:01 -0400)] 
Correct error when linking bsdtar/bsdcpio statically on cygwin

SVN-Revision: 1251

16 years agoMerge r1243 from trunk. Equivalently:
Charles Wilson [Mon, 20 Jul 2009 05:14:00 +0000 (01:14 -0400)] 
Merge r1243 from trunk. Equivalently:
Merge r192031 from FreeBSD-CURRENT: Eliminate redundant error messages.

SVN-Revision: 1250

16 years agoMerge r1220 from trunk:
Charles Wilson [Sun, 19 Jul 2009 23:20:47 +0000 (19:20 -0400)] 
Merge r1220 from trunk:
Testsuite fixes for cygwin-1.5
* configure.ac: Detect cygwin-1.7.
* tar/test/test_copy.c: Better tuning for long filename tests.

SVN-Revision: 1249

16 years agoMerge r1219 from trunk:
Charles Wilson [Sun, 19 Jul 2009 23:15:55 +0000 (19:15 -0400)] 
Merge r1219 from trunk:
Various testsuite fixes for cygwin-1.7.

* libarchive/test/test_read_format_mtree.c: Fix typo in test.
* tar/test/test_patterns.c: Ensure tests work without root privilege.
* cpio/test/test_option_f.c: Ditto.
* cpio/test/test_option_m.c: Ditto.
* cpio/test/test_gcpio_compat.c: Ditto.

SVN-Revision: 1248

16 years agoMerge r1085 from trunk:
Charles Wilson [Sun, 19 Jul 2009 23:11:17 +0000 (19:11 -0400)] 
Merge r1085 from trunk:

Issue 23:  A minor correction to the new dosmaperr()
function.

SVN-Revision: 1247

16 years agoMerge r1084 from trunk:
Charles Wilson [Sun, 19 Jul 2009 23:10:39 +0000 (19:10 -0400)] 
Merge r1084 from trunk:

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

16 years agoInclude archive_windows.h directly via archive_platform.h, in preparation for removin...
Tim Kientzle [Sun, 19 Jul 2009 19:49:44 +0000 (15:49 -0400)] 
Include archive_windows.h directly via archive_platform.h, in preparation for removing this include from the cmake-generated config.h.

SVN-Revision: 1244

16 years agoMerge r192031 from FreeBSD-CURRENT: Eliminate redundant error messages.
Tim Kientzle [Sun, 19 Jul 2009 08:38:38 +0000 (04:38 -0400)] 
Merge r192031 from FreeBSD-CURRENT: Eliminate redundant error messages.

SVN-Revision: 1243

16 years agoMerge r195389 from FreeBSD-CURRENT: Rework the
Tim Kientzle [Sun, 19 Jul 2009 08:35:58 +0000 (04:35 -0400)] 
Merge r195389 from FreeBSD-CURRENT:  Rework the
numeric uid/gid support for the -R option.

SVN-Revision: 1242

16 years agoBuild cpio on FreeBSD again.
Tim Kientzle [Sun, 19 Jul 2009 07:57:48 +0000 (03:57 -0400)] 
Build cpio on FreeBSD again.

SVN-Revision: 1241

16 years agoSort short option list, fill in missing -I option, update
Tim Kientzle [Sun, 19 Jul 2009 07:57:34 +0000 (03:57 -0400)] 
Sort short option list, fill in missing -I option, update
manpage options to include -0, -J, -j, -lzma, and -h.
Since Windows no longer tries to automatically turn on ownership
restore, we need --preserve-owner to allow users to manually
turn it on.

SVN-Revision: 1240

16 years agoRemove the attempt to determine "root" for Windows in cpio.
Tim Kientzle [Sun, 19 Jul 2009 07:35:23 +0000 (03:35 -0400)] 
Remove the attempt to determine "root" for Windows in cpio.
This can never really work properly, so it's better to just
not bother.

SVN-Revision: 1239

16 years agoRemove the attempt to determine "root" for Windows.
Tim Kientzle [Sun, 19 Jul 2009 07:20:51 +0000 (03:20 -0400)] 
Remove the attempt to determine "root" for Windows.
It's not really feasible and just gets weirder the longer
we look at it.  We now assume different defaults only
for the root user on non-Windows systems.

SVN-Revision: 1238

16 years agoMore code simplifications on the seek implementation.
Tim Kientzle [Sun, 19 Jul 2009 07:04:26 +0000 (03:04 -0400)] 
More code simplifications on the seek implementation.

SVN-Revision: 1237

16 years agoVarious updates to the formats summary.
Tim Kientzle [Sun, 19 Jul 2009 06:59:00 +0000 (02:59 -0400)] 
Various updates to the formats summary.

SVN-Revision: 1236

16 years agoMore simplification of the seek/truncate logic:
Tim Kientzle [Sat, 18 Jul 2009 05:13:51 +0000 (01:13 -0400)] 
More simplification of the seek/truncate logic:
 1) We don't actually need to truncate; seek is enough.
 2) The Windows code doesn't need to be more paranoid than the Posix code.

SVN-Revision: 1235

16 years agoSimplify the lseek/ftruncate handling for Windows.
Tim Kientzle [Fri, 17 Jul 2009 06:59:00 +0000 (02:59 -0400)] 
Simplify the lseek/ftruncate handling for Windows.

SVN-Revision: 1234

16 years agoUse archive_entry_XXX() functions more heavily.
Tim Kientzle [Fri, 17 Jul 2009 06:31:13 +0000 (02:31 -0400)] 
Use archive_entry_XXX() functions more heavily.
This removes the need for major()/minor() and
reduces the use of struct stat in the client code.

SVN-Revision: 1233

16 years agoUse portable archive_entry_filetype() where we can.
Tim Kientzle [Fri, 17 Jul 2009 06:07:07 +0000 (02:07 -0400)] 
Use portable archive_entry_filetype() where we can.

SVN-Revision: 1232

16 years agoVerify that the correct data gets written to stdout with xvO.
Tim Kientzle [Fri, 17 Jul 2009 04:24:49 +0000 (00:24 -0400)] 
Verify that the correct data gets written to stdout with xvO.

SVN-Revision: 1231

16 years agoBail early if the program under test doesn't support -q at all.
Tim Kientzle [Fri, 17 Jul 2009 04:23:58 +0000 (00:23 -0400)] 
Bail early if the program under test doesn't support -q at all.

SVN-Revision: 1230

16 years agoI just noticed that test_option_q also exercises -r pretty
Tim Kientzle [Fri, 17 Jul 2009 04:23:30 +0000 (00:23 -0400)] 
I just noticed that test_option_q also exercises -r pretty
heavily; modify the new test_option_r to use a slightly different approach.

SVN-Revision: 1229

16 years agoBlame the program we're testing for failures.
Tim Kientzle [Fri, 17 Jul 2009 04:22:43 +0000 (00:22 -0400)] 
Blame the program we're testing for failures.

SVN-Revision: 1228

16 years agoExit this test early on format failures.
Tim Kientzle [Fri, 17 Jul 2009 04:21:28 +0000 (00:21 -0400)] 
Exit this test early on format failures.
In particular, I've been toying with
   bsdtar_test -p gtar
and this test is rather noisy then.

SVN-Revision: 1227

16 years agoFix a stupid mistake.
Tim Kientzle [Fri, 17 Jul 2009 04:20:42 +0000 (00:20 -0400)] 
Fix a stupid mistake.

SVN-Revision: 1226

16 years agoAdd a test for basic -r operation.
Tim Kientzle [Fri, 17 Jul 2009 03:49:55 +0000 (23:49 -0400)] 
Add a test for basic -r operation.

SVN-Revision: 1225

16 years agoRename test_option_T to test_option_T_upper, following a pattern
Tim Kientzle [Fri, 17 Jul 2009 03:35:08 +0000 (23:35 -0400)] 
Rename test_option_T to test_option_T_upper, following a pattern
established by bsdcpio_test for ensuring that test cases don't
cause problems on case-insensitive filesystems.

SVN-Revision: 1224

16 years agoOverhaul the SIGINFO/SIGUSR1 reporting. This is a little
Tim Kientzle [Fri, 17 Jul 2009 01:21:18 +0000 (21:21 -0400)] 
Overhaul the SIGINFO/SIGUSR1 reporting.  This is a little
simpler and gives a lot more information.  In particular,
it reports total bytes in/out, total files and compression
ratio, in addition to reporting the current file being processed.

SVN-Revision: 1223

16 years agoAdd archive_file_count() utility, for better statistics reporting.
Tim Kientzle [Fri, 17 Jul 2009 01:18:15 +0000 (21:18 -0400)] 
Add archive_file_count() utility, for better statistics reporting.

SVN-Revision: 1222

17 years agoMove lseek/ftruncate emulations into write.c, which is the
Tim Kientzle [Mon, 13 Jul 2009 05:45:27 +0000 (01:45 -0400)] 
Move lseek/ftruncate emulations into write.c, which is the
only place they're used.

SVN-Revision: 1221

17 years agoTestsuite fixes for cygwin-1.5
Charles Wilson [Fri, 10 Jul 2009 19:45:33 +0000 (15:45 -0400)] 
Testsuite fixes for cygwin-1.5
* configure.ac: Detect cygwin-1.7.
* tar/test/test_copy.c: Better tuning for long filename tests.

NOTE: this change causes a new cygwin-1.7 failure, but that is
actually a bug in the current cygwin-1.7 beta:
  http://cygwin.com/ml/cygwin/2009-07/msg00386.html
It's assumed this will be fixed in cygwin, soon.

SVN-Revision: 1220

17 years agoVarious testsuite fixes for cygwin-1.7.
Charles Wilson [Tue, 7 Jul 2009 19:32:31 +0000 (15:32 -0400)] 
Various testsuite fixes for cygwin-1.7.

* libarchive/test/test_read_format_mtree.c: Fix typo in test.
* tar/test/test_patterns.c: Ensure tests work without root privilege.
* cpio/test/test_option_f.c: Ditto.
* cpio/test/test_option_m.c: Ditto.
* cpio/test/test_gcpio_compat.c: Ditto.

SVN-Revision: 1219

17 years agoInclude new libarchive_fe dir for cpio/test build.
Tim Kientzle [Sat, 4 Jul 2009 17:02:43 +0000 (13:02 -0400)] 
Include new libarchive_fe dir for cpio/test build.

SVN-Revision: 1216

17 years agoMinor corrections for Windows: Use int64_t instead of (32-bit) off_t, include needed...
Tim Kientzle [Sat, 4 Jul 2009 07:26:15 +0000 (03:26 -0400)] 
Minor corrections for Windows:  Use int64_t instead of (32-bit) off_t, include needed <io.h> header.

SVN-Revision: 1215

17 years agoUse the current thread's code page, as possibly modified by the client program, not...
Tim Kientzle [Sat, 4 Jul 2009 07:22:53 +0000 (03:22 -0400)] 
Use the current thread's code page, as possibly modified by the client program, not the system-wide default.

SVN-Revision: 1214

17 years agoSync with recent changes to tar/test/main.c. No functional change.
Tim Kientzle [Sat, 4 Jul 2009 07:19:18 +0000 (03:19 -0400)] 
Sync with recent changes to tar/test/main.c.  No functional change.

SVN-Revision: 1213

17 years agoSupport decimal uid/gid when parsing -R/--owner option.
Tim Kientzle [Thu, 2 Jul 2009 04:17:34 +0000 (00:17 -0400)] 
Support decimal uid/gid when parsing -R/--owner option.
Extend existing test to cover new functionality.
Rework this test slightly to reduce conditionals for Cygwin.

SVN-Revision: 1208

17 years agoconst correction.
Tim Kientzle [Thu, 2 Jul 2009 04:15:38 +0000 (00:15 -0400)] 
const correction.

SVN-Revision: 1207

17 years agoStyle fix: declaring a structure tag is really a very straightforward thing.
Tim Kientzle [Wed, 1 Jul 2009 06:42:05 +0000 (02:42 -0400)] 
Style fix:  declaring a structure tag is really a very straightforward thing.

SVN-Revision: 1206

17 years agoNow that O_BINARY is being explicitly asserted everywhere it should
Tim Kientzle [Sun, 28 Jun 2009 23:59:21 +0000 (19:59 -0400)] 
Now that O_BINARY is being explicitly asserted everywhere it should
be, we can remove the last _set_fmode() calls.

SVN-Revision: 1204

17 years agoNow that cpio is explicity using O_BINARY on opens,
Tim Kientzle [Sun, 28 Jun 2009 23:57:46 +0000 (19:57 -0400)] 
Now that cpio is explicity using O_BINARY on opens,
make sure it gets defined.

SVN-Revision: 1203

17 years agoCygwin build fixes, thanks to Charles Wilson.
Tim Kientzle [Sun, 28 Jun 2009 23:57:08 +0000 (19:57 -0400)] 
Cygwin build fixes, thanks to Charles Wilson.

SVN-Revision: 1202

17 years agocpio doesn't need set_fmode(O_BINARY) any more so we can remove it.
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

17 years agoWhen verifying date, be tolerant of "Jan 01" or "Jan 1" and also tolerate different...
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

17 years agoFix running bsdcpio_test in a dir with spaces by quoting the program name appropriately.
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

17 years agoMinor touchups for FreeBSD Makefiles.
Tim Kientzle [Sun, 28 Jun 2009 01:45:48 +0000 (21:45 -0400)] 
Minor touchups for FreeBSD Makefiles.

SVN-Revision: 1198

17 years agoUse sprintf_s only in MSVC, not in MinGW, Cygwin, or other Windows-based environments.
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