]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
17 years agoRemove unused dir.
Tim Kientzle [Sun, 22 Mar 2009 06:23:26 +0000 (02:23 -0400)] 
Remove unused dir.

SVN-Revision: 831

17 years agoAdd PROJECTS to the distribution, sort the file list.
Tim Kientzle [Sun, 22 Mar 2009 06:12:26 +0000 (02:12 -0400)] 
Add PROJECTS to the distribution, sort the file list.

SVN-Revision: 830

17 years agoAdd a check for wcrtomb() and control the FreeBSD extattr function
Tim Kientzle [Sun, 22 Mar 2009 06:03:22 +0000 (02:03 -0400)] 
Add a check for wcrtomb() and control the FreeBSD extattr function
tests by --enable-xattr as well.

SVN-Revision: 829

17 years agoFiles that are used by the autoconf build system belong in
Tim Kientzle [Sun, 22 Mar 2009 05:58:07 +0000 (01:58 -0400)] 
Files that are used by the autoconf build system belong in
the build/autoconf dir.  We may need to further split that
out to separate the files that get generated by autoconf/automake/etc
from the files that are provided by libarchive.

SVN-Revision: 828

17 years agoIssue 15, part 14. Build system
Charles Wilson [Sat, 21 Mar 2009 14:25:50 +0000 (10:25 -0400)] 
Issue 15, part 14. Build system
  build/m4/la_syslibsearchpath.m4: New.  Allows to automatically
      determine where binmode.o is located, even on cross builds (hopefully).
  configure.ac: specify AC_CONFIG_MACRO_DIR, AC_CANONICAL_HOST, and
      AC_LIBTOOL_WIN32_DLL. Add new AM_CONDITIONALs INC_WINDOWS_FILES and
      INC_CYGWIN_FILES. Use new macro LA_SYS_LIB_SEARCH_PATH to set
      new AC_SUBST, PROG_LDADD_EXTRA, to <some path>/binmode.o on cygwin.
  Makefile.am: Specify ACLOCAL_AMFLAGS. Use INC_WINDOWS_FILES and
      INC_CYGWIN_FILES where appropriate. Update all *_EXTRA_DIST variables
      with new files. Add -DLIBARCHIVE_STATIC to all *_test_CPPFLAGS. Add
      or update existing ${APP}_LDADD to specify @PROG_LDADD_EXTRA@ (this
      enables to link apps with binmode.o on cygwin).

Works on cygwin (ac-2.63, am-1.10.1, libtool-2.2.7a). Passes all tests.
Works on linux (ac-2.61, am-1.10, libtool-1.5.22). Passes all tests.

 Makefile.am                     |   75 +++++++++++++++++++++++++++++++----
 build/m4/la_syslibsearchpath.m4 |   84 ++++++++++++++++++++++++++++++++++++++++
 configure.ac                    |   34 ++++++++++++++++

SVN-Revision: 827

17 years agoAdd support both static and dynamic build of bsdtar and bsdcpio
Michihiro NAKAJIMA [Sat, 21 Mar 2009 02:33:49 +0000 (22:33 -0400)] 
Add support both static and dynamic build of bsdtar and bsdcpio
to the cmake build process except Windows.

SVN-Revision: 826

17 years agoOn Windows, build bsdcpio by default.
Michihiro NAKAJIMA [Fri, 20 Mar 2009 21:41:16 +0000 (17:41 -0400)] 
On Windows, build bsdcpio by default.

SVN-Revision: 825

17 years agoTesting: test_pathmatch.c now has 100% test coverage of pathmatch.c
Tim Kientzle [Fri, 20 Mar 2009 19:21:45 +0000 (15:21 -0400)] 
Testing:  test_pathmatch.c now has 100% test coverage of pathmatch.c
Allow '$' to force anchor at end iff PATHMATCH_NO_ANCHOR_END is in flags.
Fix backslash escaping so that patterns such as "\\/./" or "/\\./" match
an explicit "/./" but do not match plain "/", even though "/./" does
ordinarily match "/".

I think this is finally sufficient to match my long-standing desire
to be able to extract "./foo/" by just asking for "foo".
There's still an open question whether this can be extended to handle
Windows-style \ path separators without causing conflicts with
the use of \ as a quote character.  I don't think it can.

SVN-Revision: 824

17 years agoSplit a CMakeLists.txt into each subdirectory, and remove
Michihiro NAKAJIMA [Fri, 20 Mar 2009 12:57:14 +0000 (08:57 -0400)] 
Split a CMakeLists.txt into each subdirectory, and remove
useless '#include LIST_H'. It was used for out-of-source build
with the previous CMakeLists.txt.

SVN-Revision: 823

17 years agoAdd test_entry_strmode.c into CMakeLists.txt.
Michihiro NAKAJIMA [Fri, 20 Mar 2009 10:03:12 +0000 (06:03 -0400)] 
Add test_entry_strmode.c into CMakeLists.txt.
It's forgotten for a long time.

SVN-Revision: 822

17 years agoCatch up with r819 for cmake.
Michihiro NAKAJIMA [Fri, 20 Mar 2009 09:14:13 +0000 (05:14 -0400)] 
Catch up with r819 for cmake.

SVN-Revision: 821

17 years agoIssue 15, part 13. cygwin test failures
Charles Wilson [Fri, 20 Mar 2009 07:52:34 +0000 (03:52 -0400)] 
Issue 15, part 13. cygwin test failures
  cpio/test/test_owner_parse.c: Attempt to work around lack
     of 'root' account. May need to revisit.
  libarchive/archive_write_disk.c: For cygwin, go ahead and try
     to chown if requested; don't assume failure based on uid/gid.
  libarchive/test/test_read_disk.c: For cygwin, don't attempt
     to verify "standare" uname/gname lookup.

SVN-Revision: 820

17 years agoIssue 15, part 12. wchar_t is only 16 bits
Charles Wilson [Fri, 20 Mar 2009 07:14:49 +0000 (03:14 -0400)] 
Issue 15, part 12. wchar_t is only 16 bits
   Check the size in configure.ac/CMakeLists.txt,
   and react as needed in libarchive/archive_string.c.

SVN-Revision: 819

17 years agoIssue 15, part 11. bsdtar help message.
Charles Wilson [Fri, 20 Mar 2009 06:13:37 +0000 (02:13 -0400)] 
Issue 15, part 11. bsdtar help message.
  Document xz and lzma compression as well as gzip and bzip2.

SVN-Revision: 818

17 years agoIssue 15, part 10. __FBSDID macro
Charles Wilson [Fri, 20 Mar 2009 06:10:07 +0000 (02:10 -0400)] 
Issue 15, part 10. __FBSDID macro
   Is defined on the non-FreeBSD cygwin platform.
   This is because its libc is based on newlib, which borrows
   a lot of FreeBSD code unchanged. So, can't unconditionally
   define this macro but must guard it.

SVN-Revision: 817

17 years agoIssue 15, part 9. WINVER macro
Charles Wilson [Fri, 20 Mar 2009 06:01:23 +0000 (02:01 -0400)] 
Issue 15, part 9. WINVER macro
  When compiling with the w32api headers (used by mingw and cygwin)
  some symbols are not brought into scope by _WIN32_WINNT alone, but
  also require WINVER. Also, in *_cygwin.c files, change 0x500 to
  0x0500, for consistency with *_windows.c ones.

SVN-Revision: 816

17 years agoIssue 15, part 8. Headers and #includes...
Charles Wilson [Fri, 20 Mar 2009 05:47:49 +0000 (01:47 -0400)] 
Issue 15, part 8. Headers and #includes...
  cpio/test/test.h: remove now-useless #else branch
  cpio/cpio.c: ensure <time.h> and <sys/time.h> are included
     (fixes compile failure on cygwin)
  libarchive/archive_write_disk.c: change order of #includes
     (sys/xattr must preceded attr/xattr on linux, or compile fails)

SVN-Revision: 815

17 years agoMark several nonsensical combinations of options as errors.
Tim Kientzle [Thu, 19 Mar 2009 23:27:45 +0000 (19:27 -0400)] 
Mark several nonsensical combinations of options as errors.
Permit bare -t as a synonym for -it.

SVN-Revision: 814

17 years agoAdd support for -n option from GNU cpio.
Tim Kientzle [Thu, 19 Mar 2009 23:09:01 +0000 (19:09 -0400)] 
Add support for -n option from GNU cpio.

SVN-Revision: 813

17 years agoImprove cmake detecting a function on linux.
Michihiro NAKAJIMA [Thu, 19 Mar 2009 22:21:35 +0000 (18:21 -0400)] 
Improve cmake detecting a function on linux.
The GNU C library defines stub functions(chflags, fchflags..),
and so cmake detecting the function process found out that
stub function. This commit avoid detecting the stub function.

SVN-Revision: 812

17 years agoEliminate failing some tests at bsdcpio_test when the platform
Michihiro NAKAJIMA [Thu, 19 Mar 2009 19:24:31 +0000 (15:24 -0400)] 
Eliminate failing some tests at bsdcpio_test when the platform
doesn't have a compression library such as gzip nor bzip2.

SVN-Revision: 811

17 years agoAdd checking if _FILE_OFFSET_BITS macro needed for large files.
Michihiro NAKAJIMA [Thu, 19 Mar 2009 09:28:53 +0000 (05:28 -0400)] 
Add checking if _FILE_OFFSET_BITS macro needed for large files.

SVN-Revision: 810

17 years agoCorrect regex to get right version.
Michihiro NAKAJIMA [Thu, 19 Mar 2009 06:03:36 +0000 (02:03 -0400)] 
Correct regex to get right version.

SVN-Revision: 809

17 years agoEliminate building error on Ubuntu.
Michihiro NAKAJIMA [Thu, 19 Mar 2009 05:40:58 +0000 (01:40 -0400)] 
Eliminate building error on Ubuntu.

SVN-Revision: 808

17 years agoDocument the write-side options interface.
Tim Kientzle [Thu, 19 Mar 2009 04:01:24 +0000 (00:01 -0400)] 
Document the write-side options interface.

SVN-Revision: 807

17 years agoI misspelled ".Cm" <sigh>
Tim Kientzle [Thu, 19 Mar 2009 04:01:02 +0000 (00:01 -0400)] 
I misspelled ".Cm" <sigh>

SVN-Revision: 806

17 years agoBack out r786 except cheking __CYGWIN__ macro.
Michihiro NAKAJIMA [Thu, 19 Mar 2009 04:00:51 +0000 (00:00 -0400)] 
Back out r786 except cheking __CYGWIN__ macro.

SVN-Revision: 805

17 years agoDocument the read side of the options framework.
Tim Kientzle [Thu, 19 Mar 2009 03:39:51 +0000 (23:39 -0400)] 
Document the read side of the options framework.

SVN-Revision: 804

17 years agoIssue 15, part 7. Add --same-owner option to bsdtar.
Charles Wilson [Thu, 19 Mar 2009 03:02:36 +0000 (23:02 -0400)] 
Issue 15, part 7. Add --same-owner option to bsdtar.

SVN-Revision: 803

17 years agoIssue 15, part 6. Fix test failure on cygwin-1.7.x
Charles Wilson [Thu, 19 Mar 2009 02:54:30 +0000 (22:54 -0400)] 
Issue 15, part 6. Fix test failure on cygwin-1.7.x
  In cpio/test/tests.h: new #define to disable certain
  tests on cygwin. POSIX does not require that the .nlinks
  field be accurate for directories, and as an optimization
  newer cygwin does not even try to ensure its accuracy.
  Therefore, it is not a failure if wrong; cpio tests should
  not verify its value -- at least on cygwin.
  cpio/test/test_format_newc.c: Use new #define to skip
     .nlinks test.
  cpio/test/test_option_c.c: ditto.

SVN-Revision: 802

17 years agoIssue 15, part 5. New files for cygwin/cpio
Charles Wilson [Thu, 19 Mar 2009 02:43:53 +0000 (22:43 -0400)] 
Issue 15, part 5. New files for cygwin/cpio
  Added cpio/cpio_cygwin.[c|h] which are simply copies
  of the relevant portions of cpio/cpio_windows.[c|h]
  Modified cpio/cpio_platform.h to #include as needed.
  Modified cpio/cpio.c to call new bsdcpio_is_privileged()
  function on cygwin also.

SVN-Revision: 801

17 years agoIssue 15, part 4. New files for cygwin/bsdtar
Charles Wilson [Thu, 19 Mar 2009 02:36:24 +0000 (22:36 -0400)] 
Issue 15, part 4. New files for cygwin/bsdtar
  Added tar/bsdtar_cygwin.[c|h] which are simply copies
  of the relevant portions of tar/bsdtar_windows.[c|h]
  Modified tar/bsdtar_platform.h to #include as needed.

SVN-Revision: 800

17 years agoUpdate the comments around the archive_write_disk functions.
Tim Kientzle [Thu, 19 Mar 2009 01:12:05 +0000 (21:12 -0400)] 
Update the comments around the archive_write_disk functions.

SVN-Revision: 799

17 years agoOn the cmake build process, it is better to use FindOpenSSL module
Michihiro NAKAJIMA [Wed, 18 Mar 2009 22:05:18 +0000 (18:05 -0400)] 
On the cmake build process, it is better to use FindOpenSSL module
to find out OpenSSL library.

SVN-Revision: 798

17 years agoAvoid building error when target system is Win64.
Michihiro NAKAJIMA [Wed, 18 Mar 2009 21:19:52 +0000 (17:19 -0400)] 
Avoid building error when target system is Win64.

SVN-Revision: 797

17 years agoMinor fix. correct comment about cmake on Windows.
Michihiro NAKAJIMA [Wed, 18 Mar 2009 19:12:31 +0000 (15:12 -0400)] 
Minor fix. correct comment about cmake on Windows.

SVN-Revision: 796

17 years agoMinor fix. correct return value type.
Michihiro NAKAJIMA [Wed, 18 Mar 2009 18:59:10 +0000 (14:59 -0400)] 
Minor fix. correct return value type.

SVN-Revision: 795

17 years agoOn Windows, fix build error.
Michihiro NAKAJIMA [Wed, 18 Mar 2009 18:51:20 +0000 (14:51 -0400)] 
On Windows, fix build error.

SVN-Revision: 794

17 years agoComplete test coverage of archive_entry_strmode().
Tim Kientzle [Wed, 18 Mar 2009 11:10:33 +0000 (07:10 -0400)] 
Complete test coverage of archive_entry_strmode().

SVN-Revision: 793

17 years agoCoverage testing revealed a few under-tested areas of archive_entry
Tim Kientzle [Wed, 18 Mar 2009 10:51:47 +0000 (06:51 -0400)] 
Coverage testing revealed a few under-tested areas of archive_entry
which in turn uncovered a bug in archive_entry (sourcepath not being
cloned).

SVN-Revision: 792

17 years agoParse the status code that comes back from waitpid() at close time.
Tim Kientzle [Wed, 18 Mar 2009 09:57:44 +0000 (05:57 -0400)] 
Parse the status code that comes back from waitpid() at close time.

SVN-Revision: 791

17 years agoReport errors from archive_read_close().
Tim Kientzle [Wed, 18 Mar 2009 09:56:36 +0000 (05:56 -0400)] 
Report errors from archive_read_close().

SVN-Revision: 790

17 years agoIssue 15, part 3. Mechanical conversion of #defines, cpio/
Charles Wilson [Wed, 18 Mar 2009 04:11:40 +0000 (00:11 -0400)] 
Issue 15, part 3. Mechanical conversion of #defines, cpio/
   #ifdef _WIN32   --> #if defined(_WIN32) && !defined(__CYGWIN__)
   #ifndef _WIN32  --> #if !defined(_WIN32) || defined(__CYGWIN__)
Exceptions to the general rule:
   cpio/test/main.c: some additional comments
   cpio/cpio.c: some additional comments

SVN-Revision: 789

17 years agoIssue 15, part 2. Mechanical conversion of #defines, tar/
Charles Wilson [Wed, 18 Mar 2009 03:53:23 +0000 (23:53 -0400)] 
Issue 15, part 2. Mechanical conversion of #defines, tar/
   #ifdef _WIN32   --> #if defined(_WIN32) && !defined(__CYGWIN__)
   #ifndef _WIN32  --> #if !defined(_WIN32) || defined(__CYGWIN__)
Exceptions to the general rule:
   tar/test/main.c: some additional comments
   tar/bsdtar.c: some additional comments

SVN-Revision: 788

17 years agoIssue 15, part 1. Mechanical conversion of #defines, libarchive/
Charles Wilson [Wed, 18 Mar 2009 03:43:12 +0000 (23:43 -0400)] 
Issue 15, part 1. Mechanical conversion of #defines, libarchive/
   #ifdef _WIN32   --> #if defined(_WIN32) && !defined(__CYGWIN__)
   #ifndef _WIN32  --> #if !defined(_WIN32) || defined(__CYGWIN__)
Exceptions to the general rule:
   libarchive/archive.h: we want declspec for both
   libarchive/archive_entry.h: ditto
   libarchive/archive_write_disk.c: we want to fix backslashs,
     and to use cleanup_pathname_win on both.

SVN-Revision: 787

17 years agoMove _WIN32_WINNT macro to build/cmake/config.h.in
Michihiro NAKAJIMA [Wed, 18 Mar 2009 01:54:17 +0000 (21:54 -0400)] 
Move _WIN32_WINNT macro to build/cmake/config.h.in

SVN-Revision: 786

17 years agoOur installation instructions assume you already have a tar
Tim Kientzle [Tue, 17 Mar 2009 22:51:42 +0000 (18:51 -0400)] 
Our installation instructions assume you already have a tar
program.  This is a minimalist implementation that should
allow people to bootstrap the full libarchive distribution.

SVN-Revision: 780

17 years agoOn Windows, previous commit occurs link error.
Michihiro NAKAJIMA [Tue, 17 Mar 2009 22:19:39 +0000 (18:19 -0400)] 
On Windows, previous commit occurs link error.
This commit just avoid it.

SVN-Revision: 779

17 years agoOn the cmake build process, bsdtar and bsdcpio
Michihiro NAKAJIMA [Tue, 17 Mar 2009 21:43:52 +0000 (17:43 -0400)] 
On the cmake build process, bsdtar and bsdcpio
use static library of libarchive because
configure build process does it.

SVN-Revision: 778

17 years agoThe cmake build process makes static library as configure does.
Michihiro NAKAJIMA [Tue, 17 Mar 2009 20:31:21 +0000 (16:31 -0400)] 
The cmake build process makes static library as configure does.

SVN-Revision: 777

17 years agoAdd support shared library number to the cmake build.
Michihiro NAKAJIMA [Tue, 17 Mar 2009 19:53:31 +0000 (15:53 -0400)] 
Add support shared library number to the cmake build.

SVN-Revision: 776

17 years agoInitial support install target for the cmake build.
Michihiro NAKAJIMA [Mon, 16 Mar 2009 19:23:29 +0000 (15:23 -0400)] 
Initial support install target for the cmake build.

SVN-Revision: 775

17 years agoOn Windows, libarchive has already supported hardlink.
Michihiro NAKAJIMA [Mon, 16 Mar 2009 18:53:36 +0000 (14:53 -0400)] 
On Windows, libarchive has already supported hardlink.

SVN-Revision: 774

17 years agoOn Windows, skip test_owner_parse. Windows cannot handle uid/gid as
Michihiro NAKAJIMA [Mon, 16 Mar 2009 12:47:21 +0000 (08:47 -0400)] 
On Windows, skip test_owner_parse. Windows cannot handle uid/gid as
UNIX like system. We need to improve it.

Now all bsdcpio tests passed.
Results are:
0 of 22 tests reported failures
 Total of 675 assertions checked.
 Total of 0 assertions failed.
 Total of 1 assertions skipped.

SVN-Revision: 773

17 years agoNL macro is no longer needed.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 14:04:49 +0000 (10:04 -0400)] 
NL macro is no longer needed.

SVN-Revision: 772

17 years agoOn Windows, pass test_passthrough_reverse in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 13:51:44 +0000 (09:51 -0400)] 
On Windows, pass test_passthrough_reverse in bsdcpio_test.

SVN-Revision: 771

17 years agoOn Windows, pass test_passthrough_dotdot in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 13:42:22 +0000 (09:42 -0400)] 
On Windows, pass test_passthrough_dotdot in bsdcpio_test.

SVN-Revision: 770

17 years agoOn Windows, pass test_option_y in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 12:59:06 +0000 (08:59 -0400)] 
On Windows, pass test_option_y in bsdcpio_test.

SVN-Revision: 769

17 years agoOn Windows, pass test_option_version in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 12:55:21 +0000 (08:55 -0400)] 
On Windows, pass test_option_version in bsdcpio_test.

SVN-Revision: 768

17 years agoOn Windows, pass test_option_t in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 12:46:17 +0000 (08:46 -0400)] 
On Windows, pass test_option_t in bsdcpio_test.

SVN-Revision: 767

17 years agoOn Windows, pass test_option_m in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 12:07:16 +0000 (08:07 -0400)] 
On Windows, pass test_option_m in bsdcpio_test.

SVN-Revision: 766

17 years agoOn Windows, pass test_option_f in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 12:05:15 +0000 (08:05 -0400)] 
On Windows, pass test_option_f in bsdcpio_test.

SVN-Revision: 765

17 years agoOn Windows, pass test_option_d in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 11:21:05 +0000 (07:21 -0400)] 
On Windows, pass test_option_d in bsdcpio_test.

SVN-Revision: 764

17 years agoAdd assertFileTextContents to bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 11:05:58 +0000 (07:05 -0400)] 
Add assertFileTextContents to bsdcpio_test.
It asserts the contents of a text file and pass over
different new line characters.

SVN-Revision: 763

17 years agoReassign option -J to xz compression(--xz) at bsdtar.
Michihiro NAKAJIMA [Thu, 12 Mar 2009 21:27:42 +0000 (17:27 -0400)] 
Reassign option -J to xz compression(--xz) at bsdtar.
gtar 1.22 has been changed it.

SVN-Revision: 762

17 years agoNew documentation...
Tim Kientzle [Wed, 11 Mar 2009 21:54:33 +0000 (17:54 -0400)] 
New documentation...

SVN-Revision: 761

17 years agoOn Windows, pass test_option_c in bsdcpio_test.
Michihiro NAKAJIMA [Wed, 11 Mar 2009 09:41:51 +0000 (05:41 -0400)] 
On Windows, pass test_option_c in bsdcpio_test.

SVN-Revision: 760

17 years agoOn Windows, pass test_option_a in bsdcpio_test.
Michihiro NAKAJIMA [Wed, 11 Mar 2009 09:38:00 +0000 (05:38 -0400)] 
On Windows, pass test_option_a in bsdcpio_test.
- Tweak cpio; close a file descriptor to restore access times
  before we call lutimes/utimes function.

SVN-Revision: 759

17 years agoIf a platform doesn't have fchdir function, it is unnecessary
Michihiro NAKAJIMA [Tue, 10 Mar 2009 14:19:33 +0000 (10:19 -0400)] 
If a platform doesn't have fchdir function, it is unnecessary
that calling open(".", ..) and related handling in tar/tree.c.

Suggested by Joerg Sonnenberger.

SVN-Revision: 758

17 years agoCheck _WIN32 instead of __timeval when we use struct __timeval.
Michihiro NAKAJIMA [Tue, 10 Mar 2009 11:41:16 +0000 (07:41 -0400)] 
Check _WIN32 instead of __timeval when we use struct __timeval.
__timeval is defined in archive_windows.h and we use it for
Windows only, so __timeval is not expected for using on other
platform.

SVN-Revision: 757

17 years agoFirst cut at archive_read_disk documentation.
Tim Kientzle [Tue, 10 Mar 2009 06:00:55 +0000 (02:00 -0400)] 
First cut at archive_read_disk documentation.

SVN-Revision: 756

17 years agoTweak the "other platforms" installation instructions; this
Tim Kientzle [Tue, 10 Mar 2009 04:29:31 +0000 (00:29 -0400)] 
Tweak the "other platforms" installation instructions; this
needs lots more help.

SVN-Revision: 755

17 years agoMinor README updates.
Tim Kientzle [Tue, 10 Mar 2009 00:21:14 +0000 (20:21 -0400)] 
Minor README updates.

SVN-Revision: 754

17 years agoConvert a couple of multiplications into additions.
Tim Kientzle [Mon, 9 Mar 2009 21:28:14 +0000 (17:28 -0400)] 
Convert a couple of multiplications into additions.

SVN-Revision: 752

17 years agoAs suggested by Joerg Sonnenberger, change archive_strncat() to
Tim Kientzle [Mon, 9 Mar 2009 21:22:32 +0000 (17:22 -0400)] 
As suggested by Joerg Sonnenberger, change archive_strncat() to
take a void * source instead of char *.  In particular, this should
reduce the number of gratuitous casts in code that uses
"unsigned char *".

SVN-Revision: 751

17 years agoBe pedantic about argument range for ctype macros.
Joerg Sonnenberger [Sun, 8 Mar 2009 18:18:36 +0000 (14:18 -0400)] 
Be pedantic about argument range for ctype macros.

SVN-Revision: 750

17 years agoEliminate some code duplication.
Tim Kientzle [Sun, 8 Mar 2009 08:44:43 +0000 (04:44 -0400)] 
Eliminate some code duplication.

SVN-Revision: 749

17 years agoliblzmadec does handle end-of-stream properly, so we shouldn't bail out
Tim Kientzle [Sun, 8 Mar 2009 08:43:38 +0000 (04:43 -0400)] 
liblzmadec does handle end-of-stream properly, so we shouldn't bail out
on premature end of file.

SVN-Revision: 748

17 years agoSince the most popular XZ decompression library also supports LZMA,
Tim Kientzle [Sun, 8 Mar 2009 08:42:26 +0000 (04:42 -0400)] 
Since the most popular XZ decompression library also supports LZMA,
just fold the LZMA handling into the XZ reader.  This also eliminates
some duplication of bid code.  Also, clean up the style a bit to
exploit the peek/consume I/O style.

SVN-Revision: 747

17 years agoBidder free function doesn't do anything, so we can safely just drop it.
Tim Kientzle [Sun, 8 Mar 2009 07:22:16 +0000 (03:22 -0400)] 
Bidder free function doesn't do anything, so we can safely just drop it.

SVN-Revision: 746

17 years agoMark this as 2.6.901a - as of this point, FreeBSD-CURRENT is in sync with
Tim Kientzle [Sun, 8 Mar 2009 04:31:24 +0000 (23:31 -0500)] 
Mark this as 2.6.901a - as of this point, FreeBSD-CURRENT is in sync with
libarchive.googlecode.com (except for the xz/lzma support).

SVN-Revision: 745

17 years agoStyle fix: remove trailing whitespace on line.
Tim Kientzle [Sun, 8 Mar 2009 04:13:27 +0000 (23:13 -0500)] 
Style fix: remove trailing whitespace on line.

SVN-Revision: 744

17 years agoSpelling fix.
Tim Kientzle [Sat, 7 Mar 2009 07:19:01 +0000 (02:19 -0500)] 
Spelling fix.

SVN-Revision: 743

17 years agoWe no longer use ctype.h.
Tim Kientzle [Sat, 7 Mar 2009 03:01:53 +0000 (22:01 -0500)] 
We no longer use ctype.h.

SVN-Revision: 742

17 years agoOn Windows, pass test_option_L in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 17:03:26 +0000 (12:03 -0500)] 
On Windows, pass test_option_L in bsdcpio_test.

SVN-Revision: 741

17 years agoOn Windows, pass test_option_B in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 16:30:52 +0000 (11:30 -0500)] 
On Windows, pass test_option_B in bsdcpio_test.

SVN-Revision: 740

17 years agoComment fix.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 16:14:12 +0000 (11:14 -0500)] 
Comment fix.

SVN-Revision: 739

17 years agoOn Windows, pass test_gcpio_compat in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 16:05:49 +0000 (11:05 -0500)] 
On Windows, pass test_gcpio_compat in bsdcpio_test.

SVN-Revision: 738

17 years agoEliminate warning.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 15:39:11 +0000 (10:39 -0500)] 
Eliminate warning.

SVN-Revision: 737

17 years agoOn Windows, pass test_format_newc in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 13:21:32 +0000 (08:21 -0500)] 
On Windows, pass test_format_newc in bsdcpio_test.

SVN-Revision: 736

17 years agoOn Windows, simulate POSIX stat. Add a reference count
Michihiro NAKAJIMA [Fri, 6 Mar 2009 13:02:36 +0000 (08:02 -0500)] 
On Windows, simulate POSIX stat.  Add a reference count
of its parent directory to a link count of the directory.

SVN-Revision: 735

17 years agoOn Windows, pass test_basic in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 11:15:09 +0000 (06:15 -0500)] 
On Windows, pass test_basic in bsdcpio_test.

SVN-Revision: 734

17 years agoMake sure close file descriptor in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 10:48:37 +0000 (05:48 -0500)] 
Make sure close file descriptor in bsdcpio_test.

SVN-Revision: 733

17 years agoOn Windows, use "rmdir" command instead of "rm" command.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 09:32:51 +0000 (04:32 -0500)] 
On Windows, use "rmdir" command instead of "rm" command.

SVN-Revision: 732

17 years agoOn Windows, use "NUL" instead of "/dev/null"
Michihiro NAKAJIMA [Fri, 6 Mar 2009 09:27:34 +0000 (04:27 -0500)] 
On Windows, use "NUL" instead of "/dev/null"

SVN-Revision: 731

17 years agoCorrect executable name of bsdcpio on Windows.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 09:25:17 +0000 (04:25 -0500)] 
Correct executable name of bsdcpio on Windows.

SVN-Revision: 730

17 years agoWe can build bsdcpio on Windows. But it hasn't tested yet.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 09:06:03 +0000 (04:06 -0500)] 
We can build bsdcpio on Windows. But it hasn't tested yet.

SVN-Revision: 729

17 years agoIn bsdcpio_test, Do not use getopt() function, which isn't
Michihiro NAKAJIMA [Fri, 6 Mar 2009 07:37:19 +0000 (02:37 -0500)] 
In bsdcpio_test, Do not use getopt() function, which isn't
available on all platforms.

SVN-Revision: 728

17 years agoRemove unnecessary lines.
Michihiro NAKAJIMA [Fri, 6 Mar 2009 07:17:26 +0000 (02:17 -0500)] 
Remove unnecessary lines.

SVN-Revision: 727

17 years agoOn Windows, remove la_exit function which is used for debugging.
Michihiro NAKAJIMA [Thu, 5 Mar 2009 12:50:58 +0000 (07:50 -0500)] 
On Windows, remove la_exit function which is used for debugging.

SVN-Revision: 726