]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Brad King [Wed, 21 Oct 2015 15:47:41 +0000 (11:47 -0400)]
Define ARCHIVE_VERSION_NUMBER before first use
Tim Kientzle [Sat, 24 Oct 2015 11:10:08 +0000 (04:10 -0700)]
These tests only run on Mac; put all the code behind conditionals.
Tim Kientzle [Fri, 23 Oct 2015 15:11:44 +0000 (08:11 -0700)]
It seems we can no longer rely on getting WARN back when
character-set conversion is inexact. Change this test to
reflect the current realities.
Tim Kientzle [Fri, 23 Oct 2015 04:43:07 +0000 (21:43 -0700)]
Don't try to be smart about probing the min/max tim_t values.
Just assume that a signed time_t is really a 64-bit or 32-bit integer.
Tim Kientzle [Wed, 21 Oct 2015 08:47:34 +0000 (01:47 -0700)]
If 7zip is not supported, skip the encryption detection test.
Tim Kientzle [Wed, 21 Oct 2015 08:08:20 +0000 (01:08 -0700)]
When comparing ACLs for these tests, ignore 'Guest' account
information that may vary between machines.
Tim Kientzle [Wed, 30 Sep 2015 03:44:33 +0000 (20:44 -0700)]
Merge pull request #608 from Tarsnap/fix-automake-whitespace
Fix trailing whitespace in Makefile.am
Graham Percival [Tue, 29 Sep 2015 20:33:33 +0000 (13:33 -0700)]
Fix trailing whitespace in Makefile.am
Previously, running the build process gave a warning:
$ sh build/autogen.sh
...
Makefile.am:356: warning: whitespace following trailing backslash
...
This removes that warning.
Tim Kientzle [Sat, 26 Sep 2015 17:16:28 +0000 (10:16 -0700)]
Merge pull request #606 from betafive/pbarker/minitar
Cleanup error message printing in minitar example
Paul Barker [Wed, 2 Sep 2015 09:53:15 +0000 (11:53 +0200)]
Cleanup error message printing in minitar example
* An error message should not be printed if EOF is reached in copy_data. However
an error message should be printed if any other error is encountered.
* A newline should be printed in extract if an error message was printed.
* If a file name is printed in extract (verbose operation) it should be followed
by a space incase there is an error message.
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Tim Kientzle [Thu, 10 Sep 2015 04:20:28 +0000 (21:20 -0700)]
Merge pull request #601 from Tarsnap/strdup-allocation-failure-check
Check for strdup() allocation failure
Graham Percival [Mon, 7 Sep 2015 21:31:49 +0000 (14:31 -0700)]
Check for strdup() allocation failure
Sponsored by: Tarsnap Backup Inc.
Tim Kientzle [Sun, 6 Sep 2015 05:43:09 +0000 (22:43 -0700)]
Rework the la_ssize_t and la_int64_t definitions to avoid
redefining la_int64_t if both archive.h and archive_entry.h are
included. (This avoids a warning from clang that redefining
a typedef is a C11 feature.)
Tim Kientzle [Fri, 4 Sep 2015 16:15:12 +0000 (09:15 -0700)]
Merge pull request #599 from Tarsnap/add-missing-tests-to-automake
add missing tests to automake
Tim Kientzle [Fri, 4 Sep 2015 04:49:40 +0000 (21:49 -0700)]
Merge pull request #596 from Tarsnap/warn-hardlink-target-failure
Warn if target of hard-link is not present
Graham Percival [Thu, 3 Sep 2015 03:17:06 +0000 (20:17 -0700)]
Add test for #595 "warn missing hardlink target"
Graham Percival [Sun, 30 Aug 2015 17:53:12 +0000 (10:53 -0700)]
Warn if target of hard-link is not present
To reproduce,
touch a
ln a b
./bsdtar -c -f warn-hard-links.tar a b
rm a b
./bsdtar -x -f warn-hard-links.tar b
should produce a warning message about failing to create 'b' because the
hard-link target 'a' does not exist. Previously, it did not give any hints
about why 'b' could not be created.
Graham Percival [Thu, 3 Sep 2015 02:09:06 +0000 (19:09 -0700)]
add missing tests to automake
Tim Kientzle [Thu, 27 Aug 2015 15:42:02 +0000 (08:42 -0700)]
Issue 593: Add .travis.yml for Travis-CI
This will help people who want to use Travis-CI to follow
libarchive development. Including Travis-CI status in the
README.md is a separate issue that requires one of the
libarchive maintainers to commit to managing it.
Tim Kientzle [Thu, 27 Aug 2015 15:35:59 +0000 (08:35 -0700)]
Issue 591
Tim Kientzle [Sun, 9 Aug 2015 04:47:43 +0000 (21:47 -0700)]
Issue 547: problems with compress bidder
The code previously was not very careful about verifying the
compression parameters. This led to cases where it failed to
reject invalid compressed data at the beginning. The invalid
left shift was one symptom of this.
The code is now more careful: It verifies that the compression
parameter byte exists and verifies that the maximum code size
is <= 16 bits.
This also includes some new tests to verify that truncated or
otherwise invalid compressed data is rejected.
Tim Kientzle [Sun, 9 Aug 2015 03:52:19 +0000 (20:52 -0700)]
Issue 551: Fix the best-effort UTF8 conversion
If a valid character set conversion is impossible, the code falls back
to a best-effort conversion that preserves ASCII bytes and converts
the rest to Unicode Replacement Characters (if the output is UTF8)
or '?' (otherwise). This code did not correctly track the remaining
bytes in the output buffer; I've replaced this with slower and simpler
code that utilizes the safe string append functions.
Tim Kientzle [Mon, 27 Jul 2015 00:09:22 +0000 (17:09 -0700)]
Issue #582: reject sparse blocks with negative size or offset, detect overflow when tracking sparse blocks
Tim Kientzle [Sun, 26 Jul 2015 23:40:11 +0000 (16:40 -0700)]
Add archive_read_next_header support to archive_read_disk traversals, in addition to archive_read_next_header2
Tim Kientzle [Sun, 26 Jul 2015 22:56:26 +0000 (15:56 -0700)]
Merge pull request #109 from brooksdavis/clear_nochange_fflags
Add flag to allow "immutable" files to be overwritten
Tim Kientzle [Sun, 26 Jul 2015 22:53:15 +0000 (15:53 -0700)]
Merge pull request #583 from Somasis/master
configure.ac: Use pkg-config to find libxml2. Fixes cross compilation
Kylie McClain [Sun, 26 Jul 2015 00:14:23 +0000 (20:14 -0400)]
configure.ac: Use pkg-config to find libxml2. Fixes cross compilation
This was originally submitted to Google Code, and was carried over
during GitHub migration; however, it was in patch form, so I've made
a pull request for it for quicker merging.
Original source: https://github.com/libarchive/libarchive/issues/407
Original author: ambrop7
Tim Kientzle [Sun, 5 Jul 2015 17:13:50 +0000 (10:13 -0700)]
Merge pull request #558 from blastrock/master
Do not use private macros for special types
Tim Kientzle [Sun, 5 Jul 2015 17:11:36 +0000 (10:11 -0700)]
Merge pull request #565 from paulharris/bugfix_gitignore
Add vim swap files to .gitignore
Tim Kientzle [Sun, 5 Jul 2015 17:05:31 +0000 (10:05 -0700)]
Whitespace cleanup after
41965bf
Tim Kientzle [Sun, 5 Jul 2015 16:59:18 +0000 (09:59 -0700)]
Merge branch 'paulharris-issue-read-data'
Paul Harris [Tue, 30 Jun 2015 08:04:59 +0000 (16:04 +0800)]
Add support for archive_read_data() for read_disk archives.
Hoisted the relevant archive_read variables into the
common archive struct.
Tim Kientzle [Mon, 29 Jun 2015 04:08:19 +0000 (21:08 -0700)]
Windows does not support %F, use %Y-%m-%d instead.
Tim Kientzle [Sun, 28 Jun 2015 18:38:49 +0000 (11:38 -0700)]
Remove unnecessary conditional
Tim Kientzle [Sun, 28 Jun 2015 02:39:50 +0000 (19:39 -0700)]
Merge pull request #564 from paulharris/bugfix_utf8
Bugfix - should be copy+converting from mbs to utf. Not mbs to mbs.
Tim Kientzle [Sun, 28 Jun 2015 02:37:57 +0000 (19:37 -0700)]
Merge pull request #568 from paulharris/issue-traverse
Correct comment regarding traverse mount points
Paul Harris [Fri, 26 Jun 2015 08:30:01 +0000 (16:30 +0800)]
Correct comment regarding traverse mount points
The default behaviour is to traverse.
The option is to turn OFF traversal.
Tim Kientzle [Tue, 23 Jun 2015 15:29:06 +0000 (08:29 -0700)]
Fix indentation
Tim Kientzle [Tue, 23 Jun 2015 15:26:09 +0000 (08:26 -0700)]
Merge pull request #566 from paulharris/bugfix_test_330
Test 330 - Add assert to catch a segfault.
Tim Kientzle [Tue, 23 Jun 2015 15:22:33 +0000 (08:22 -0700)]
Merge pull request #562 from paulharris/bugfix_compiler_warning
Fix a few compile warnings (g++ 4.7.2)
Tim Kientzle [Tue, 23 Jun 2015 15:21:45 +0000 (08:21 -0700)]
Merge pull request #561 from paulharris/bugfix_wmemmove
Fix CMake build - add HAVE_WMEMMOVE to config.h.in
Paul Harris [Tue, 23 Jun 2015 14:20:17 +0000 (22:20 +0800)]
Test 330 - Add assert to catch a segfault.
The assert shouldn't fail, but it currently does.
Paul Harris [Tue, 23 Jun 2015 14:27:48 +0000 (22:27 +0800)]
Add vim swap files to .gitignore
Paul Harris [Tue, 23 Jun 2015 14:21:39 +0000 (22:21 +0800)]
Bugfix - should be copy+converting from mbs to utf. Not mbs to mbs.
Paul Harris [Tue, 23 Jun 2015 07:06:17 +0000 (15:06 +0800)]
Fix a few compile warnings (g++ 4.7.2)
Paul Harris [Tue, 23 Jun 2015 07:04:18 +0000 (15:04 +0800)]
Fix CMake build - add HAVE_WMEMMOVE to config.h.in
HAVE_WMEMMOVE was added to CMakeLists.txt in
b6ba5603 ,
but not added to config.h.in
Tim Kientzle [Wed, 17 Jun 2015 04:40:16 +0000 (21:40 -0700)]
Merge pull request #560 from TomerHeber/master
7z inflation fails. #556
TomerHeber [Tue, 16 Jun 2015 18:45:08 +0000 (21:45 +0300)]
Merge pull request #1 from TomerHeber/fix-7zip-bug
Fix for issue - #556
TomerHeber [Tue, 16 Jun 2015 18:42:06 +0000 (21:42 +0300)]
Fix for issue - #556
7z inflation fails
Tim Kientzle [Mon, 15 Jun 2015 18:16:16 +0000 (11:16 -0700)]
Issue #520: Define BCRYPT_SUCCESS for VS2008
Tim Kientzle [Mon, 15 Jun 2015 17:54:56 +0000 (10:54 -0700)]
Issue #520: Visual Studio 2008 is not C99 compliant.
Tim Kientzle [Wed, 10 Jun 2015 14:51:30 +0000 (07:51 -0700)]
Merge pull request #559 from Tarsnap/tarsnap
Minor libarchive fixes from tarsnap
Philippe Daouadi [Tue, 9 Jun 2015 07:52:49 +0000 (09:52 +0200)]
Add compatibility with old #defines
Philippe Daouadi [Mon, 8 Jun 2015 14:10:02 +0000 (16:10 +0200)]
Do not use private macros for special types
When you need to write a callback for archive_read_open2, you must provide a
function which has the same signature as the typedef. The documentation says
that the read callback returns a ssize_t, but on windows there is no such
ssize_t. libarchive falls back on another type and use the private macro
__LA_SSIZE_T, thus it is not possible to write portable code that use
read_open2.
This patch replaces that macro with a simple typedef la_ssize_t (and does the
same for la_int64_t).
Tim Kientzle [Mon, 8 Jun 2015 13:02:46 +0000 (06:02 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Mon, 8 Jun 2015 13:02:09 +0000 (06:02 -0700)]
Test harness should use 'const' buffer here
Tim Kientzle [Mon, 8 Jun 2015 13:01:04 +0000 (06:01 -0700)]
Spelling
Tim Kientzle [Sat, 6 Jun 2015 18:25:31 +0000 (11:25 -0700)]
Merge pull request #555 from orex/master
archive_write_set_format_filter_by_ext: man pages updated.
Kirill Okhotnikov [Tue, 2 Jun 2015 07:47:56 +0000 (09:47 +0200)]
BSD format in manual.
Colin Percival [Sat, 30 May 2015 06:20:57 +0000 (23:20 -0700)]
Free any allocated memory upon allocation failure
Colin Percival [Tue, 2 Jun 2015 05:05:59 +0000 (22:05 -0700)]
Comments: small spelling and grammar fixes
Colin Percival [Tue, 2 Jun 2015 04:57:04 +0000 (21:57 -0700)]
Strings: fix an incorrect name of a function
Kirill Okhotnikov [Mon, 1 Jun 2015 08:31:12 +0000 (10:31 +0200)]
archive_write_set_format_filter_by_ext: man pages updated.
Tim Kientzle [Sun, 31 May 2015 05:32:08 +0000 (22:32 -0700)]
Merge pull request #106 from orex/corrected
Corrected
Tim Kientzle [Tue, 19 May 2015 13:50:49 +0000 (06:50 -0700)]
Merge pull request #544 from pombreda/patch-1
Fixed minor typo
Philippe Ombredanne [Tue, 19 May 2015 08:21:35 +0000 (10:21 +0200)]
Fixed minor typo
Tim Kientzle [Sun, 17 May 2015 21:24:34 +0000 (14:24 -0700)]
Issue #543: Start building out some tests for MSDOS attributes
Tim Kientzle [Sat, 16 May 2015 20:36:13 +0000 (13:36 -0700)]
Merge pull request #536 from pombredanne/patch-1
Fixing path to UC Regents-copyrighted file.
Tim Kientzle [Sat, 16 May 2015 20:35:48 +0000 (13:35 -0700)]
Merge pull request #537 from pombredanne/patch-2
Updating references to tar/matching.c and get_date.c
Tim Kientzle [Sat, 16 May 2015 20:28:10 +0000 (13:28 -0700)]
Issue #523: Fail if entry is too small for encryption header.
Tim Kientzle [Sat, 16 May 2015 19:16:28 +0000 (12:16 -0700)]
Issue #539: Try a different way to compute max/min time_t values.
Tim Kientzle [Sat, 16 May 2015 18:21:16 +0000 (11:21 -0700)]
Issue #540: Fix test to avoid use-after-free error.
Brooks Davis [Tue, 10 Feb 2015 17:43:10 +0000 (17:43 +0000)]
Add a new tar option --clear-nochange-fflags that causes file system
flags which might prevent the removal or modifiction of files to
be cleared before attempting to remove them.
Sponsored by: DARPA, AFRL
Brooks Davis [Tue, 10 Feb 2015 17:39:51 +0000 (17:39 +0000)]
Add a new archive_write_disk option:ARCHIVE_EXTRACT_CLEAR_NOCHANGE_FFLAGS
that clears platform-specific file flags that might prevent the removal
of a file system object before attempting to remove it.
Sponsored by: DARPA, AFRL
Tim Kientzle [Wed, 13 May 2015 15:12:58 +0000 (08:12 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Wed, 13 May 2015 15:12:40 +0000 (08:12 -0700)]
Fix spelling of archive_read_data_into_fd
Philippe Ombredanne [Mon, 11 May 2015 13:22:49 +0000 (15:22 +0200)]
Updating references to tar/matching.c and get_date
tar/matching.c is no a longer a file in the codebase. It has been replaced by libarchive/archive_match.c which is different code.
tar/get_date.c is now libarchive archive_getdate.c
Philippe Ombredanne [Mon, 11 May 2015 13:11:11 +0000 (15:11 +0200)]
Fixing path to UC Regents-copyrighted file.
The path pointed to a file whose name has changed.
Kirill Okhotnikov [Mon, 11 May 2015 11:51:00 +0000 (13:51 +0200)]
Small cosmetic changes.
Tim Kientzle [Sun, 10 May 2015 17:53:15 +0000 (10:53 -0700)]
Github Issue #529: mismatched const usage in archive_read_open_memory.c
Tim Kientzle [Sun, 10 May 2015 17:50:22 +0000 (10:50 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sat, 9 May 2015 20:53:10 +0000 (13:53 -0700)]
Merge pull request #102 from sergiud/master
Fix for VC compilation errors
Tim Kientzle [Sat, 9 May 2015 20:46:46 +0000 (13:46 -0700)]
Merge pull request #534 from rossburton/master
Fix out of tree builds
Tim Kientzle [Sat, 9 May 2015 05:33:06 +0000 (22:33 -0700)]
Merge pull request #531 from hinrichsenhans/master
Fixes for VS2012 Compile
Tim Kientzle [Fri, 8 May 2015 03:51:03 +0000 (20:51 -0700)]
Fix printing of special chars in strdump
Ross Burton [Tue, 5 May 2015 14:29:52 +0000 (15:29 +0100)]
build: fix out of tree builds
When writing files with shell directly it's best to create the target
directory first, as it's possible that the build directory is almost empty.
In particular out of tree builds with automake's dependency tracking
disabled is an easy way of triggering this.
Hans Hinrichsen [Tue, 5 May 2015 03:30:01 +0000 (22:30 -0500)]
Fixes for VS2012 Compile
Updated includes in bsdtar_windows.h to bring in _setmode and _O_BINARY via io.h and fcntl.h
Explicitly cast a few void * to their structs to suppress Intellisense warnings
Moved variable in read_archive - VS2012 needs variables declared at the top of the block (does not support C99)
Tim Kientzle [Sun, 3 May 2015 04:40:26 +0000 (21:40 -0700)]
Extend Zip64 test to verify more of the format details
Hans Hinrichsen [Thu, 30 Apr 2015 03:45:31 +0000 (22:45 -0500)]
Fixes for VS2012 Compile
Fixes for VS2012 Compile
Added headers needed when compiling in Win32 without Cygwin
Some pointers needed to be explicitly cast
VS had a lot of trouble with storing the result of
archive_entry_pathname in a local variable
The only way I could get it to compile was to call the function twice
Tim Kientzle [Sun, 26 Apr 2015 04:58:58 +0000 (21:58 -0700)]
Use a macro wrapper on LL literals for compatibility with certain old Windows compilers.
Tim Kientzle [Tue, 21 Apr 2015 04:07:14 +0000 (21:07 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Tue, 21 Apr 2015 04:06:53 +0000 (21:06 -0700)]
Fix a missing asterisk in the sample code.
Tim Kientzle [Sun, 19 Apr 2015 01:14:17 +0000 (18:14 -0700)]
More wording changes
Tim Kientzle [Sat, 18 Apr 2015 19:50:38 +0000 (12:50 -0700)]
Expand CONTRIBUTING
Tim Kientzle [Sat, 18 Apr 2015 19:28:15 +0000 (12:28 -0700)]
Fix markdown typos
Tim Kientzle [Sat, 18 Apr 2015 19:26:48 +0000 (12:26 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sat, 18 Apr 2015 19:26:14 +0000 (12:26 -0700)]
Add a CONTRIBUTING file. Github shows a link to this in the Issues tracker.
Tim Kientzle [Thu, 13 Nov 2014 04:21:36 +0000 (20:21 -0800)]
Test support for UTF8 pathname extension in Zip archives
Tim Kientzle [Tue, 14 Apr 2015 04:35:00 +0000 (21:35 -0700)]
Merge pull request #108 from maksqwe/zip_encryption
Fix check for ZIP_ENTRY_FLAG_ENCRYPTED
Tim Kientzle [Sun, 12 Apr 2015 18:49:09 +0000 (11:49 -0700)]
Update iconv.m4