]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
15 years agoFix tar archiving of hardlinks on Windows: tree.c uses
Tim Kientzle [Thu, 24 Sep 2009 15:11:32 +0000 (11:11 -0400)] 
Fix tar archiving of hardlinks on Windows:  tree.c uses
Windows stat() call which doesn't actually provide
link count or inode values.  Passing this data down into
libarchive (to avoid redundant stat() calls) meant that
hardlink detection simply failed on Windows.  Until
I can work up something better, this simply avoids passing
stat() data from tree down into libarchive on Windows.
This allows libarchive to do the GetFileInfoByHandle
which provides useful information.

SVN-Revision: 1465

15 years agoMinor test tightening.
Tim Kientzle [Thu, 24 Sep 2009 15:08:23 +0000 (11:08 -0400)] 
Minor test tightening.

SVN-Revision: 1464

15 years agoUse int64_t for storing inode values internally.
Tim Kientzle [Thu, 24 Sep 2009 15:06:56 +0000 (11:06 -0400)] 
Use int64_t for storing inode values internally.
This fixes some hardlink-detection issues on Windows:  NTFS uses 64-bit inode values, but Windows ino_t is only 16 bits.

SVN-Revision: 1463

15 years agoMore detail on failure.
Tim Kientzle [Thu, 24 Sep 2009 15:01:33 +0000 (11:01 -0400)] 
More detail on failure.

SVN-Revision: 1462

15 years agoProperly conditionalize symlink tests on canSymlink().
Tim Kientzle [Thu, 24 Sep 2009 15:00:46 +0000 (11:00 -0400)] 
Properly conditionalize symlink tests on canSymlink().

SVN-Revision: 1461

15 years agoGet more detail about cpio/test_basic failures.
Tim Kientzle [Thu, 24 Sep 2009 14:59:32 +0000 (10:59 -0400)] 
Get more detail about cpio/test_basic failures.

SVN-Revision: 1460

15 years agoOoops. Accidentally checked in some local config changes I'm using
Tim Kientzle [Mon, 14 Sep 2009 04:40:36 +0000 (00:40 -0400)] 
Ooops.  Accidentally checked in some local config changes I'm using
for debugging.

SVN-Revision: 1459

15 years agoVarious fixes to symlink-related tests:
Tim Kientzle [Mon, 14 Sep 2009 04:38:40 +0000 (00:38 -0400)] 
Various fixes to symlink-related tests:
 * canSymlink() is no longer hardwired to always return false
 * cpio/test/test_gcpio_compat now has symlink-free test archives
   for use on platforms that lack symlink support
 * several other tests have slightly finer-grained avoidance of
   checks that rely on symlink support

SVN-Revision: 1458

15 years agoFix some compiler warnings in VS9.
Tim Kientzle [Sun, 13 Sep 2009 07:05:56 +0000 (03:05 -0400)] 
Fix some compiler warnings in VS9.

SVN-Revision: 1457

15 years agoMerge cpio test refactorings into tar and libarchive test harnesses,
Tim Kientzle [Sat, 12 Sep 2009 18:08:48 +0000 (14:08 -0400)] 
Merge cpio test refactorings into tar and libarchive test harnesses,
apply a few minor reorgs to further reduce diffs among the test
harnesses, update a bunch of tests to match the harness changes,
update some comments, rewrite the gzip/gunzip platform probes to the
new "canFoo()" style, sprinkle a few new symlink support checks.  This
hasn't been tested on Windows yet, but should chip away a few more
test failures there.

SVN-Revision: 1456

15 years agoRefactor hardlink/symlink support in test harness: we now have
Tim Kientzle [Sat, 12 Sep 2009 05:24:28 +0000 (01:24 -0400)] 
Refactor hardlink/symlink support in test harness:  we now have
assertIsHardlink() and assertIsNotHardlink().  On the symlink side,
I've added a run-time platform probe canSymlink() that tests the
local platform the first time it is called and remembers the result.
As an experiment, refactor test_basic.c to omit symlinks from the
tests if the current platform lacks symlink support.

SVN-Revision: 1455

15 years agoNew libarchive test for symlink restores.
Tim Kientzle [Sat, 12 Sep 2009 04:45:01 +0000 (00:45 -0400)] 
New libarchive test for symlink restores.

SVN-Revision: 1454

15 years agoUse lstat() on Cygwin for directory walking.
Tim Kientzle [Sat, 12 Sep 2009 04:43:43 +0000 (00:43 -0400)] 
Use lstat() on Cygwin for directory walking.

SVN-Revision: 1453

15 years agoReal hardlink detection on Windows (yes, Windows stat() really does seem to be that...
Tim Kientzle [Fri, 11 Sep 2009 05:28:37 +0000 (01:28 -0400)] 
Real hardlink detection on Windows (yes, Windows stat() really does seem to be that broken!).  Also, expose the core hardlink test as a non-assertion so we can assert it false.

In particular, this fixes test_option_l on Windows.

SVN-Revision: 1452

15 years agoCheck whether platform permits filenames with control characters
Tim Kientzle [Fri, 11 Sep 2009 02:24:42 +0000 (22:24 -0400)] 
Check whether platform permits filenames with control characters
before we try to actually test with one.  In particular, this should
fix this test on Windows.  (On platforms that permit control
characters in filenames, this test verifies that the -null option
really does treat LF characters as part of a filename instead of as a
line terminator.)

Even on platforms that don't support control characters, we can
test most of the line-parsing capabilities.

SVN-Revision: 1451

15 years agoFix compiler warnings on MinGW with gcc-4.4.0
Charles Wilson [Thu, 10 Sep 2009 18:17:34 +0000 (14:17 -0400)] 
Fix compiler warnings on MinGW with gcc-4.4.0
* tar/test/main.c (assertion_file_time): Silence 'var may
be used uninitialized' warning.
* cpio/test/main.c (assertion_file_time): Silence 'var may
be used uninitialized' warning.
* libarchive/test/main.c: Don't re-#define chdir.
(assertion_file_time): Silence 'var may be used uninitialized' warning.

SVN-Revision: 1450

15 years agoPropagate the recent overhaul of libarchive/test/main.c to the tar and
Tim Kientzle [Thu, 10 Sep 2009 04:36:02 +0000 (00:36 -0400)] 
Propagate the recent overhaul of libarchive/test/main.c to the tar and
cpio test suites, update run_all_tests to take advantage of the new
default test output.

SVN-Revision: 1449

15 years agoOops. I left out the key part of the last commit.
Tim Kientzle [Thu, 10 Sep 2009 04:35:08 +0000 (00:35 -0400)] 
Oops.  I left out the key part of the last commit.

SVN-Revision: 1448

15 years agoMake the owner_parse() test quiet by having the function
Tim Kientzle [Thu, 10 Sep 2009 04:34:41 +0000 (00:34 -0400)] 
Make the owner_parse() test quiet by having the function
return an error string instead of emitting it.

SVN-Revision: 1447

15 years agoDon't use la_ prefixes in non-libarchive code.
Tim Kientzle [Thu, 10 Sep 2009 04:32:57 +0000 (00:32 -0400)] 
Don't use la_ prefixes in non-libarchive code.

SVN-Revision: 1446

15 years agoRemove some unused code; fix the build on MinGW.
Tim Kientzle [Thu, 10 Sep 2009 04:06:22 +0000 (00:06 -0400)] 
Remove some unused code; fix the build on MinGW.

SVN-Revision: 1445

15 years agoFix hardlink support on MinGW by dynamically loading
Tim Kientzle [Wed, 9 Sep 2009 05:20:35 +0000 (01:20 -0400)] 
Fix hardlink support on MinGW by dynamically loading
the CreateHardLinkW function.  This fixes the hardlink
tests in libarchive_test on MinGW and VS9.

SVN-Revision: 1444

15 years agoMatch the shared library version from FreeBSD-CURRENT.
Tim Kientzle [Wed, 9 Sep 2009 01:52:18 +0000 (21:52 -0400)] 
Match the shared library version from FreeBSD-CURRENT.

SVN-Revision: 1443

15 years agoFrom FreeBSD r196961: Updates to iso9660 tests and improved comments
Tim Kientzle [Wed, 9 Sep 2009 01:50:49 +0000 (21:50 -0400)] 
From FreeBSD r196961: Updates to iso9660 tests and improved comments
explaining the iso9660 hardlink handling.

SVN-Revision: 1442

15 years agoReading zip archives failed if you only gave
Tim Kientzle [Tue, 8 Sep 2009 03:47:47 +0000 (23:47 -0400)] 
Reading zip archives failed if you only gave
archive_read_support_format_zip() because of a bug in how the
read-ahead logic handled read(0) requests.  Change the compat_zip test
to exercise this case and fix the underlying bug.

Thanks to:  Ed Schouten and Roman Divacky

SVN-Revision: 1441

15 years agoMicrosoft stat() is broken (always returns nlinks==1), so use GetFileInformationByHan...
Tim Kientzle [Mon, 7 Sep 2009 07:15:12 +0000 (03:15 -0400)] 
Microsoft stat() is broken (always returns nlinks==1), so use GetFileInformationByHandle() instead when testing hardlink operations.

SVN-Revision: 1440

15 years agoEnsure autogen.sh invokes autotools in same order,
Charles Wilson [Mon, 7 Sep 2009 00:17:35 +0000 (20:17 -0400)] 
Ensure autogen.sh invokes autotools in same order,
and with same arguments, as autoreconf.

SVN-Revision: 1439

15 years agoUse the link() emulation.
Tim Kientzle [Sun, 6 Sep 2009 18:49:10 +0000 (14:49 -0400)] 
Use the link() emulation.

SVN-Revision: 1438

16 years agoUse the new file assertions in this test. This doesn't actually fix anything, but...
Tim Kientzle [Sun, 6 Sep 2009 18:39:56 +0000 (14:39 -0400)] 
Use the new file assertions in this test.   This doesn't actually fix anything, but makes the failures a little more clear.

SVN-Revision: 1437

16 years agoRemove some unused code.
Tim Kientzle [Sun, 6 Sep 2009 18:15:11 +0000 (14:15 -0400)] 
Remove some unused code.

SVN-Revision: 1436

16 years agoWe have a symlink() emulation on Windows. Use it.
Tim Kientzle [Sun, 6 Sep 2009 18:14:09 +0000 (14:14 -0400)] 
We have a symlink() emulation on Windows.  Use it.

SVN-Revision: 1435

16 years agoBuild fix & slight increase in -v detail.
Tim Kientzle [Sun, 6 Sep 2009 18:13:36 +0000 (14:13 -0400)] 
Build fix & slight increase in -v detail.

SVN-Revision: 1434

16 years agoMore detail about this failure.
Tim Kientzle [Sun, 6 Sep 2009 18:12:41 +0000 (14:12 -0400)] 
More detail about this failure.

SVN-Revision: 1433

16 years agoFix Windows time tests.
Tim Kientzle [Sun, 6 Sep 2009 06:55:10 +0000 (02:55 -0400)] 
Fix Windows time tests.

SVN-Revision: 1432

16 years agoAdd new assertions to verify atime, birthtime, and mtime, both
Tim Kientzle [Sun, 6 Sep 2009 06:44:40 +0000 (02:44 -0400)] 
Add new assertions to verify atime, birthtime, and mtime, both
for exact values and "recent".  Sketch in support for FreeBSD
(including high-res), Windows (including high-res and birthtime),
and generic POSIX.

Inspired in part by the discovery that stat() on Windows shifts mtime
values depending on DST settings, so the old code that used stat()
breaks in weird ways on Windows.  GetFileTime() seems to not have this
problem, but using that requires that we not use stat().

SVN-Revision: 1431

16 years agoFix some assertions to use logprintf.
Tim Kientzle [Sun, 6 Sep 2009 04:26:46 +0000 (00:26 -0400)] 
Fix some assertions to use logprintf.

SVN-Revision: 1430

16 years agoUpdate FreeBSD Makefiles with new zisofs work.
Tim Kientzle [Sun, 6 Sep 2009 02:24:09 +0000 (22:24 -0400)] 
Update FreeBSD Makefiles with new zisofs work.

SVN-Revision: 1429

16 years agoInternal renaming in main.c requires matching changes to test.h.
Tim Kientzle [Sun, 6 Sep 2009 02:23:40 +0000 (22:23 -0400)] 
Internal renaming in main.c requires matching changes to test.h.

SVN-Revision: 1428

16 years agoExtensive reorg of main.c.
Tim Kientzle [Sun, 6 Sep 2009 02:22:56 +0000 (22:22 -0400)] 
Extensive reorg of main.c.

SVN-Revision: 1427

16 years agoFix my silly bug; I didn't consider that a uncompressed file
Michihiro NAKAJIMA [Sun, 6 Sep 2009 01:36:23 +0000 (21:36 -0400)] 
Fix my silly bug; I didn't consider that a uncompressed file
size was just 1 << log2_bs.

SVN-Revision: 1426

16 years agoDon't try to do exact mode checks on Windows, since
Tim Kientzle [Sat, 5 Sep 2009 06:10:52 +0000 (02:10 -0400)] 
Don't try to do exact mode checks on Windows, since
Windows filesystems don't match Posix permissions.

SVN-Revision: 1425

16 years agoFix cpio build on MinGW if CreateHardLinkW is unavailable.
Tim Kientzle [Sat, 5 Sep 2009 02:48:51 +0000 (22:48 -0400)] 
Fix cpio build on MinGW if CreateHardLinkW is unavailable.

SVN-Revision: 1424

16 years agoProbe for CreateHardLinkW and use it only if it's found.
Tim Kientzle [Sat, 5 Sep 2009 02:41:09 +0000 (22:41 -0400)] 
Probe for CreateHardLinkW and use it only if it's found.
(Needed for MinGW, which doesn't have new enough Windows
headers to compile calls to CreateHardLinkW.)

SVN-Revision: 1423

16 years agoRefine win32 api checks and usage.
Charles Wilson [Fri, 4 Sep 2009 06:11:54 +0000 (02:11 -0400)] 
Refine win32 api checks and usage.

* tar/bsdtar_windows.c: Remove WINVER, _WIN32_WINNT defines.
(wequallen): Remove unused function.
(canHardLinkW): Ditto.
* cpio/cpio_windows.c: Remove WINVER, _WIN32_WINNT defines.
* libarchive/archive_windows.c: Remove WINVER, _WIN32_WINNT defines.
* configure.ac [mingw|cygwin]: Add WINVER and _WIN32_WINNT defines
to config.h. Use new AC_CHECK_STDCALL_FUNC macro to check for
CreateHardLinkA symbol. Don't check for CreateSymbolicLink symbol.
* CMakeLists.txt [WIN32]: Add WINVER and _WIN32_WINNT defines to cache.
Check for CreateHardLinkA symbol, not CreateHardLink. Don't check for
CreateSymbolicLink.
* build/autoconf/check_stdcall_func.m4: New.

SVN-Revision: 1422

16 years agoDon't report a negative error code as a count of available bytes.
Tim Kientzle [Fri, 4 Sep 2009 04:21:50 +0000 (00:21 -0400)] 
Don't report a negative error code as a count of available bytes.
In this case, any error means there are zero bytes available.

SVN-Revision: 1420

16 years agoUse a binary heap instead of an unsorted list to track unvisited
Tim Kientzle [Fri, 4 Sep 2009 04:19:01 +0000 (00:19 -0400)] 
Use a binary heap instead of an unsorted list to track unvisited
entries in ISO images.  This makes "tar tvf" up to 10 times faster.

SVN-Revision: 1419

16 years agostat() has two arguments. Harumph.
Tim Kientzle [Thu, 3 Sep 2009 05:16:11 +0000 (01:16 -0400)] 
stat() has two arguments.  Harumph.

SVN-Revision: 1418

16 years agoRewrite stat() calls on Windows, but not struct stat references.
Tim Kientzle [Thu, 3 Sep 2009 05:12:13 +0000 (01:12 -0400)] 
Rewrite stat() calls on Windows, but not struct stat references.

SVN-Revision: 1417

16 years agoRename all externally visible shim functions to start with __la_ so
Tim Kientzle [Thu, 3 Sep 2009 04:37:38 +0000 (00:37 -0400)] 
Rename all externally visible shim functions to start with __la_ so
they don't conflict with "stat", etc, simulations that might be used
by various applications.

SVN-Revision: 1416

16 years agotar never calls link() or symlink() directly (only via libarchive
Tim Kientzle [Thu, 3 Sep 2009 04:18:27 +0000 (00:18 -0400)] 
tar never calls link() or symlink() directly (only via libarchive
services), so we don't need to simulate it here.

SVN-Revision: 1415

16 years agoAdd support for zisofs.
Michihiro NAKAJIMA [Thu, 3 Sep 2009 01:43:27 +0000 (21:43 -0400)] 
Add support for zisofs.

SVN-Revision: 1414

16 years agoRename la_* functions to __tar_ functions in bsdtar, to avoid
Tim Kientzle [Tue, 1 Sep 2009 01:38:27 +0000 (21:38 -0400)] 
Rename la_* functions to __tar_ functions in bsdtar, to avoid
link conflicts with the la_ functions in libarchive.

SVN-Revision: 1413

16 years agoChuck Wilson's fixes for Cygwin and MinGW builds.
Tim Kientzle [Tue, 1 Sep 2009 01:35:56 +0000 (21:35 -0400)] 
Chuck Wilson's fixes for Cygwin and MinGW builds.

SVN-Revision: 1412

16 years agoCreateHardLinkA is supported on Win2k and later, which is good
Tim Kientzle [Tue, 1 Sep 2009 01:34:07 +0000 (21:34 -0400)] 
CreateHardLinkA is supported on Win2k and later, which is good
enough for now.  (Plus, I was having inexplicable problems getting
the dynamic probe to work for this function.)

SVN-Revision: 1411

16 years agoWe don't use getopt() anymore, so don't need to check for optarg/optind.
Tim Kientzle [Tue, 1 Sep 2009 01:31:10 +0000 (21:31 -0400)] 
We don't use getopt() anymore, so don't need to check for optarg/optind.

SVN-Revision: 1410

16 years agoAnother fix, thanks to Daniel Mack.
Tim Kientzle [Mon, 31 Aug 2009 15:54:42 +0000 (11:54 -0400)] 
Another fix, thanks to Daniel Mack.

SVN-Revision: 1409

16 years agoIf the starting path isn't a pattern, then we don't feed it to FindFirstFile(), so...
Tim Kientzle [Mon, 31 Aug 2009 04:43:36 +0000 (00:43 -0400)] 
If the starting path isn't a pattern, then we don't feed it to FindFirstFile(), so we can't rely on FIND_FILE_DATA to determine whether it's a dir or not.  So, add support for GetFileInformationByHandle().  This needs to be extended so that we use this info to fill the archive_entry instead of Windows' anemic stat() data.

SVN-Revision: 1408

16 years agoUpdate test_copy style.
Tim Kientzle [Mon, 31 Aug 2009 04:07:44 +0000 (00:07 -0400)] 
Update test_copy style.
Fix bug where directory on command line got mis-reported.

SVN-Revision: 1407

16 years agoWe should only use FindFirstFile for the path provided on the command line if it...
Tim Kientzle [Mon, 31 Aug 2009 03:45:49 +0000 (23:45 -0400)] 
We should only use FindFirstFile for the path provided on the command line if it actually has wildcard characters in it.  Otherwise, we can use the same code used on Posix.

SVN-Revision: 1406

16 years agoDynamic lookup of CreateHardLinkA is failing for some reason; since CreateHardLinkA...
Tim Kientzle [Mon, 31 Aug 2009 03:44:31 +0000 (23:44 -0400)] 
Dynamic lookup of CreateHardLinkA is failing for some reason; since CreateHardLinkA is supported by Win2k and later, just use it directly.

SVN-Revision: 1405

16 years agoMinor VS9 fixes.
Tim Kientzle [Mon, 31 Aug 2009 02:36:16 +0000 (22:36 -0400)] 
Minor VS9 fixes.

SVN-Revision: 1404

16 years agoCopy symlink/hardlink support routines from cpio/test
Tim Kientzle [Mon, 31 Aug 2009 02:30:18 +0000 (22:30 -0400)] 
Copy symlink/hardlink support routines from cpio/test

SVN-Revision: 1403

16 years agoNew tree.c/tree.h compiles and seems minimally functional on
Tim Kientzle [Sun, 30 Aug 2009 23:31:25 +0000 (19:31 -0400)] 
New tree.c/tree.h compiles and seems minimally functional on
both Windows and Posix platforms.  More testing is needed, of course.

SVN-Revision: 1402

16 years agoMerge r1399 from release/2.7, after properly adjusting it to the new
Tim Kientzle [Sat, 29 Aug 2009 17:39:06 +0000 (13:39 -0400)] 
Merge r1399 from release/2.7, after properly adjusting it to the new
test conventions.

SVN-Revision: 1400

16 years agoThis test requires a certain umask() setting but doesn't actually
Tim Kientzle [Sat, 29 Aug 2009 17:37:21 +0000 (13:37 -0400)] 
This test requires a certain umask() setting but doesn't actually
set it.  Since the immediately preceding test does set umask(), this
only shows up if you run this test by itself.  (Or at least first.)

SVN-Revision: 1399

16 years agoMinor updates to minitar: Support compress on write, add full
Tim Kientzle [Sat, 29 Aug 2009 04:33:18 +0000 (00:33 -0400)] 
Minor updates to minitar: Support compress on write, add full
user/group lookups by default and an option to suppress them.  With
all of the suppression macros, this compiles to about the same size as
does examples/untar.c.

SVN-Revision: 1398

16 years agoMerge r1396 from libarchive/trunk: significant rework of examples/untar.c,
Tim Kientzle [Sat, 29 Aug 2009 04:08:13 +0000 (00:08 -0400)] 
Merge r1396 from libarchive/trunk: significant rework of examples/untar.c,
the minimal libarchive-based untar.c program.  (Not to be confused with
contrib/untar.c which is an even more minimal untar program that doesn't
use libarchive.  I have got to rename one of them someday....)

SVN-Revision: 1397

16 years agoFix a handful of bugs in untar.c and significantly extend the opening
Tim Kientzle [Sat, 29 Aug 2009 03:42:55 +0000 (23:42 -0400)] 
Fix a handful of bugs in untar.c and significantly extend the opening
commentary, which hasn't really been updated since 2006 or so.  In
particular, I went back and rechecked the sizes on modern FreeBSD and
found that things have bloated quite a bit: statically compiled,
untar.c is now about 25% larger than hello.c, where it used to be
almost 25% smaller.

SVN-Revision: 1396

16 years agoReverse-merge r1394 from release/2.7 branch: Fix sparse
Tim Kientzle [Thu, 27 Aug 2009 04:25:42 +0000 (00:25 -0400)] 
Reverse-merge r1394 from release/2.7 branch:  Fix sparse
file handling on systems that lack ftruncate().

SVN-Revision: 1395

16 years agoIf ftruncate() isn't available, we fall back to use
Tim Kientzle [Thu, 27 Aug 2009 04:24:19 +0000 (00:24 -0400)] 
If ftruncate() isn't available, we fall back to use
lseek()/write() to extend a file.  Unfortunately, that
code was broken, as would be readily apparent to anyone who
ran the test suite on a platform that lacked ftruncate().

Thanks to: Daniel Mack for asking about this

SVN-Revision: 1394

16 years agoOoops. Accidentally committed a local change to make VS9 happy with
Tim Kientzle [Wed, 26 Aug 2009 05:12:06 +0000 (01:12 -0400)] 
Ooops.  Accidentally committed a local change to make VS9 happy with
the assertion failure messages.

SVN-Revision: 1393

16 years agoSVN-Revision: 1392
Tim Kientzle [Wed, 26 Aug 2009 04:40:55 +0000 (00:40 -0400)] 
SVN-Revision: 1392

16 years agoUpdate to match changes to line_reader() and include_from_file() to
Tim Kientzle [Sun, 23 Aug 2009 05:08:52 +0000 (01:08 -0400)] 
Update to match changes to line_reader() and include_from_file() to
properly handle varying line termination.

SVN-Revision: 1390

16 years agoFix FreeBSD build.
Tim Kientzle [Sun, 23 Aug 2009 05:02:34 +0000 (01:02 -0400)] 
Fix FreeBSD build.

SVN-Revision: 1388

16 years agobsdtar_test can't be run without bsdtar.
Tim Kientzle [Sun, 23 Aug 2009 05:01:28 +0000 (01:01 -0400)] 
bsdtar_test can't be run without bsdtar.

SVN-Revision: 1387

16 years agoTest a file with a single-character name.
Tim Kientzle [Sun, 23 Aug 2009 05:01:10 +0000 (01:01 -0400)] 
Test a file with a single-character name.

SVN-Revision: 1386

16 years agoTest various line separators in -T input, including CRLF, NL, and null.
Tim Kientzle [Sun, 23 Aug 2009 04:54:32 +0000 (00:54 -0400)] 
Test various line separators in -T input, including CRLF, NL, and null.
Fix tar to pass the test.

SVN-Revision: 1385

16 years agoTest -T with varying end-of-line conventions, including --null -T with
Tim Kientzle [Sun, 23 Aug 2009 04:16:58 +0000 (00:16 -0400)] 
Test -T with varying end-of-line conventions, including --null -T with
a filename that includes a NL character.  Fix the line parser in
util.c to correctly handle these cases.

SVN-Revision: 1384

16 years agoFix FreeBSD build.
Tim Kientzle [Sun, 23 Aug 2009 04:15:29 +0000 (00:15 -0400)] 
Fix FreeBSD build.

SVN-Revision: 1383

16 years agobsdcpio must be built before bsdcpio_test can be run.
Tim Kientzle [Sun, 23 Aug 2009 04:01:47 +0000 (00:01 -0400)] 
bsdcpio must be built before bsdcpio_test can be run.

SVN-Revision: 1382

16 years agoLocate CreateHardLink and CreateSymbolicLink dynamically, so as to not get runtime...
Tim Kientzle [Sun, 23 Aug 2009 03:36:17 +0000 (23:36 -0400)] 
Locate CreateHardLink and CreateSymbolicLink dynamically, so as to not get runtime startup errors on XP or earlier, which lack these functions.

SVN-Revision: 1381

16 years agoRewrite a lot of the test assertion framework.
Tim Kientzle [Sun, 23 Aug 2009 03:18:13 +0000 (23:18 -0400)] 
Rewrite a lot of the test assertion framework.
Mostly, this was done just to simplify the code, but it also brings
the file/line reporting into one place where it can be adjusted to
suit different environments (e.g., Visual Studio expects "file.c(89):
message" instead of "file.c:89: message").

SVN-Revision: 1380

16 years agoNew cmake test target: make run_all_tests
Tim Kientzle [Thu, 20 Aug 2009 02:46:31 +0000 (22:46 -0400)] 
New cmake test target: make run_all_tests
This is still experimental and subject to change.

SVN-Revision: 1379

16 years agomemset() is sufficiently ubiquitous that I don't see a need to test for it.
Tim Kientzle [Sun, 16 Aug 2009 02:20:37 +0000 (22:20 -0400)] 
memset() is sufficiently ubiquitous that I don't see a need to test for it.

SVN-Revision: 1378

16 years agoExperimenting with a new way to run tests from cmake.
Tim Kientzle [Sun, 16 Aug 2009 02:10:09 +0000 (22:10 -0400)] 
Experimenting with a new way to run tests from cmake.

SVN-Revision: 1377

16 years agoIssue 36: Fix acl probing on Linux.
Tim Kientzle [Sun, 16 Aug 2009 00:21:30 +0000 (20:21 -0400)] 
Issue 36: Fix acl probing on Linux.

I used the additional library checks directly from the patch provided.
Probing the functions properly proved a bit more challenging because
the indicated headers aren't the same on all systems.  Instead, I
generalized the existing header tests to build up a list ${INCLUDE}
of all headers present on the local system and used that.

SVN-Revision: 1376

16 years agoMinor corrections to windows run-time function detection.
Tim Kientzle [Wed, 12 Aug 2009 03:52:17 +0000 (23:52 -0400)] 
Minor corrections to windows run-time function detection.

SVN-Revision: 1365

16 years agosvn:ignore updates
Tim Kientzle [Wed, 12 Aug 2009 01:48:36 +0000 (21:48 -0400)] 
svn:ignore updates

SVN-Revision: 1364

16 years agoEncourage people not to use libarchive internal headers.
Tim Kientzle [Wed, 12 Aug 2009 01:45:49 +0000 (21:45 -0400)] 
Encourage people not to use libarchive internal headers.

SVN-Revision: 1363

16 years agoHard/symlinks aren't support on Windows XP; fail gracefully.
Tim Kientzle [Wed, 12 Aug 2009 01:44:20 +0000 (21:44 -0400)] 
Hard/symlinks aren't support on Windows XP; fail gracefully.

SVN-Revision: 1362

16 years agoStyle: fix trailing whitespace.
Tim Kientzle [Wed, 12 Aug 2009 01:43:31 +0000 (21:43 -0400)] 
Style: fix trailing whitespace.

SVN-Revision: 1361

16 years agoUse Cmake's target property "LOCATION" to locate bsdtar exe.
Tim Kientzle [Wed, 12 Aug 2009 01:42:49 +0000 (21:42 -0400)] 
Use Cmake's target property "LOCATION" to locate bsdtar exe.

SVN-Revision: 1360

16 years agoUpdate comments.
Tim Kientzle [Wed, 12 Aug 2009 01:42:04 +0000 (21:42 -0400)] 
Update comments.

SVN-Revision: 1359

16 years agoProbe acl_get_link and acl_get_link_np so that ACLs are properly
Tim Kientzle [Tue, 11 Aug 2009 15:55:52 +0000 (11:55 -0400)] 
Probe acl_get_link and acl_get_link_np so that ACLs are properly
read from symlinks.  Without this, link-related tests fail for cpio
on FreeBSD.  (Same as r1357, but for autoconf-generated builds.)

SVN-Revision: 1358

16 years agoFix cpio symlink tests on FreeBSD; the link-sensitive ACL routines
Tim Kientzle [Tue, 11 Aug 2009 15:14:32 +0000 (11:14 -0400)] 
Fix cpio symlink tests on FreeBSD; the link-sensitive ACL routines
weren't being properly configured, which was causing the regular
Posix mode bits to get overwritten.

SVN-Revision: 1357

16 years agoFix the extattr.h test; CHECK_INCLUDE_FILES() expects a
Tim Kientzle [Mon, 10 Aug 2009 03:49:32 +0000 (23:49 -0400)] 
Fix the extattr.h test; CHECK_INCLUDE_FILES() expects a
semicolon-separated list of headers.

SVN-Revision: 1356

16 years agoComment the libarchive CMakeLists.txt file
Tim Kientzle [Mon, 10 Aug 2009 03:39:32 +0000 (23:39 -0400)] 
Comment the libarchive CMakeLists.txt file

SVN-Revision: 1355

16 years agoDon't specify -q when running bsdcpio_test; it just prevents useful information from...
Tim Kientzle [Mon, 10 Aug 2009 03:35:08 +0000 (23:35 -0400)] 
Don't specify -q when running bsdcpio_test; it just prevents useful information from getting into the log files.

SVN-Revision: 1354

16 years agoUse LOCATION property to locate executable for testing purposes. It seems to actuall...
Tim Kientzle [Mon, 10 Aug 2009 03:34:27 +0000 (23:34 -0400)] 
Use LOCATION property to locate executable for testing purposes.  It seems to actually work.

SVN-Revision: 1353

16 years agoPrefer the standard CHECK_INCLUDE_FILE() and CHECK_INCLUDE_FILES(),
Tim Kientzle [Fri, 7 Aug 2009 04:42:18 +0000 (00:42 -0400)] 
Prefer the standard CHECK_INCLUDE_FILE() and CHECK_INCLUDE_FILES(),
refactor some of the header checks that rely on other headers.

SVN-Revision: 1352