]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Tim Kientzle [Mon, 15 Feb 2010 03:35:17 +0000 (22:35 -0500)]
"none" is the default compression; there's no need to set it explicitly.
SVN-Revision: 1901
Tim Kientzle [Mon, 15 Feb 2010 03:33:53 +0000 (22:33 -0500)]
Modernize this test.
SVN-Revision: 1900
Tim Kientzle [Mon, 15 Feb 2010 03:31:39 +0000 (22:31 -0500)]
Modernize this test.
SVN-Revision: 1899
Tim Kientzle [Mon, 15 Feb 2010 03:28:19 +0000 (22:28 -0500)]
Add a missing newline.
SVN-Revision: 1898
Michihiro NAKAJIMA [Sat, 13 Feb 2010 06:05:32 +0000 (01:05 -0500)]
Eliminate build failure on msys. Do not use _wsopen_s().
SVN-Revision: 1897
Michihiro NAKAJIMA [Fri, 12 Feb 2010 08:33:08 +0000 (03:33 -0500)]
Make a Windows version of __archive_mktemp() in archive_windows.c
and merge __la_mkstemp() and __archive_mktemp() because
__la_mkstemp() was only used by __archive_mktemp().
SVN-Revision: 1896
Michihiro NAKAJIMA [Thu, 11 Feb 2010 08:28:04 +0000 (03:28 -0500)]
Introduce a function __archive_mktemp() to create a temporary file,
which will be used by ISO writer and xar writer.
SVN-Revision: 1895
Michihiro NAKAJIMA [Thu, 11 Feb 2010 05:50:35 +0000 (00:50 -0500)]
The last sparse block info must reach the end of file.
SVN-Revision: 1894
Michihiro NAKAJIMA [Thu, 11 Feb 2010 04:52:45 +0000 (23:52 -0500)]
Sanity check of adding sparse info.
SVN-Revision: 1893
Tim Kientzle [Mon, 8 Feb 2010 07:18:22 +0000 (02:18 -0500)]
Rename archive_read_finish to archive_read_free and
archive_write_finish to archive_write_free. Update all clients,
tests, and documentation to use the new names exclusively. (Though
I've not yet run a global search-and-replace against the Wiki. I'll
do that shortly.)
I've preserved the old names as aliases, scheduled to be removed with
libarchive 4.x, so there is no immediate impact to existing code from
this change.
SVN-Revision: 1891
Tim Kientzle [Mon, 8 Feb 2010 02:45:06 +0000 (21:45 -0500)]
Rip out the rest of the legacy 1.x API.
SVN-Revision: 1890
Tim Kientzle [Mon, 8 Feb 2010 02:31:17 +0000 (21:31 -0500)]
svn:ignore a bunch of constructed CMake files, to ease in-tree development.
SVN-Revision: 1889
Tim Kientzle [Mon, 8 Feb 2010 02:20:50 +0000 (21:20 -0500)]
More broad style cleanups of libarchive_test.
SVN-Revision: 1888
Tim Kientzle [Sun, 7 Feb 2010 22:49:11 +0000 (17:49 -0500)]
Style: Update a bunch of old assert() and assertA() calls.
SVN-Revision: 1887
Tim Kientzle [Sun, 7 Feb 2010 22:25:59 +0000 (17:25 -0500)]
Rip out the remaining support for old libarchive 1.x APIs.
SVN-Revision: 1886
Tim Kientzle [Sat, 6 Feb 2010 20:30:53 +0000 (15:30 -0500)]
When trying to set LZMA compression, pay attention to the return value
from libarchive.
SVN-Revision: 1884
Michihiro NAKAJIMA [Sat, 6 Feb 2010 05:32:55 +0000 (00:32 -0500)]
When a sparse file is stored, use a special name in ustar header
according to GNU PAX Format 1.0.
SVN-Revision: 1883
Tim Kientzle [Sat, 6 Feb 2010 05:10:13 +0000 (00:10 -0500)]
Guard against out-of-range nanosecond time values and make it easy for
people to make small time adjustments using code such as:
archive_entry_set_ctime(entry,
archive_entry_ctime(entry),
archive_entry_ctime_nsec(entry) + 123456);
SVN-Revision: 1882
Michihiro NAKAJIMA [Sat, 6 Feb 2010 03:58:47 +0000 (22:58 -0500)]
Use ENOTTY instead of EINVAL to decide if linux kernel
supports FS_IOC_FIEMAP or not.
SVN-Revision: 1881
Michihiro NAKAJIMA [Sat, 6 Feb 2010 02:24:04 +0000 (21:24 -0500)]
Add a test for writing sparse info to PAX header.
SVN-Revision: 1880
Michihiro NAKAJIMA [Sat, 6 Feb 2010 01:41:47 +0000 (20:41 -0500)]
Do not report a sparse block if its offset is zero and its length is
the same as its file size. In this case, the file is not sparse.
SVN-Revision: 1879
Michihiro NAKAJIMA [Sat, 6 Feb 2010 00:51:44 +0000 (19:51 -0500)]
Write a sparse info to PAX header, which respects GNU PAX Format 1.0
for portability.
This remains some work:
- Rename a filename to <dir>/GNUSparseFile.<pid>/<filename>.
- Handle the non-ascii filename.
SVN-Revision: 1878
Michihiro NAKAJIMA [Fri, 5 Feb 2010 06:18:01 +0000 (01:18 -0500)]
Report an errono with an error description.
SVN-Revision: 1876
Michihiro NAKAJIMA [Fri, 5 Feb 2010 06:03:26 +0000 (01:03 -0500)]
Get a error description at test_read_disk_from_file.
SVN-Revision: 1874
Michihiro NAKAJIMA [Fri, 5 Feb 2010 04:48:23 +0000 (23:48 -0500)]
Fix test_read_format_cpio_afio failure on the some platform,
on which the size of uid_t is too small to set a over 65535 value.
But this fix will be removed when we use int64_t for uid.
SVN-Revision: 1871
Michihiro NAKAJIMA [Fri, 5 Feb 2010 04:26:39 +0000 (23:26 -0500)]
Get a sprase info in GNU PAX formart "1.0" before the process of
reading file data so that we reliably get the sparse info with
archive_entry_sparse_*() functions.
SVN-Revision: 1870
Michihiro NAKAJIMA [Thu, 4 Feb 2010 13:22:04 +0000 (08:22 -0500)]
Add support for afio large ASCII header.
SVN-Revision: 1869
Michihiro NAKAJIMA [Thu, 4 Feb 2010 05:09:03 +0000 (00:09 -0500)]
Oops, one more change to the previous commit.
Use exit_sts for return code instead of ARCHIVE_OK.
SVN-Revision: 1867
Michihiro NAKAJIMA [Thu, 4 Feb 2010 05:00:21 +0000 (00:00 -0500)]
Fix test failure on linux version of which is older than 2.6.28.
SVN-Revision: 1866
Michihiro NAKAJIMA [Thu, 4 Feb 2010 01:30:44 +0000 (20:30 -0500)]
Fix build failure on msys.
SVN-Revision: 1865
Michihiro NAKAJIMA [Thu, 4 Feb 2010 00:37:27 +0000 (19:37 -0500)]
Fix build failure on Cygwin.
SVN-Revision: 1864
Michihiro NAKAJIMA [Wed, 3 Feb 2010 23:59:47 +0000 (18:59 -0500)]
Fix build failure on Borland.
SVN-Revision: 1863
Michihiro NAKAJIMA [Tue, 2 Feb 2010 11:11:30 +0000 (06:11 -0500)]
Windows needs a special mark to create a sparse file.
SVN-Revision: 1857
Michihiro NAKAJIMA [Tue, 2 Feb 2010 11:09:17 +0000 (06:09 -0500)]
Determine sparse files through API such as lseek(HOLE).
SVN-Revision: 1856
Michihiro NAKAJIMA [Tue, 2 Feb 2010 11:02:08 +0000 (06:02 -0500)]
Introduce new API archive_entry_sparse_* to manage sparse files.
SVN-Revision: 1855
Tim Kientzle [Tue, 2 Feb 2010 07:35:35 +0000 (02:35 -0500)]
First rough cut at integrating write support for Apple's copyfile()
extension. This has not been tested at all...
SVN-Revision: 1854
Tim Kientzle [Tue, 2 Feb 2010 07:29:22 +0000 (02:29 -0500)]
Change this to use positive flags, not negative.
Idioms like "if (!disabled)" are really hard to read.
SVN-Revision: 1853
Tim Kientzle [Mon, 1 Feb 2010 05:51:37 +0000 (00:51 -0500)]
First step towards integrating Mac OS "copyfile" extension from Apple.
This part adds probes for the copyfile.h header, and adds a new command-line
option --disable-copyfile, which does nothing on non-MacOS systems.
SVN-Revision: 1852
Tim Kientzle [Mon, 1 Feb 2010 03:52:55 +0000 (22:52 -0500)]
Minor adjustments to the bsdtar.1 man page.
In particular:
* Downplay the "tape" aspect; few people use tar with tape drives any more.
* Document default device a bit more carefully.
* Update supported formats.
* Clarify the history of this implementation.
SVN-Revision: 1851
Tim Kientzle [Mon, 1 Feb 2010 03:29:05 +0000 (22:29 -0500)]
Correct the spelling of "stat".
SVN-Revision: 1850
Tim Kientzle [Mon, 1 Feb 2010 03:28:17 +0000 (22:28 -0500)]
Merge r203183 from svn.freebsd.org: Support -V option as in GNU cpio.
Submitted by: Philip Kizer
SVN-Revision: 1849
Tim Kientzle [Mon, 1 Feb 2010 02:56:52 +0000 (21:56 -0500)]
Support "-" (stdio) for the TAPE environment variable.
On MacOS, set "-" as the default device, since there is no tape support.
SVN-Revision: 1848
Michihiro NAKAJIMA [Fri, 29 Jan 2010 00:08:15 +0000 (19:08 -0500)]
Eliminate compiling failure on OpenSolaris.
Define __EXTENSIONS__ macro through AC_USE_SYSTEM_EXTENSIONS.
SVN-Revision: 1846
Michihiro NAKAJIMA [Thu, 28 Jan 2010 02:41:06 +0000 (21:41 -0500)]
Properly initialize struct tm object.
SVN-Revision: 1844
Michihiro NAKAJIMA [Fri, 22 Jan 2010 19:22:58 +0000 (14:22 -0500)]
Bug fix; on xar reader, use dev instead of rdev for a "deviceno" entry.
SVN-Revision: 1842
Tim Kientzle [Wed, 20 Jan 2010 05:47:53 +0000 (00:47 -0500)]
Make the policy for -Werror/-Wall here a little clearer.
SVN-Revision: 1839
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
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
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
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
Tim Kientzle [Sun, 17 Jan 2010 22:53:59 +0000 (17:53 -0500)]
Print the string before freeing it.
SVN-Revision: 1828
Tim Kientzle [Sat, 16 Jan 2010 09:20:22 +0000 (04:20 -0500)]
Sort the list of files to delete.
SVN-Revision: 1826
Tim Kientzle [Sat, 16 Jan 2010 09:00:19 +0000 (04:00 -0500)]
Clean tweaks.
SVN-Revision: 1825
Tim Kientzle [Sat, 16 Jan 2010 08:57:37 +0000 (03:57 -0500)]
pid_t probe for Windows.
SVN-Revision: 1824
Tim Kientzle [Sat, 16 Jan 2010 08:57:07 +0000 (03:57 -0500)]
FreeBSD has <utime.h>
SVN-Revision: 1823
Tim Kientzle [Sat, 16 Jan 2010 07:12:55 +0000 (02:12 -0500)]
Remove some pointless code.
SVN-Revision: 1822
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
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
Tim Kientzle [Thu, 14 Jan 2010 03:40:45 +0000 (22:40 -0500)]
Actually assert something here.
SVN-Revision: 1813
Tim Kientzle [Thu, 14 Jan 2010 03:37:08 +0000 (22:37 -0500)]
Use abort() instead of a deliberate segfault.
SVN-Revision: 1812
Michihiro NAKAJIMA [Wed, 13 Jan 2010 06:47:56 +0000 (01:47 -0500)]
Eliminate an unneeded increasing value in libarchive_test.
SVN-Revision: 1811
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
Michihiro NAKAJIMA [Wed, 6 Jan 2010 12:16:37 +0000 (07:16 -0500)]
Remove unreachable code.
SVN-Revision: 1809
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
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
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
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
Tim Kientzle [Sun, 3 Jan 2010 21:33:51 +0000 (16:33 -0500)]
Remove the now-defunct config_windows.h.
SVN-Revision: 1801
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
Tim Kientzle [Sun, 3 Jan 2010 18:17:42 +0000 (13:17 -0500)]
Libarchive 2.7.902a test release.
SVN-Revision: 1795
Tim Kientzle [Sun, 3 Jan 2010 06:28:36 +0000 (01:28 -0500)]
Disable the broken globbing support on MinGW.
SVN-Revision: 1794
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
Tim Kientzle [Sun, 3 Jan 2010 05:31:49 +0000 (00:31 -0500)]
Fix a memory leak in this test.
SVN-Revision: 1792
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
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
Tim Kientzle [Sat, 2 Jan 2010 01:18:03 +0000 (20:18 -0500)]
Fix serious memory leaks in test_fuzz.c.
SVN-Revision: 1789
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
Tim Kientzle [Sat, 2 Jan 2010 01:16:13 +0000 (20:16 -0500)]
Style: Remove trailing blanks.
SVN-Revision: 1787
Tim Kientzle [Wed, 30 Dec 2009 06:49:17 +0000 (01:49 -0500)]
Sync $FreeBSD$ version info from FreeBSD SVN
SVN-Revision: 1786
Tim Kientzle [Wed, 30 Dec 2009 06:44:19 +0000 (01:44 -0500)]
Minor style fixes.
SVN-Revision: 1785
Tim Kientzle [Mon, 28 Dec 2009 01:13:41 +0000 (20:13 -0500)]
libarchive 2.7.901a release
SVN-Revision: 1783
Tim Kientzle [Mon, 28 Dec 2009 00:00:45 +0000 (19:00 -0500)]
Be more tolerant of end-of-line variations.
SVN-Revision: 1782
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
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
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
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
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
Tim Kientzle [Sun, 27 Dec 2009 19:58:22 +0000 (14:58 -0500)]
tar.5 corrections
SVN-Revision: 1776
Michihiro NAKAJIMA [Wed, 23 Dec 2009 00:26:44 +0000 (19:26 -0500)]
Eliminate more warnings on Borland C.
SVN-Revision: 1774
Michihiro NAKAJIMA [Tue, 22 Dec 2009 04:35:59 +0000 (23:35 -0500)]
Fix comparison of ino.
SVN-Revision: 1773
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
Michihiro NAKAJIMA [Mon, 21 Dec 2009 08:51:19 +0000 (03:51 -0500)]
Avoid build failure on Visual Studio 10 W64.
SVN-Revision: 1771
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
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
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
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
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
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
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
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