]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
15 years agofix build error on Tru64, where UF_NODUMP is not defined
Björn Jacke [Tue, 19 Jan 2010 23:38:22 +0000 (18:38 -0500)] 
fix build error on Tru64, where UF_NODUMP is not defined

SVN-Revision: 1837

15 years agoReturn proper errors from archive_read_disk_entry_from_file() if
Tim Kientzle [Mon, 18 Jan 2010 17:55:30 +0000 (12:55 -0500)] 
Return proper errors from archive_read_disk_entry_from_file() if
you're asked for information about a non-existent file.
Update cpio to actually use this properly to report errors for
nonexistent files and exit with a delayed error if there were
files that could not be read.

SVN-Revision: 1833

15 years agoWindows resets atime at file close, so we can't use futimes() on Cygwin.
Tim Kientzle [Mon, 18 Jan 2010 16:23:42 +0000 (11:23 -0500)] 
Windows resets atime at file close, so we can't use futimes() on Cygwin.

SVN-Revision: 1832

15 years agoWhen verifying the files recognized by tar, ignore end-of-line variations.
Tim Kientzle [Sun, 17 Jan 2010 22:55:10 +0000 (17:55 -0500)] 
When verifying the files recognized by tar, ignore end-of-line variations.

SVN-Revision: 1829

15 years agoPrint the string before freeing it.
Tim Kientzle [Sun, 17 Jan 2010 22:53:59 +0000 (17:53 -0500)] 
Print the string before freeing it.

SVN-Revision: 1828

15 years agoSort the list of files to delete.
Tim Kientzle [Sat, 16 Jan 2010 09:20:22 +0000 (04:20 -0500)] 
Sort the list of files to delete.

SVN-Revision: 1826

15 years agoClean tweaks.
Tim Kientzle [Sat, 16 Jan 2010 09:00:19 +0000 (04:00 -0500)] 
Clean tweaks.

SVN-Revision: 1825

15 years agopid_t probe for Windows.
Tim Kientzle [Sat, 16 Jan 2010 08:57:37 +0000 (03:57 -0500)] 
pid_t probe for Windows.

SVN-Revision: 1824

15 years agoFreeBSD has <utime.h>
Tim Kientzle [Sat, 16 Jan 2010 08:57:07 +0000 (03:57 -0500)] 
FreeBSD has <utime.h>

SVN-Revision: 1823

15 years agoRemove some pointless code.
Tim Kientzle [Sat, 16 Jan 2010 07:12:55 +0000 (02:12 -0500)] 
Remove some pointless code.

SVN-Revision: 1822

15 years agoAs pointed out recently on a GNU cpio mailing list, you can't
Tim Kientzle [Sat, 16 Jan 2010 07:11:58 +0000 (02:11 -0500)] 
As pointed out recently on a GNU cpio mailing list, you can't
hardlink device nodes.

SVN-Revision: 1821

15 years agoFix a bug that the nlink of regular files, which are not hard linking,
Michihiro NAKAJIMA [Fri, 15 Jan 2010 16:51:56 +0000 (11:51 -0500)] 
Fix a bug that the nlink of regular files, which are not hard linking,
was not set when rockridge was disabled.

SVN-Revision: 1814

15 years agoActually assert something here.
Tim Kientzle [Thu, 14 Jan 2010 03:40:45 +0000 (22:40 -0500)] 
Actually assert something here.

SVN-Revision: 1813

15 years agoUse abort() instead of a deliberate segfault.
Tim Kientzle [Thu, 14 Jan 2010 03:37:08 +0000 (22:37 -0500)] 
Use abort() instead of a deliberate segfault.

SVN-Revision: 1812

15 years agoEliminate an unneeded increasing value in libarchive_test.
Michihiro NAKAJIMA [Wed, 13 Jan 2010 06:47:56 +0000 (01:47 -0500)] 
Eliminate an unneeded increasing value in libarchive_test.

SVN-Revision: 1811

15 years agoOn Borland C, elimimate the warnings of comparing signed and unsigned from libarchive...
Michihiro NAKAJIMA [Thu, 7 Jan 2010 06:20:31 +0000 (01:20 -0500)] 
On Borland C, elimimate the warnings of comparing signed and unsigned from libarchive_test.

SVN-Revision: 1810

15 years agoRemove unreachable code.
Michihiro NAKAJIMA [Wed, 6 Jan 2010 12:16:37 +0000 (07:16 -0500)] 
Remove unreachable code.

SVN-Revision: 1809

15 years agoFix memory leak in ISO reader.
Michihiro NAKAJIMA [Wed, 6 Jan 2010 09:24:48 +0000 (04:24 -0500)] 
Fix memory leak in ISO reader.
Do not use a reference counter to decide to release a memory
used for struct file_info.
Release all memories of struct file_info at the end instead.

SVN-Revision: 1808

15 years agoClear the allocated 'zip' structure by using calloc() instead of malloc().
Tim Kientzle [Wed, 6 Jan 2010 06:04:23 +0000 (01:04 -0500)] 
Clear the allocated 'zip' structure by using calloc() instead of malloc().

SVN-Revision: 1807

15 years agoFix a failing tar test: On some systems (certain Linux systems
Tim Kientzle [Tue, 5 Jan 2010 16:44:20 +0000 (11:44 -0500)] 
Fix a failing tar test:  On some systems (certain Linux systems
with security features enabled), the default tar format chooses
to include pax extensions, which confuses the validation logic in
this test.

SVN-Revision: 1805

15 years agoDon't warn if a UID can't be looked up. Apparently,
Tim Kientzle [Tue, 5 Jan 2010 16:42:28 +0000 (11:42 -0500)] 
Don't warn if a UID can't be looked up.  Apparently,
recent Mac OS versions return a bogus ENOENT error
if a UID cannot be looked up on this system.

SVN-Revision: 1804

15 years agoRemove the now-defunct config_windows.h.
Tim Kientzle [Sun, 3 Jan 2010 21:33:51 +0000 (16:33 -0500)] 
Remove the now-defunct config_windows.h.

SVN-Revision: 1801

15 years agoIssue 48: Instead of setting RUNTIME_OUTPUT_DIRECTORY separately for
Tim Kientzle [Sun, 3 Jan 2010 21:25:38 +0000 (16:25 -0500)] 
Issue 48: Instead of setting RUNTIME_OUTPUT_DIRECTORY separately for
each component, set CMAKE_RUNTIME_OUTPUT_DIRECTORY once at the
top and let each component inherit that implicitly.  This allows
other projects that want to include libarchive to do so a little
more simply.

SVN-Revision: 1800

15 years agoLibarchive 2.7.902a test release.
Tim Kientzle [Sun, 3 Jan 2010 18:17:42 +0000 (13:17 -0500)] 
Libarchive 2.7.902a test release.

SVN-Revision: 1795

15 years agoDisable the broken globbing support on MinGW.
Tim Kientzle [Sun, 3 Jan 2010 06:28:36 +0000 (01:28 -0500)] 
Disable the broken globbing support on MinGW.

SVN-Revision: 1794

15 years agoRemove some pre-libarchive-2.0 support, which is no longer necessary.
Tim Kientzle [Sun, 3 Jan 2010 06:02:40 +0000 (01:02 -0500)] 
Remove some pre-libarchive-2.0 support, which is no longer necessary.
Prefill the copy buffer just once when we start, instead of refilling
it on every block request.  This shaves about 8% off the total running
time of libarchive_test on my system.

SVN-Revision: 1793

15 years agoFix a memory leak in this test.
Tim Kientzle [Sun, 3 Jan 2010 05:31:49 +0000 (00:31 -0500)] 
Fix a memory leak in this test.

SVN-Revision: 1792

15 years agoAdd a new assertFileContainsLinesAnyOrder() assertion and use it when checking the...
Tim Kientzle [Sat, 2 Jan 2010 02:33:27 +0000 (21:33 -0500)] 
Add a new assertFileContainsLinesAnyOrder() assertion and use it when checking the output of tar -t.

SVN-Revision: 1791

15 years agoAfter initializing a filter, we try to read from it to
Tim Kientzle [Sat, 2 Jan 2010 01:21:05 +0000 (20:21 -0500)] 
After initializing a filter, we try to read from it to
verify that it's working (in particular, this gives early
error reporting when external decompression programs are
nonexistent or exit immediately).  If this read failed,
we weren't properly cleaning up the just-initialized filter.
Since this is fatal, the easiest fix is to refactor the close()
handler and just release the entire filter chain.

SVN-Revision: 1790

15 years agoFix serious memory leaks in test_fuzz.c.
Tim Kientzle [Sat, 2 Jan 2010 01:18:03 +0000 (20:18 -0500)] 
Fix serious memory leaks in test_fuzz.c.

SVN-Revision: 1789

15 years agoMove dmalloc.h inclusion to where it doesn't interfere with system headers.
Tim Kientzle [Sat, 2 Jan 2010 01:16:53 +0000 (20:16 -0500)] 
Move dmalloc.h inclusion to where it doesn't interfere with system headers.

SVN-Revision: 1788

15 years agoStyle: Remove trailing blanks.
Tim Kientzle [Sat, 2 Jan 2010 01:16:13 +0000 (20:16 -0500)] 
Style:  Remove trailing blanks.

SVN-Revision: 1787

15 years agoSync $FreeBSD$ version info from FreeBSD SVN
Tim Kientzle [Wed, 30 Dec 2009 06:49:17 +0000 (01:49 -0500)] 
Sync $FreeBSD$ version info from FreeBSD SVN

SVN-Revision: 1786

15 years agoMinor style fixes.
Tim Kientzle [Wed, 30 Dec 2009 06:44:19 +0000 (01:44 -0500)] 
Minor style fixes.

SVN-Revision: 1785

15 years agolibarchive 2.7.901a release
Tim Kientzle [Mon, 28 Dec 2009 01:13:41 +0000 (20:13 -0500)] 
libarchive 2.7.901a release

SVN-Revision: 1783

15 years agoBe more tolerant of end-of-line variations.
Tim Kientzle [Mon, 28 Dec 2009 00:00:45 +0000 (19:00 -0500)] 
Be more tolerant of end-of-line variations.

SVN-Revision: 1782

15 years agoBe more explicit about the expected line termination for the version string.
Tim Kientzle [Sun, 27 Dec 2009 23:55:24 +0000 (18:55 -0500)] 
Be more explicit about the expected line termination for the version string.

SVN-Revision: 1781

15 years agoAssert contents for stderr; this might help track a bug that's showing up
Tim Kientzle [Sun, 27 Dec 2009 23:54:52 +0000 (18:54 -0500)] 
Assert contents for stderr; this might help track a bug that's showing up
in the CDash nightly tests.

SVN-Revision: 1780

15 years agoBetter error reporting when a file doesn't exist.
Tim Kientzle [Sun, 27 Dec 2009 23:53:59 +0000 (18:53 -0500)] 
Better error reporting when a file doesn't exist.

SVN-Revision: 1779

15 years agoDon't #define read _read before including io.h.
Tim Kientzle [Sun, 27 Dec 2009 23:51:26 +0000 (18:51 -0500)] 
Don't #define read _read before including io.h.

SVN-Revision: 1778

15 years agoMake this test less sensitive to newline variations; this
Tim Kientzle [Sun, 27 Dec 2009 23:18:08 +0000 (18:18 -0500)] 
Make this test less sensitive to newline variations; this
should fix a test failure seen on Cygwin.

SVN-Revision: 1777

15 years agotar.5 corrections
Tim Kientzle [Sun, 27 Dec 2009 19:58:22 +0000 (14:58 -0500)] 
tar.5 corrections

SVN-Revision: 1776

16 years agoEliminate more warnings on Borland C.
Michihiro NAKAJIMA [Wed, 23 Dec 2009 00:26:44 +0000 (19:26 -0500)] 
Eliminate more warnings on Borland C.

SVN-Revision: 1774

16 years agoFix comparison of ino.
Michihiro NAKAJIMA [Tue, 22 Dec 2009 04:35:59 +0000 (23:35 -0500)] 
Fix comparison of ino.

SVN-Revision: 1773

16 years agoEliminate warnings on Visual Studio 10 W64.
Michihiro NAKAJIMA [Tue, 22 Dec 2009 00:39:58 +0000 (19:39 -0500)] 
Eliminate warnings on Visual Studio 10 W64.
On Win64, the size of 'int' is stil 4 bytes and the size of 'size_t'
is 8 bytes. A conversion from 'size_t' to 'int', causes warning
with compiling.

SVN-Revision: 1772

16 years agoAvoid build failure on Visual Studio 10 W64.
Michihiro NAKAJIMA [Mon, 21 Dec 2009 08:51:19 +0000 (03:51 -0500)] 
Avoid build failure on Visual Studio 10 W64.

SVN-Revision: 1771

16 years agoEliminate the warnings of the conversion of types on Visual Studio.
Michihiro NAKAJIMA [Mon, 21 Dec 2009 06:15:25 +0000 (01:15 -0500)] 
Eliminate the warnings of the conversion of types on Visual Studio.

SVN-Revision: 1770

16 years agoOn Borland C environment, both dirent.h and direct.h are available.
Michihiro NAKAJIMA [Mon, 21 Dec 2009 03:54:28 +0000 (22:54 -0500)] 
On Borland C environment, both dirent.h and direct.h are available.

SVN-Revision: 1769

16 years agoEliminate the warnings which Borland C Compiler complains about unused parameter.
Michihiro NAKAJIMA [Mon, 21 Dec 2009 03:44:11 +0000 (22:44 -0500)] 
Eliminate the warnings which Borland C Compiler complains about unused parameter.

SVN-Revision: 1768

16 years agoEliminate the warnings which Borland C Compiler complains "Unreachable code".
Michihiro NAKAJIMA [Sun, 20 Dec 2009 21:00:47 +0000 (16:00 -0500)] 
Eliminate the warnings which Borland C Compiler complains "Unreachable code".

SVN-Revision: 1767

16 years agoIn libarchive_test, disable the warning which Borland C compiler
Michihiro NAKAJIMA [Sun, 20 Dec 2009 20:50:04 +0000 (15:50 -0500)] 
In libarchive_test, disable the warning which Borland C compiler
complains "constant out of range in comparison".

SVN-Revision: 1766

16 years agoOn Windows, don't use _strdup directly because Borland C
Michihiro NAKAJIMA [Sun, 20 Dec 2009 04:23:05 +0000 (23:23 -0500)] 
On Windows, don't use _strdup directly because Borland C
does not provide _strdup.

SVN-Revision: 1765

16 years ago_chmod is obsolete on the Borland C environment.
Michihiro NAKAJIMA [Fri, 18 Dec 2009 18:15:24 +0000 (13:15 -0500)] 
_chmod is obsolete on the Borland C environment.
Use Win32 API instead of _chmod/_wchmod.

SVN-Revision: 1764

16 years agoEliminate warnings that some function parameters are not used at
Michihiro NAKAJIMA [Fri, 18 Dec 2009 17:11:02 +0000 (12:11 -0500)] 
Eliminate warnings that some function parameters are not used at
libarchive/test/main.c.

SVN-Revision: 1763

16 years agoDon't use _getcwd and _strdup on Borland C Compiler.
Michihiro NAKAJIMA [Fri, 18 Dec 2009 16:55:49 +0000 (11:55 -0500)] 
Don't use _getcwd and _strdup on Borland C Compiler.
This is covering r1757.

SVN-Revision: 1762

16 years agoOn Windows, make sure not to leave empty directories
Michihiro NAKAJIMA [Fri, 18 Dec 2009 16:33:36 +0000 (11:33 -0500)] 
On Windows, make sure not to leave empty directories
when tests are success.

SVN-Revision: 1761

16 years agoDisable two warnings on Borland C Compiler.
Michihiro NAKAJIMA [Thu, 17 Dec 2009 13:29:40 +0000 (08:29 -0500)] 
Disable two warnings on Borland C Compiler.
 - Constant out of range in comparison(W8068).
 - Suspicious pointer arithmetic(W8072).

SVN-Revision: 1760

16 years agoRemove an unneeded pragma that disable signed/unsigned mismatch warning.
Michihiro NAKAJIMA [Thu, 17 Dec 2009 12:59:52 +0000 (07:59 -0500)] 
Remove an unneeded pragma that disable signed/unsigned mismatch warning.

SVN-Revision: 1759

16 years agoAdd IO_REPARSE_TAG_SYMLINK macro if not defined.
Michihiro NAKAJIMA [Thu, 17 Dec 2009 12:17:40 +0000 (07:17 -0500)] 
Add IO_REPARSE_TAG_SYMLINK macro if not defined.
Old Windows SDKs do not provide IO_REPARSE_TAG_SYMLINK.

SVN-Revision: 1758

16 years agoBorland C does not provide _access,_chdir,_getcwd,_strdup and _umask.
Michihiro NAKAJIMA [Thu, 17 Dec 2009 11:54:14 +0000 (06:54 -0500)] 
Borland C does not provide _access,_chdir,_getcwd,_strdup and _umask.

SVN-Revision: 1757

16 years agoFix indents.
Michihiro NAKAJIMA [Wed, 16 Dec 2009 19:40:24 +0000 (14:40 -0500)] 
Fix indents.

SVN-Revision: 1756

16 years agoAvoid segv on linux64. It caused at second calling vfprintf() of vlogprintf()
Michihiro NAKAJIMA [Wed, 16 Dec 2009 19:34:53 +0000 (14:34 -0500)] 
Avoid segv on linux64. It caused at second calling vfprintf() of vlogprintf()
in */test/main.c.
Use a copy of ap for second calling vfprintf().

SVN-Revision: 1755

16 years agobzstream_valid is not presented if bzip2 is not available.
Michihiro NAKAJIMA [Wed, 16 Dec 2009 15:49:45 +0000 (10:49 -0500)] 
bzstream_valid is not presented if bzip2 is not available.

SVN-Revision: 1754

16 years agoAll of invalid_parameter_handler() are used only when HAVE__CrtSetReportMode is defined.
Michihiro NAKAJIMA [Wed, 16 Dec 2009 14:30:32 +0000 (09:30 -0500)] 
All of invalid_parameter_handler() are used only when HAVE__CrtSetReportMode is defined.

SVN-Revision: 1753

16 years agoBorland C++ does not provide sys/utime.h.
Michihiro NAKAJIMA [Wed, 16 Dec 2009 14:12:20 +0000 (09:12 -0500)] 
Borland C++ does not provide sys/utime.h.
Use macro HAVE_SYS_UTIME_H to include sys/utime.h and also
use macro HAVE_UTIME_H to include utime.h.

SVN-Revision: 1752

16 years agoIsolate libxml header check
Brad King [Wed, 16 Dec 2009 13:52:05 +0000 (08:52 -0500)] 
Isolate libxml header check

The check HAVE_LIBXML_XMLREADER_H should not use LA_CHECK_INCLUDE_FILE
because it sets CMAKE_REQUIRED_INCLUDES for only the one check.  The
LA_CHECK_INCLUDE_FILE macro accumulates headers that exist for use in
future checks, but including libxml/xmlreader.h breaks later checks
because they do not set CMAKE_REQUIRED_INCLUDES.  Instead we use
CHECK_INCLUDE_FILES directly for this check.

SVN-Revision: 1751

16 years agoCreate ENABLE_OPENSSL CMake option
Brad King [Wed, 16 Dec 2009 13:32:27 +0000 (08:32 -0500)] 
Create ENABLE_OPENSSL CMake option

This option tells libarchive whether to check for OpenSSL and use it.
We enable it by default since we previously did this unconditionally.
This provides the CMake equivalent to the --without-openssl option,
spelled as -DENABLE_OPENSSL=OFF.  See issue #22.

SVN-Revision: 1750

16 years agoAvoid warnings with bcc that are comparing signed and unsigned values.
Michihiro NAKAJIMA [Wed, 16 Dec 2009 13:19:03 +0000 (08:19 -0500)] 
Avoid warnings with bcc that are comparing signed and unsigned values.

SVN-Revision: 1749

16 years agoExplicit unused variables at __archive_check_child().
Michihiro NAKAJIMA [Wed, 16 Dec 2009 13:02:13 +0000 (08:02 -0500)] 
Explicit unused variables at __archive_check_child().

SVN-Revision: 1748

16 years agoEliminate a paramter 'sym' of __link(), which is no longer needed.
Michihiro NAKAJIMA [Wed, 16 Dec 2009 12:50:38 +0000 (07:50 -0500)] 
Eliminate a paramter 'sym' of __link(), which is no longer needed.

SVN-Revision: 1747

16 years agoCorrect a wide character buffer size of MultiByteToWideChar() in
Michihiro NAKAJIMA [Wed, 16 Dec 2009 12:44:48 +0000 (07:44 -0500)] 
Correct a wide character buffer size of MultiByteToWideChar() in
__link().

SVN-Revision: 1746

16 years agoRemove unreachable statement in archive_read_support_format_raw.c
Michihiro NAKAJIMA [Wed, 16 Dec 2009 12:28:49 +0000 (07:28 -0500)] 
Remove unreachable statement in archive_read_support_format_raw.c

SVN-Revision: 1745

16 years agoRemove unreachable statement.
Michihiro NAKAJIMA [Wed, 16 Dec 2009 12:16:49 +0000 (07:16 -0500)] 
Remove unreachable statement.

SVN-Revision: 1744

16 years agoRemove unused variable.
Michihiro NAKAJIMA [Wed, 16 Dec 2009 12:13:21 +0000 (07:13 -0500)] 
Remove unused variable.

SVN-Revision: 1743

16 years agoOn Windows, do not define and use WIFSIGNALED because condition of
Michihiro NAKAJIMA [Wed, 16 Dec 2009 12:09:09 +0000 (07:09 -0500)] 
On Windows, do not define and use WIFSIGNALED because condition of
WIFSIGNALED was always false and bcc complained.

SVN-Revision: 1742

16 years agoFix Issue 56: Don't crash when reading an mtree input with "content=."
Tim Kientzle [Wed, 16 Dec 2009 07:10:01 +0000 (02:10 -0500)] 
Fix Issue 56:  Don't crash when reading an mtree input with "content=."

SVN-Revision: 1741

16 years agoEliminate test_write_compress_program failur on Visual Studio 10.
Michihiro NAKAJIMA [Tue, 15 Dec 2009 23:52:54 +0000 (18:52 -0500)] 
Eliminate test_write_compress_program failur on Visual Studio 10.

SVN-Revision: 1740

16 years agoRemove unneeded including windows.h at tar/write.c.
Michihiro NAKAJIMA [Tue, 15 Dec 2009 23:02:06 +0000 (18:02 -0500)] 
Remove unneeded including windows.h at tar/write.c.
It's included through bsdtar_platform.h.

SVN-Revision: 1739

16 years agoAvoid build error on Visual Studio 10.
Michihiro NAKAJIMA [Tue, 15 Dec 2009 22:52:33 +0000 (17:52 -0500)] 
Avoid build error on Visual Studio 10.

SVN-Revision: 1738

16 years agoDon't check whether bsdxml is available or not.
Michihiro NAKAJIMA [Mon, 14 Dec 2009 11:50:47 +0000 (06:50 -0500)] 
Don't check whether bsdxml is available or not.
The bsdxml is intended for use in FreeBSD base system.

SVN-Revision: 1737

16 years agoRefactor the release-building scripts just a bit:
Tim Kientzle [Mon, 14 Dec 2009 02:54:07 +0000 (21:54 -0500)] 
Refactor the release-building scripts just a bit:
 * bump-version.sh actually bumps the 'version' value
 * clean.sh attempts to clean the local directory as thoroughly as possible
 * autogen.sh runs clean.sh, edits the current version value into
   configure.ac, archive.h, and archive_entry.h, re-runs autoconf/automake/etc,
   and does a ./configure && make distcheck to verify the distribution on the
   local system.

SVN-Revision: 1736

16 years agoWe no longer use %jd or %lld from the system printf, so
Tim Kientzle [Sun, 13 Dec 2009 23:53:17 +0000 (18:53 -0500)] 
We no longer use %jd or %lld from the system printf, so
we don't need to test for them.

SVN-Revision: 1735

16 years agoCorrect the spelling of RIPEMD160.
Tim Kientzle [Sun, 13 Dec 2009 23:42:48 +0000 (18:42 -0500)] 
Correct the spelling of RIPEMD160.

SVN-Revision: 1734

16 years agoA few Cmake build improvements from Issue 48:
Tim Kientzle [Sun, 13 Dec 2009 23:30:00 +0000 (18:30 -0500)] 
A few Cmake build improvements from Issue 48:
 * Use the path holding the current file to make the build/cmake/*.cmake
   files more independent
 * Use CMAKE_CURRENT_SOURCE_DIR in the top-level CMakeLists.txt to locate
   the macro files and the version file.

SVN-Revision: 1733

16 years agoRegression test for Issue 51: Verify that interpolating an empty mtree
Tim Kientzle [Sun, 13 Dec 2009 20:07:45 +0000 (15:07 -0500)] 
Regression test for Issue 51: Verify that interpolating an empty mtree
archive doesn't generate a bogus error message.

SVN-Revision: 1732

16 years agoMore explanation of bad arguments.
Tim Kientzle [Sun, 13 Dec 2009 19:27:41 +0000 (14:27 -0500)] 
More explanation of bad arguments.

SVN-Revision: 1731

16 years agor1729 was wrong. Revert it and use a better approach.
Tim Kientzle [Sun, 13 Dec 2009 19:08:45 +0000 (14:08 -0500)] 
r1729 was wrong.  Revert it and use a better approach.

SVN-Revision: 1730

16 years agoWork around Borland C's broken _open() implementation.
Tim Kientzle [Sun, 13 Dec 2009 00:07:42 +0000 (19:07 -0500)] 
Work around Borland C's broken _open() implementation.

SVN-Revision: 1729

16 years agoNot all Windows environments have sys/utime.h, so obey the configure check.
Tim Kientzle [Sun, 13 Dec 2009 00:00:52 +0000 (19:00 -0500)] 
Not all Windows environments have sys/utime.h, so obey the configure check.

SVN-Revision: 1728

16 years agoCpio "odc" format limits the ino value to 18 bits. Previously, we
Tim Kientzle [Sat, 12 Dec 2009 23:40:49 +0000 (18:40 -0500)] 
Cpio "odc" format limits the ino value to 18 bits.  Previously, we
simply truncated larger values, which can lead to false collisions and
false hardlink detection, especially on filesystems such as NTFS that
use 64-bit ino values.  Because of the risk, we must issue a warning
in this case, and the warnings have been creating problems for the
bsdcpio test suite.

In order to avoid this problem, map the incoming ino values to new ino
values.  This allows us to store up to 256k distinct files without
risk of false hardlinks.  The only drawback to this approach is the risk
of losing hardlinks when appending to existing archives.

SVN-Revision: 1727

16 years agoExplicitly test for sigaction() rather than
Tim Kientzle [Sat, 12 Dec 2009 20:56:08 +0000 (15:56 -0500)] 
Explicitly test for sigaction() rather than
treating the existence of SIGINFO and SIGUSR1 as sufficient
evidence of sigaction() support.

SVN-Revision: 1726

16 years agoEliminate unneeded initialization.
Michihiro NAKAJIMA [Tue, 8 Dec 2009 11:24:30 +0000 (06:24 -0500)] 
Eliminate unneeded initialization.

SVN-Revision: 1720

16 years agoReduce loop count of connecting hardlinked files.
Michihiro NAKAJIMA [Tue, 8 Dec 2009 11:12:44 +0000 (06:12 -0500)] 
Reduce loop count of connecting hardlinked files.

SVN-Revision: 1719

16 years agoReduce the likelihood of false hardlinks by ignoring entries with
Tim Kientzle [Tue, 8 Dec 2009 06:18:24 +0000 (01:18 -0500)] 
Reduce the likelihood of false hardlinks by ignoring entries with
nlinks <= 1 when comparing dev/ino values.  This seems to address Issue 54.

SVN-Revision: 1718

16 years agoMerge libarchive 2.7
Brad King [Mon, 7 Dec 2009 00:19:28 +0000 (19:19 -0500)] 
Merge libarchive 2.7

This commit was manufactured during conversion from SVN
to merge the libarchive 2.7 branch.

16 years agoRemove -Werror for production release.
Tim Kientzle [Mon, 7 Dec 2009 00:19:28 +0000 (19:19 -0500)] 
Remove -Werror for production release.

SVN-Revision: 1717

16 years agoCorrect some printf format strings, per Issue 52.
Tim Kientzle [Mon, 7 Dec 2009 00:15:41 +0000 (19:15 -0500)] 
Correct some printf format strings, per Issue 52.

SVN-Revision: 1716

16 years agoFix empty error message reported in Issue 51.
Tim Kientzle [Mon, 7 Dec 2009 00:11:21 +0000 (19:11 -0500)] 
Fix empty error message reported in Issue 51.

SVN-Revision: 1715

16 years agoStyle: Break some long lines.
Tim Kientzle [Sun, 6 Dec 2009 23:52:35 +0000 (18:52 -0500)] 
Style:  Break some long lines.
Also, restructure the index number handling to include a truncation
check.

SVN-Revision: 1714

16 years agoFreeBSD has bsdxml.h
Tim Kientzle [Sun, 6 Dec 2009 23:41:37 +0000 (18:41 -0500)] 
FreeBSD has bsdxml.h

SVN-Revision: 1713