]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Allan McRae [Sat, 8 Sep 2012 08:59:33 +0000 (18:59 +1000)]
Fix mtree generation
When generating an mtree file, libarchive writes a "Relative" type (entries
that have no /) for files in the base directory. For directories, this causes
the mtree reader to change the parent directory and give subsequent files in
the root directory the wrong path.
Fix this by prefixing entries in the root directory with "./".
Dan McGee [Wed, 29 Aug 2012 19:52:58 +0000 (15:52 -0400)]
Fix build failure when ACL_TYPE_NFS4 is not defined.
Signed-off-by: Andres Mejia <amejia004@gmail.com>
Andres Mejia [Wed, 29 Aug 2012 19:52:09 +0000 (15:52 -0400)]
Fix build failure of test_write_compress_lrzip.c, use archive_write_add_filter_lrzip().
Andres Mejia [Wed, 29 Aug 2012 19:51:27 +0000 (15:51 -0400)]
Fix build failure of test cases using autotools build system.
Tim Kientzle [Wed, 29 Aug 2012 15:10:17 +0000 (08:10 -0700)]
Merge pull request #19 from andreas-schwab/master
Fix more uses of EXT2_IOC_[GS]ETFLAGS
Andreas Schwab [Wed, 29 Aug 2012 13:41:51 +0000 (15:41 +0200)]
Fix more uses of EXT2_IOC_[GS]ETFLAGS
Tim Kientzle [Thu, 23 Aug 2012 02:23:48 +0000 (19:23 -0700)]
Fix flags on Linux.
The ioctl we're using here expects a pointer to an int argument.
Tim Kientzle [Mon, 20 Aug 2012 02:57:12 +0000 (19:57 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sun, 5 Aug 2012 18:40:50 +0000 (11:40 -0700)]
Include archive_write_disk_acl.c in the autoconf build.
Tim Kientzle [Sun, 5 Aug 2012 17:42:05 +0000 (10:42 -0700)]
Merge remote-tracking branch 'origin/master'
Tim Kientzle [Thu, 2 Aug 2012 04:45:24 +0000 (21:45 -0700)]
Add a comment suggesting -n with -T.
Tim Kientzle [Wed, 1 Aug 2012 15:33:49 +0000 (08:33 -0700)]
Merge pull request #16 from mmatuska/master
Add missing variable initialization in FreeBSD acl code.
Tim Kientzle [Wed, 1 Aug 2012 05:11:17 +0000 (22:11 -0700)]
Merge pull request #17 from vx/master
Support appending to empty archives
Tim Kientzle [Wed, 1 Aug 2012 05:09:36 +0000 (22:09 -0700)]
Merge pull request #18 from bradking/rdw-typo
archive_read_disk_windows.c: Fix typo in allocation error message
Brad King [Tue, 31 Jul 2012 19:45:43 +0000 (15:45 -0400)]
archive_read_disk_windows.c: Fix typo in allocation error message
s/direcotry/directory/
Martin Matuska [Tue, 31 Jul 2012 08:41:48 +0000 (10:41 +0200)]
Support appending to empty archives.
Martin Matuska [Mon, 30 Jul 2012 06:47:09 +0000 (08:47 +0200)]
Add missing variable initialization.
Tim Kientzle [Mon, 23 Jul 2012 04:58:53 +0000 (21:58 -0700)]
Merge pull request #15 from mbrantner/master
function that allow for switching compression between entries of a zip archive
Tim Kientzle [Mon, 23 Jul 2012 04:55:54 +0000 (21:55 -0700)]
Don't use __func__ or __FUNCTION__: there are too
many broken compilers in the world.
Tim Kientzle [Mon, 23 Jul 2012 04:53:33 +0000 (21:53 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Mon, 23 Jul 2012 04:53:08 +0000 (21:53 -0700)]
Merge pull request #14 from bcran/master
Fix typos of "Illegal" and "Unknown"
Matthias Brantner [Fri, 20 Jul 2012 21:20:12 +0000 (14:20 -0700)]
two new functions:
- archive_write_zip_set_compression_deflate
- archive_write_zip_set_compression_store
which allow to set/switch between compression deflate or store
in between entries of a zip archive
Bruce Cran [Sat, 30 Jun 2012 20:33:17 +0000 (21:33 +0100)]
Merge branch 'master' of https://github.com/bcran/libarchive
Bruce Cran [Sat, 30 Jun 2012 20:27:29 +0000 (21:27 +0100)]
Fix Visual C++ 2010 build by using __FUNCTION__
Visual C++ 2010 doesn't understand the C99 __func__ so use the older
(non-standard) __FUNCTION__ instead.
Bruce Cran [Sat, 30 Jun 2012 20:27:29 +0000 (21:27 +0100)]
VS 2010 doesn't understand __func__ so use the older __FUNCTION__ instead.
Bruce Cran [Sat, 30 Jun 2012 20:24:41 +0000 (21:24 +0100)]
Fix typos of "Illegal" and "Unknown".
Tim Kientzle [Sun, 10 Jun 2012 01:03:58 +0000 (18:03 -0700)]
lrzip support isn't legacy, so we don't need legacy shims for it.
Tim Kientzle [Sun, 10 Jun 2012 01:01:59 +0000 (18:01 -0700)]
Lrzip doesn't have gradations of support.
Tim Kientzle [Sun, 10 Jun 2012 01:01:29 +0000 (18:01 -0700)]
Only test lrzip write filtering if the lrzip executable is available.
Tim Kientzle [Sun, 10 Jun 2012 00:58:25 +0000 (17:58 -0700)]
Only test lrzip extraction if the lrzip executable is available.
Tim Kientzle [Sun, 10 Jun 2012 00:56:21 +0000 (17:56 -0700)]
Add canLrzip() utility to probe for existence of lrzip executable on this platform.
Tim Kientzle [Sun, 10 Jun 2012 00:55:53 +0000 (17:55 -0700)]
Add lrzip files to the cmake build.
Tim Kientzle [Sun, 10 Jun 2012 00:19:59 +0000 (17:19 -0700)]
Merge pull request #7 from ckolivas/master
Basic support for lrzip compression and decompression.
Tim Kientzle [Sun, 10 Jun 2012 00:01:36 +0000 (17:01 -0700)]
Merge pull request #13 from naota/master
Avoid infinite loop when there's unsupported acl type
Tim Kientzle [Tue, 29 May 2012 20:08:34 +0000 (13:08 -0700)]
Add archive_write_fail() utility to force a write
handle to abort prematurely.
naota [Fri, 25 May 2012 04:03:21 +0000 (13:03 +0900)]
Avoid infinite loop when there's unsupported acl type
Con Kolivas [Mon, 23 Apr 2012 01:04:41 +0000 (11:04 +1000)]
Fix probable leak with program write add filters.
Con Kolivas [Mon, 23 Apr 2012 01:04:13 +0000 (11:04 +1000)]
Add silent build rules for lrzip.
Con Kolivas [Mon, 23 Apr 2012 01:03:39 +0000 (11:03 +1000)]
Add basic archive read and write filter support for lrzip.
Tim Kientzle [Sat, 21 Apr 2012 19:40:15 +0000 (12:40 -0700)]
Fix the setup_acls placeholder used on systems where we don't have
system-dependent ACL support yet.
Tim Kientzle [Mon, 9 Apr 2012 05:06:43 +0000 (22:06 -0700)]
Resuscitate the old NFS4 support code and make it work on FreeBSD-CURRENT.
This includes a new test that archive_write_disk and archive_read_disk
consistently read/write ACL information to/from disk.
This new test currently passes on FreeBSD-CURRENT.
Michihiro NAKAJIMA [Fri, 6 Apr 2012 03:54:47 +0000 (12:54 +0900)]
Fix the dereference of null pointer, which Clang Static Analyzer complained.
Michihiro NAKAJIMA [Fri, 6 Apr 2012 03:40:46 +0000 (12:40 +0900)]
Fix a memory leak.
Michihiro NAKAJIMA [Fri, 6 Apr 2012 03:38:47 +0000 (12:38 +0900)]
Avoid a warning that Clang Static Analyzer complained
"Access to field 'unconsumed' results in a dereference of a null
pointer (loaded from field 'entry_cfdata."
Michihiro NAKAJIMA [Fri, 6 Apr 2012 03:34:57 +0000 (12:34 +0900)]
Remove unneeded code.
Michihiro NAKAJIMA [Thu, 5 Apr 2012 06:59:53 +0000 (15:59 +0900)]
Fix the build failure of libarchive_test on Visual Studio.
Michihiro NAKAJIMA [Wed, 4 Apr 2012 08:52:05 +0000 (17:52 +0900)]
Fix build failure on Visual Studio.
Dan McGee [Tue, 27 Mar 2012 22:22:40 +0000 (17:22 -0500)]
Fixes for GCC 4.7.0
Fixes the following compile error exposed with GCC 4.7.0:
libarchive/archive_string.c: In function 'cesu8_to_unicode':
libarchive/archive_string.c:2450:11: error: 'wc' may be used uninitialized in this function [-Werror=uninitialized]
cc1: all warnings being treated as errors
As well as a test failure that depends on signed integer wraparound,
which is a very bad thing to do in C [1]. Mark the intermediate result
as volatile to prevent the compiler optimizing away the arithmetic and
the logical test.
[1] http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Signed-Overflow-Examples.html
Michihiro NAKAJIMA [Mon, 2 Apr 2012 09:29:48 +0000 (18:29 +0900)]
Initialize the buffer used for FIEMAP to avoid the error messages
valgrind complains about.
Tim Kientzle [Mon, 2 Apr 2012 04:06:23 +0000 (21:06 -0700)]
Only look for libmd if OpenSSL is not present.
In particular, this prevents us from trying to link
both on FreeBSD.
Tim Kientzle [Wed, 28 Mar 2012 05:26:50 +0000 (22:26 -0700)]
Merge pull request #2 from amejia1/multivolume
Multivolume File Read Support
Tim Kientzle [Wed, 28 Mar 2012 05:05:51 +0000 (22:05 -0700)]
Merge pull request #11 from toofishes/iso9660
Iso9660 fixes and cleanups
Dan McGee [Wed, 15 Feb 2012 16:58:23 +0000 (10:58 -0600)]
Remove fallthough-based logic from iso9660 reader
This simplifies the logic quite a bit, cuts down on code size, and
follows the principle of least surprise.
Dan McGee [Tue, 27 Mar 2012 22:06:32 +0000 (17:06 -0500)]
Fix segfault in iso9660 reader
Some odd ISO images do some funny things with RockRidge and Joliet data.
In this particular case, Joliet is used on the CD image, but the first
directory record has no RockRidge data. However, subsequent directory
entries (in the Joliet volume descriptor!) have RockRidge data attached,
although what is noticeably missing are type "NM" or name entries.
This causes seenRockridge to get flipped on, which makes the bad
assumption that seenJoliet is false. This means that when we reach the
code searching for the "rr_moved" special file, we strcmp() against NULL
because our filename is really in file->utf16be_bytes.
This is by far the easiest fix (and likely most correct fix) to this
madness; I have no idea whether a UTF-16 encoded "rr_moved" file can
even exist with whatever mastering software was used on this ISO.
Also note that if you explicitly disable Joliet processing, you get a
very different file listing on this ISO; apparently this is a cleaver
way to hide files from prying eyes in the Windows world:
$ ./bsdtar -t --options 'iso9660:joliet' -f example.iso | wc -l
24
$ ./bsdtar -t --options 'iso9660:!joliet' -f example.iso | wc -l
3060
Dan McGee [Tue, 27 Mar 2012 22:06:10 +0000 (17:06 -0500)]
Use memcmp to find SP extension bytes
Andres Mejia [Fri, 24 Feb 2012 16:05:00 +0000 (11:05 -0500)]
Implement support for reading multivolume RAR archive files.
Andres Mejia [Fri, 24 Feb 2012 15:57:20 +0000 (10:57 -0500)]
Implement support for reading from multiple data objects as one large stream.
This enables support for reading archives split using the split utility.
Michihiro NAKAJIMA [Sat, 24 Mar 2012 12:49:14 +0000 (21:49 +0900)]
Change the default permissions of the regular files in CAB and 7-Zip archives to 0666 as Zip reader.
Tim Kientzle [Fri, 23 Mar 2012 06:32:23 +0000 (23:32 -0700)]
Issue 253: Default to 0666 permissions on files, like Info-Zip does.
Tim Kientzle [Fri, 23 Mar 2012 06:27:24 +0000 (23:27 -0700)]
Fix a compiler warning about redundant 'r' declaration.
Michihiro NAKAJIMA [Thu, 22 Mar 2012 13:57:16 +0000 (22:57 +0900)]
Improve the listing performance of CAB reader; Do not decode compressed data
until archive_read_data* is invoked.
Michihiro NAKAJIMA [Thu, 22 Mar 2012 11:37:43 +0000 (20:37 +0900)]
Use memcpy when copying an uncompressed block for CAB reader performance.
Michihiro NAKAJIMA [Sat, 17 Mar 2012 06:43:55 +0000 (15:43 +0900)]
Issue 250:problem extracting from CAB file.
- Do not clear ds->rbytes_avail when coming back to ST_RD_R0, ST_RD_R1
and ST_RD_R2 statuses with a full of compressed data.
- Correctly skip 16 bits when there is no current bits stream data.
Tim Kientzle [Wed, 21 Mar 2012 05:32:10 +0000 (22:32 -0700)]
Merge pull request #10 from kientzle/
c6508ec53bc0bfdd176069f2e9a37fb590328dc6
Update some manpages
Tim Kientzle [Wed, 21 Mar 2012 04:42:34 +0000 (21:42 -0700)]
Add some mention of new formats to libarchive-formats.5 and libarchive.3
manpages.
Tim Kientzle [Tue, 20 Mar 2012 15:31:21 +0000 (08:31 -0700)]
Merge pull request #9 from ondrejholy/master
archive_write_add_filter()
Michihiro NAKAJIMA [Tue, 20 Mar 2012 10:40:10 +0000 (19:40 +0900)]
An additional fix of issue 249.
- Do not consume read bytes more than the entry used when reading
a uncompressed CAB file.
Michihiro NAKAJIMA [Tue, 20 Mar 2012 04:45:07 +0000 (13:45 +0900)]
Improve test_read_format_cab to just read file names, not read file contents such as "bsdtar tf".
Michihiro NAKAJIMA [Tue, 20 Mar 2012 04:14:40 +0000 (13:14 +0900)]
Fix the bug which the patch for issue 249 made, which bug is that
sometimes sumcheck error hppens when listing a CAB file whose
compression type is none.
Do not consume extra bytes when the compression type is none.
Michihiro NAKAJIMA [Mon, 19 Mar 2012 09:35:07 +0000 (18:35 +0900)]
Separate test_archive_string_normalization into NFC version and NFD version.
Michihiro NAKAJIMA [Sun, 18 Mar 2012 12:23:48 +0000 (21:23 +0900)]
Use pattern matching to find a test. It's useful to check a certain format or filter.
Tim Kientzle [Sun, 18 Mar 2012 06:42:15 +0000 (23:42 -0700)]
Merge pull request #8 from kientzle/fix-email
People with questions should go to the mailing list, not to me.
Tim Kientzle [Sun, 18 Mar 2012 06:16:57 +0000 (23:16 -0700)]
People with questions should go to the mailing list, not
direct to me.
Michihiro NAKAJIMA [Fri, 16 Mar 2012 07:08:26 +0000 (16:08 +0900)]
Rename some internal functions as other related functions.
archive_strcpy_in_locale ==> archive_strcpy_l
archive_strncpy_in_locale ==> archive_strncpy_l
archive_strncat_in_locale ==> archive_strncat_l
Michihiro NAKAJIMA [Fri, 16 Mar 2012 06:41:36 +0000 (15:41 +0900)]
Simplify creating an iconv object on Mac; stop using UTF-8-MAC charset to
iconv, use a common name, UTF-8, and normalize the string instead.
Andres Mejia [Fri, 16 Mar 2012 20:02:26 +0000 (16:02 -0400)]
Allow verbosity level for test programs to be set via environment variables.
Michihiro NAKAJIMA [Thu, 15 Mar 2012 09:47:19 +0000 (18:47 +0900)]
Impelment Unicode normalization Form D in libarchive itself in order not to rely on CoreServices framework on Mac OS.
It passes all NormalizationTest.txt released The Unicode Consortium(http://www.unicode.org).
Michihiro NAKAJIMA [Thu, 15 Mar 2012 05:49:37 +0000 (14:49 +0900)]
Issue 249: Uncompressed CAB fails to read subfile when archive has certain structure.
Michihiro NAKAJIMA [Mon, 12 Mar 2012 11:02:29 +0000 (20:02 +0900)]
Simlify a string conversion from WCS to MBS on Windows.
Michihiro NAKAJIMA [Sun, 11 Mar 2012 15:00:59 +0000 (00:00 +0900)]
Move a definition of HAVE_LINUX_TYPES_H in build/cmake/config.h.in after HAVE_LINUX_MAGIC_H to be in alphabetical order.
Michihiro NAKAJIMA [Sun, 11 Mar 2012 14:56:24 +0000 (23:56 +0900)]
Add a check of linux/types.h into configure.ac, which has already been added
into CMakeLists.txt.
Michihiro NAKAJIMA [Sun, 11 Mar 2012 14:26:47 +0000 (23:26 +0900)]
Simplify a check whether the current filesystem libarchive_test is running
supports FIEMAP on linux; do not check an errno ioctl() returns to use the
same logic to a check of sparse support as libarchive does.
Michihiro NAKAJIMA [Thu, 8 Mar 2012 04:16:50 +0000 (13:16 +0900)]
Remove an outdated comment.
Michihiro NAKAJIMA [Thu, 8 Mar 2012 04:13:53 +0000 (13:13 +0900)]
Properly reuse rar->filename.
Michihiro NAKAJIMA [Wed, 7 Mar 2012 07:55:47 +0000 (16:55 +0900)]
Add a unicode filename sample for test_read_format_rar for issue 247.
Michihiro NAKAJIMA [Wed, 7 Mar 2012 04:00:24 +0000 (13:00 +0900)]
Additional fix to issue 247(Unicode filenames in RAR).
Ondrej Holy [Tue, 6 Mar 2012 19:43:27 +0000 (20:43 +0100)]
Introduce archive_write_add_fitler()
- a convenience function to set the filter based on the code.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:55:18 +0000 (18:55 +0900)]
Issue 247:Unicode filenames inside RAR not working.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:51:19 +0000 (18:51 +0900)]
Move CMAKE_MINIMUM_REQUIRED to the top of CMakeLists.txt to avoid warnings
on Cygwin.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:38:36 +0000 (18:38 +0900)]
CMakePushCheckState module appeared from CMake 2.8.6.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 03:58:28 +0000 (12:58 +0900)]
Do not overwrite CMAKE_BUILD_TYPE if it has already been set.
Record CMAKE_BUILD_TYPE in CACHE so that you can edit CMAKE_BUILD_TYPE
easily through GUI.
Michihiro NAKAJIMA [Mon, 5 Mar 2012 10:30:26 +0000 (19:30 +0900)]
Find out what macro is needed or acceptable to use a external library
such as zlib on CMake build system On Windows. Because if the library
is static library, a macro must be defined to use it on Windows.
Michihiro NAKAJIMA [Sun, 4 Mar 2012 02:19:45 +0000 (11:19 +0900)]
Use CMakePushCheckState module to save and restore CMAKE_REQUIRED_* variables,
which are used in detecting functions and libraries.
Michihiro NAKAJIMA [Wed, 29 Feb 2012 01:56:57 +0000 (10:56 +0900)]
Fix a printf format type for id_t. FreeBSD's id_t is int64_t.
Michihiro NAKAJIMA [Tue, 28 Feb 2012 10:06:38 +0000 (19:06 +0900)]
Avoid the error which Clang Static Analyzer says "Function call argument is an uninitialized value" but actually it might not happen.
Joerg Sonnenberger [Tue, 28 Feb 2012 18:24:30 +0000 (10:24 -0800)]
Merge pull request #6 from jsonn/master
Basic sanity checks to prevent new format string issues in the future
Joerg Sonnenberger [Tue, 28 Feb 2012 15:48:01 +0000 (16:48 +0100)]
Allow format string checking with GCC.
Michihiro NAKAJIMA [Tue, 28 Feb 2012 08:28:16 +0000 (17:28 +0900)]
Properly call archive_read_close() after archive_read_disk_open().
Michihiro NAKAJIMA [Tue, 28 Feb 2012 07:40:38 +0000 (16:40 +0900)]
Improve previous change; reuse a directory traversals object instead of creating a new one.
Michihiro NAKAJIMA [Tue, 28 Feb 2012 05:22:15 +0000 (14:22 +0900)]
Fix the problem that bsdtar with new directory traversals code fail
when creating a newc archive.