]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
11 years agoFix dead store which Clang Static Analyser pointed out,
Michihiro NAKAJIMA [Sun, 6 Jul 2014 02:23:15 +0000 (11:23 +0900)] 
Fix dead store which Clang Static Analyser pointed out,
and some style changes. No functional changes.

11 years agoAdd a test for a bug fix of lha reader.
Michihiro NAKAJIMA [Thu, 3 Jul 2014 11:58:51 +0000 (20:58 +0900)] 
Add a test for a bug fix of lha reader.

11 years agoFix a bug in lha read format.
Michihiro NAKAJIMA [Thu, 3 Jul 2014 11:26:43 +0000 (20:26 +0900)] 
Fix a bug in lha read format.
The bug was it could not correctly extract the compressed data
which had just one repated pattern.

11 years agoProperly set buffer,offset and size when lha format reader returns
Michihiro NAKAJIMA [Wed, 2 Jul 2014 12:12:42 +0000 (21:12 +0900)] 
Properly set buffer,offset and size when lha format reader returns
ARCHIVE_WAR by getting CRC error.o

11 years agoAdd support for lz4 read filter.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 21:44:47 +0000 (06:44 +0900)] 
Add support for lz4 read filter.
TODO: detecting liblz4 library by CMake.

11 years agoFix test_compat_mac failure on non-mac OS X platform.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 10:51:28 +0000 (19:51 +0900)] 
Fix test_compat_mac failure on non-mac OS X platform.
It requries an option 'mac-ext' to pass the test
since commit 95e0b3a4f.

11 years agoFix build failure on Ubuntu.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 09:09:26 +0000 (18:09 +0900)] 
Fix build failure on Ubuntu.

11 years agoFix builid failure on FreeBSD 10.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 08:16:20 +0000 (17:16 +0900)] 
Fix builid failure on FreeBSD 10.
On FreeBSD 10, ENOTSUP and EOPNOTSUPP are the same value,
so it cannot be used in the same switch statement.

11 years agoFix a bug which uudecode filter wrongly decoded the uuencoded data
Michihiro NAKAJIMA [Sun, 29 Jun 2014 07:32:54 +0000 (16:32 +0900)] 
Fix a bug which uudecode filter wrongly decoded the uuencoded data
which size was more than 64K bytes.

11 years agoAdd a test utility function, copy_reference_file simply coping
Michihiro NAKAJIMA [Sun, 29 Jun 2014 07:12:34 +0000 (16:12 +0900)] 
Add a test utility function, copy_reference_file simply coping
a sample file to the current directory of a running test.
A uudecode filter test will use it for its new test.

TODO: make a symbolic link file insted of copying a sample file.
Historically, libarchive cannot handle uuencoded files when
libarchive's test suit was made. Now libarchive can handle it
directly by uudecode filter, I think, we can reduce copying
sample files to the directory test program expects they are
on an isolated directory for their test.

11 years agoAdd bsdcat_test.log and bsdcat_test.trs to .gitignore.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 05:30:51 +0000 (14:30 +0900)] 
Add bsdcat_test.log and bsdcat_test.trs to .gitignore.

11 years agoApply recent changs in libarvhie/test/main.c to {tar,cpio,cat}/test/main.c for keepin...
Michihiro NAKAJIMA [Sun, 29 Jun 2014 05:28:04 +0000 (14:28 +0900)] 
Apply recent changs in libarvhie/test/main.c to {tar,cpio,cat}/test/main.c for keeping maintenacebility.

11 years agoFix build failure.
Michihiro NAKAJIMA [Sun, 29 Jun 2014 05:14:35 +0000 (14:14 +0900)] 
Fix build failure.
error: declaration shadows a variable in the global scope [-Werror,-Wshadow]

11 years agoReformat long calculation, make consistent across copies
Tim Kientzle [Sun, 22 Jun 2014 17:50:17 +0000 (10:50 -0700)] 
Reformat long calculation, make consistent across copies

11 years agoMerge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sun, 22 Jun 2014 17:43:51 +0000 (10:43 -0700)] 
Merge branch 'master' of github.com:libarchive/libarchive

11 years agoTab after #define
Tim Kientzle [Sun, 22 Jun 2014 17:43:44 +0000 (10:43 -0700)] 
Tab after #define

11 years agoUse ARCHIVE_VERSION macros instead of PACKAGE
Tim Kientzle [Sun, 22 Jun 2014 17:43:00 +0000 (10:43 -0700)] 
Use ARCHIVE_VERSION macros instead of PACKAGE

11 years agoMark which tests have skips
Tim Kientzle [Sun, 22 Jun 2014 17:42:23 +0000 (10:42 -0700)] 
Mark which tests have skips

11 years agointerpret times in UTC, not local timezone
Tim Kientzle [Sun, 22 Jun 2014 17:41:51 +0000 (10:41 -0700)] 
interpret times in UTC, not local timezone

11 years agoMerge pull request #82 from r0ro/master
Tim Kientzle [Sat, 21 Jun 2014 21:19:30 +0000 (14:19 -0700)] 
Merge pull request #82 from r0ro/master

Silently ignore lchmod failure in when not supported

11 years agoFix multi-line display
Tim Kientzle [Sat, 21 Jun 2014 21:16:00 +0000 (14:16 -0700)] 
Fix multi-line display

11 years agoReplace \e with plain \
Tim Kientzle [Sat, 21 Jun 2014 21:15:37 +0000 (14:15 -0700)] 
Replace \e with plain \

11 years agoDon't put '' around options within literals
Tim Kientzle [Sat, 21 Jun 2014 20:42:09 +0000 (13:42 -0700)] 
Don't put '' around options within literals

11 years agostart/end display cannot have extra trailing whitespace
Tim Kientzle [Sat, 21 Jun 2014 20:37:33 +0000 (13:37 -0700)] 
start/end display cannot have extra trailing whitespace

11 years agoFix environment tables
Tim Kientzle [Sat, 21 Jun 2014 20:27:09 +0000 (13:27 -0700)] 
Fix environment tables

11 years agoGenerate crossrefs, fix some punctuation
Tim Kientzle [Sat, 21 Jun 2014 20:24:16 +0000 (13:24 -0700)] 
Generate crossrefs, fix some punctuation

11 years agoFix refs to libarchive.3 manpage
Tim Kientzle [Sat, 21 Jun 2014 20:23:39 +0000 (13:23 -0700)] 
Fix refs to libarchive.3 manpage

11 years agoRemove extraneous {}
Tim Kientzle [Sat, 21 Jun 2014 20:23:09 +0000 (13:23 -0700)] 
Remove extraneous {}

11 years agodocument Zip writer options
Tim Kientzle [Sat, 21 Jun 2014 18:31:38 +0000 (11:31 -0700)] 
document Zip writer options

11 years agountar.c bootstrap program is public domain
Tim Kientzle [Sat, 21 Jun 2014 05:05:45 +0000 (22:05 -0700)] 
untar.c bootstrap program is public domain

11 years agoreturns >0 are not errors here
Tim Kientzle [Sat, 21 Jun 2014 04:59:38 +0000 (21:59 -0700)] 
returns >0 are not errors here

11 years agoMerge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sat, 21 Jun 2014 04:40:16 +0000 (21:40 -0700)] 
Merge branch 'master' of github.com:libarchive/libarchive

11 years agoDocument the buggy return codes of archive_write_data when writing to an archive_writ...
Tim Kientzle [Sat, 21 Jun 2014 04:39:50 +0000 (21:39 -0700)] 
Document the buggy return codes of archive_write_data when writing to an archive_write_disk handle; comment that this should change in libarchive 4

11 years agoSilently ignore lchmod failure in when not supported 82/head
Romain Fliedel [Fri, 20 Jun 2014 13:45:09 +0000 (15:45 +0200)] 
Silently ignore lchmod failure in when not supported

lchmod might be defined but not supported by the platform,
(this is the case with musl implementation of fchmodat) in
this case we can safely ignore the error.

11 years agoMerge pull request #81 from hroptatyr/feat/format-warc
Tim Kientzle [Tue, 10 Jun 2014 23:26:28 +0000 (16:26 -0700)] 
Merge pull request #81 from hroptatyr/feat/format-warc

Feat/format warc

11 years agoCheck for legal HTTP but illegal unix filenames in WARCs archives. 81/head
Sebastian Freundt [Tue, 10 Jun 2014 13:42:41 +0000 (13:42 +0000)] 
Check for legal HTTP but illegal unix filenames in WARCs archives.

This changeset will refuse to extract WARCs that contain filenames
a la http://example.com/implicit/content/

There is a todo note in archive_read_support_format_warc.c discussing
possible archive options to extract filenames like those either by
explicit user input or by some sort of heuristic as used in wget
for example.

11 years agoSet archive format, and archive format name.
Sebastian Freundt [Tue, 10 Jun 2014 13:03:31 +0000 (13:03 +0000)] 
Set archive format, and archive format name.

This changeset adheres to the previously imported read test.
The archive format is hard-set to ARCHIVE_FORMAT_WARC, while the
format name is the stringified WARC/x.y version designator, which
for performance reasons will be cached between calls to the header
reader _warc_rdhdr().

11 years agoTests, provide known-good archive read test.
Sebastian Freundt [Tue, 10 Jun 2014 12:24:00 +0000 (12:24 +0000)] 
Tests, provide known-good archive read test.

11 years agoHygiene, set unconsumed slot exactly once for each branch
Sebastian Freundt [Tue, 10 Jun 2014 12:46:32 +0000 (12:46 +0000)] 
Hygiene, set unconsumed slot exactly once for each branch

in _warc_read().  Also kick __archive_read_consume() because the writer
will consume the bytes for us.  So for the EOF case, set unconsumed to 0,
for the non-EOF case set unconsumed to the minimum of the number of bytes
read and the content length.

11 years agoHygiene, always use xmemmem() because memmem() is a GNU extension
Sebastian Freundt [Tue, 10 Jun 2014 12:28:18 +0000 (12:28 +0000)] 
Hygiene, always use xmemmem() because memmem() is a GNU extension

11 years agoHygiene, use FALLTHROUGH instead of lint's @fallthrough@
Sebastian Freundt [Tue, 10 Jun 2014 11:20:08 +0000 (11:20 +0000)] 
Hygiene, use FALLTHROUGH instead of lint's @fallthrough@

11 years agoHygiene, trust __archive_read_ahead() and kick superfluous check.
Sebastian Freundt [Tue, 10 Jun 2014 11:15:42 +0000 (11:15 +0000)] 
Hygiene, trust __archive_read_ahead() and kick superfluous check.

Heeding Tim's advice, a non-NULL from __archive_read_ahead() is
guaranteed to be of at least the minimum size, therefore no need to
check for this condition again.

11 years agoHygiene, protect against NULL filenames in _warc_header()
Sebastian Freundt [Tue, 10 Jun 2014 11:01:06 +0000 (11:01 +0000)] 
Hygiene, protect against NULL filenames in _warc_header()

Return ARCHIVE_WARN immediately.

11 years agoFix, an empty WARC archive needs a bit more than 256 bytes.
Sebastian Freundt [Tue, 10 Jun 2014 11:00:20 +0000 (11:00 +0000)] 
Fix, an empty WARC archive needs a bit more than 256 bytes.

11 years agoTests, heed Tim's advice and emit ARCHIVE_FAILED for entries ...
Sebastian Freundt [Tue, 10 Jun 2014 10:40:45 +0000 (10:40 +0000)] 
Tests, heed Tim's advice and emit ARCHIVE_FAILED for entries ...

that cannot be stored (natively) in WARC format.

11 years agoFix compilation on Tru64 with F_SETTIMES
Brad King [Mon, 9 Jun 2014 14:34:32 +0000 (10:34 -0400)] 
Fix compilation on Tru64 with F_SETTIMES

The parent commit left a typo in the conditional code path for Tru64.
Add the missing '.'.

11 years agoFix compilation on newer HP-UX versions
Rolf Eike Beer [Fri, 6 Jun 2014 15:44:16 +0000 (17:44 +0200)] 
Fix compilation on newer HP-UX versions

Newer HP-UX versions (e.g. 11.31) also offers F_SETTIMES, but with a
different struct for the timing information.

Suggested-by: Eric Berge <ericmberge@gmail.com>
11 years agoIssue #359: Rar drops file if previous filename is a prefix
Tim Kientzle [Wed, 4 Jun 2014 23:57:42 +0000 (16:57 -0700)] 
Issue #359:  Rar drops file if previous filename is a prefix

11 years agoHygiene, clean up xmemmem() code a little, use xor sums.
Sebastian Freundt [Fri, 23 May 2014 08:36:54 +0000 (08:36 +0000)] 
Hygiene, clean up xmemmem() code a little, use xor sums.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
11 years agoStore and read back mtimes through Last-Modified custom header
Sebastian Freundt [Fri, 23 May 2014 08:19:02 +0000 (08:19 +0000)] 
Store and read back mtimes through Last-Modified custom header

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
11 years agoFix, actually consume data between calls to _warc_read()
Sebastian Freundt [Wed, 21 May 2014 15:18:41 +0000 (15:18 +0000)] 
Fix, actually consume data between calls to _warc_read()

11 years agoObey gcc warnings,
Sebastian Freundt [Wed, 21 May 2014 14:32:05 +0000 (14:32 +0000)] 
Obey gcc warnings,

in particular: Don't compare integers of different signedness,
always initialise all members of a struct explicitly.

11 years agofix, WARC files urgently need the filesize to be known when the header is written
Sebastian Freundt [Wed, 21 May 2014 14:11:32 +0000 (14:11 +0000)] 
fix, WARC files urgently need the filesize to be known when the header is written

11 years agofix, request just the bare minimum for a WARC header
Sebastian Freundt [Wed, 21 May 2014 14:10:48 +0000 (14:10 +0000)] 
fix, request just the bare minimum for a WARC header

Moreover, assume a response of less than the bare minimum header
length to be the archive's EOF.

11 years agofix, never write more bytes in _warc_data() than ...
Sebastian Freundt [Wed, 21 May 2014 12:32:50 +0000 (12:32 +0000)] 
fix, never write more bytes in _warc_data() than ...

previously announce in _warc_header().

The test suite (as is) is one offender.  It populates a 9-byte string, mimicking an IFREG file
but by the time the header makes it into the archive, the size changes from 0 to 9.

11 years agoProvide WARC read/write tests
Sebastian Freundt [Wed, 21 May 2014 11:24:55 +0000 (11:24 +0000)] 
Provide WARC read/write tests

11 years agoImplant WARC support in tar's get_format_code()
Sebastian Freundt [Wed, 21 May 2014 11:20:35 +0000 (11:20 +0000)] 
Implant WARC support in tar's get_format_code()

11 years agoProvide ISO 28500:2009 reader (aka warc, aka web archive)
Sebastian Freundt [Tue, 20 May 2014 13:26:50 +0000 (13:26 +0000)] 
Provide ISO 28500:2009 reader (aka warc, aka web archive)

11 years agoProvide ISO 28500:2009 writer (aka warc, aka web archive)
Sebastian Freundt [Tue, 20 May 2014 08:19:38 +0000 (08:19 +0000)] 
Provide ISO 28500:2009 writer (aka warc, aka web archive)

11 years agoMerge pull request #80 from sergiud/master
Tim Kientzle [Sat, 10 May 2014 04:00:30 +0000 (21:00 -0700)] 
Merge pull request #80 from sergiud/master

Check whether file handle is valid

11 years agocheck handle validity when closing a file 80/head
Sergiu Dotenco [Mon, 5 May 2014 14:18:51 +0000 (16:18 +0200)] 
check handle validity when closing a file

This eliminates an assertion under Windows that occurs when an archive cannot be
opened.

11 years agoZip: Adjust streaming extension field to match the final spec worked out with Info...
Tim Kientzle [Sun, 4 May 2014 05:59:31 +0000 (22:59 -0700)] 
Zip: Adjust streaming extension field to match the final spec worked out with Info-Zip folks

11 years agoMerge pull request #79 from maksqwe/duplicate_expression_fix
Tim Kientzle [Thu, 17 Apr 2014 01:08:28 +0000 (18:08 -0700)] 
Merge pull request #79 from maksqwe/duplicate_expression_fix

Remove duplicate expressions

11 years agoremove duplicate expressions in file_information() 79/head
Maks Naumov [Wed, 16 Apr 2014 22:03:53 +0000 (01:03 +0300)] 
remove duplicate expressions in file_information()

11 years agoremove duplicate expressions in entry_copy_bhfi()
Maks Naumov [Wed, 16 Apr 2014 22:02:39 +0000 (01:02 +0300)] 
remove duplicate expressions in entry_copy_bhfi()

11 years agoMerge pull request #77 from biometrics/additional_libs_scope
Tim Kientzle [Wed, 16 Apr 2014 01:56:37 +0000 (18:56 -0700)] 
Merge pull request #77 from biometrics/additional_libs_scope

just link the archive_static with ADDITIONAL_LIBS

11 years agojust link the archive_static with ADDITIONAL_LIBS 77/head
Josh Klontz [Tue, 15 Apr 2014 20:53:41 +0000 (16:53 -0400)] 
just link the archive_static with ADDITIONAL_LIBS

11 years agoMerge pull request #76 from biometrics/additional_libs_scope
Tim Kientzle [Tue, 15 Apr 2014 02:19:05 +0000 (19:19 -0700)] 
Merge pull request #76 from biometrics/additional_libs_scope

fixed 'current scope has no parent' warning

11 years agofixed 'current scope has no parent' warning 76/head
Josh Klontz [Mon, 14 Apr 2014 20:48:10 +0000 (16:48 -0400)] 
fixed 'current scope has no parent' warning

11 years agoAdd lafe files to cat project
Tim Kientzle [Sat, 12 Apr 2014 20:56:29 +0000 (13:56 -0700)] 
Add lafe files to cat project

11 years agoAdd missing file.
Tim Kientzle [Sat, 12 Apr 2014 20:56:04 +0000 (13:56 -0700)] 
Add missing file.

11 years agoMerge pull request #69 from ice799/fix_shadowing
Tim Kientzle [Sat, 12 Apr 2014 16:50:11 +0000 (09:50 -0700)] 
Merge pull request #69 from ice799/fix_shadowing

Fix shadowing warning for identifier symlink

11 years agoMerge pull request #74 from mk-fg/add_bsdcat_tests
Tim Kientzle [Sat, 12 Apr 2014 16:49:24 +0000 (09:49 -0700)] 
Merge pull request #74 from mk-fg/add_bsdcat_tests

Add bsdcat tests

11 years agoMerge pull request #75 from biometrics/additional_libs_scope
Tim Kientzle [Sat, 12 Apr 2014 16:45:07 +0000 (09:45 -0700)] 
Merge pull request #75 from biometrics/additional_libs_scope

Expose ADDITIONAL_LIBS

11 years agoExpose ADDITIONAL_LIBS for projects using libarchive as a subdirectory and linking... 75/head
Josh Klontz [Sat, 12 Apr 2014 14:25:48 +0000 (10:25 -0400)] 
Expose ADDITIONAL_LIBS for projects using libarchive as a subdirectory and linking against archive_static.

11 years agoAdd basic tests for bsdcat. 74/head
Mike Kazantsev [Tue, 8 Apr 2014 21:22:22 +0000 (03:22 +0600)] 
Add basic tests for bsdcat.

11 years agoExit with error status from bsdcat if any errors occurred.
Mike Kazantsev [Tue, 8 Apr 2014 19:24:59 +0000 (01:24 +0600)] 
Exit with error status from bsdcat if any errors occurred.

11 years agoReturn success exit code from "bsdcat --help" and print usage to stdout.
Mike Kazantsev [Tue, 8 Apr 2014 19:19:48 +0000 (01:19 +0600)] 
Return success exit code from "bsdcat --help" and print usage to stdout.

11 years agoAdd missing backslash before bsdcat_EXTRA_DIST.
Mike Kazantsev [Tue, 8 Apr 2014 18:32:04 +0000 (00:32 +0600)] 
Add missing backslash before bsdcat_EXTRA_DIST.

11 years agoSort .gitignore, add cat deps/dirstamp files.
Mike Kazantsev [Tue, 8 Apr 2014 18:31:09 +0000 (00:31 +0600)] 
Sort .gitignore, add cat deps/dirstamp files.

11 years agoMerge pull request #73 from betafive/pbarker/deflate
Tim Kientzle [Mon, 7 Apr 2014 01:05:41 +0000 (18:05 -0700)] 
Merge pull request #73 from betafive/pbarker/deflate

Prevent unnecessary linking against deflate code

11 years agoMerge pull request #72 from betafive/pbarker/fix-zip
Tim Kientzle [Mon, 7 Apr 2014 01:02:59 +0000 (18:02 -0700)] 
Merge pull request #72 from betafive/pbarker/fix-zip

Fix intermittent segfault when reading zip files

11 years agoMerge pull request #70 from mk-fg/add_bsdcat_tool
Tim Kientzle [Mon, 7 Apr 2014 01:00:04 +0000 (18:00 -0700)] 
Merge pull request #70 from mk-fg/add_bsdcat_tool

Add optional bsdcat tool

11 years agoMinor style correction in bsdcat. 70/head
Mike Kazantsev [Sun, 6 Apr 2014 22:30:49 +0000 (04:30 +0600)] 
Minor style correction in bsdcat.

11 years agoUse snprintf to print to zip->format_name 72/head
Paul Barker [Sun, 6 Apr 2014 22:12:26 +0000 (23:12 +0100)] 
Use snprintf to print to zip->format_name

zip->format_name is a fixed size character array so ensure that the number of
characters written to the array is appropriately limited.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
11 years agoFix intermittent segfault when reading zip files
Paul Barker [Sun, 6 Apr 2014 21:54:48 +0000 (22:54 +0100)] 
Fix intermittent segfault when reading zip files

When looking up the compression name for a zip file the index variable was being
incremented too soon. Thus element zero ("uncompressed") was never checked and
reads could be made past the end of the array. This was causing intermittent
segfaults in the call to sprintf in zip_read_local_file_header.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
11 years agoPrevent unnecessary linking against deflate code 73/head
Paul Barker [Thu, 6 Feb 2014 21:20:06 +0000 (21:20 +0000)] 
Prevent unnecessary linking against deflate code

In _archive_write_disk_free, the call to deflateEnd was compiled if HAVE_ZLIB_H
was defined. However, all other calls to deflate functions were only compiled
if __APPLE__, UF_COMPRESSED and HAVE_SYS_XATTR_H were also defined. So if one of
these macros was not defined but HAVE_ZLIB_H was defined, the call the
deflateEnd would be unnecessary as deflateInit could never have been called.

In statically linked applications which don't use deflate functions elsewhere
this was causing unnecessary linking of the deflate code from zlib, adding at
least 20k of object code to the final executable size.

This patch fixes the above issue by surrounding the call to deflateEnd with the
same conditional compilation checks as surround the call to deflateInit.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
11 years agoMerge pull request #71 from betafive/pbarker/extract
Tim Kientzle [Sun, 6 Apr 2014 17:47:11 +0000 (10:47 -0700)] 
Merge pull request #71 from betafive/pbarker/extract

Split archive_read_extract.c into two source files

11 years agoSplit archive_read_extract2 from archive_read_extract 71/head
Paul Barker [Sun, 6 Apr 2014 14:48:24 +0000 (15:48 +0100)] 
Split archive_read_extract2 from archive_read_extract

The function archive_read_extract requires a call to
archive_write_disk_set_standard_lookup but the functions archive_read_extract2
and archive_read_extract_set_progress_callback do not. Therefore, the latter
pair of functions, the internal function __archive_read_get_extract and the
static function copy_data are moved out of archive_read_extract.c into the new
file archive_read_extract2.c.

This ensures that when statically linking, the standard user and group lookup
functions will not be linked into a program unless they are really needed.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
11 years agoRefactor archive_read_extract
Paul Barker [Sun, 6 Apr 2014 13:37:03 +0000 (14:37 +0100)] 
Refactor archive_read_extract

The initialisation of the archive_write_disk object and the call to
archive_write_disk_set_standard_lookup are only needed in the
archive_read_extract function, not in archive_read_extract2 or other related
functions. Therefore this initialisation is merged into archive_read_extract.

The static function get_extract is renamed to __archive_read_get_extract so that
is can be made non-static. The struct extract is renamed to archive_read_extract
so that it can be placed in a header file without risk of namespace clashes.
Both these declarations are then moved to the archive_read_private.h header.
This preparation is necessary so that the contents of archive_read_extract.c can
be split between two source files.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
11 years agoMinor cleanup of a redundant check in bsdcat cli parsing.
Mike Kazantsev [Sat, 5 Apr 2014 22:55:02 +0000 (04:55 +0600)] 
Minor cleanup of a redundant check in bsdcat cli parsing.

11 years agoChange bsdcat behavior to process as many files as possible.
Mike Kazantsev [Sat, 5 Apr 2014 22:40:40 +0000 (04:40 +0600)] 
Change bsdcat behavior to process as many files as possible.

Change is to match "cat" behavior of printing any errors (e.g. "unable to
open file") and continue to the next file instead of exiting on first error
encountered.

11 years agoUse getopt() instead of getopt_long() in bsdcat for compatibility reasons.
Mike Kazantsev [Sat, 5 Apr 2014 22:33:26 +0000 (04:33 +0600)] 
Use getopt() instead of getopt_long() in bsdcat for compatibility reasons.

11 years agoAdd optional bsdcat tool.
Mike Kazantsev [Fri, 4 Apr 2014 09:59:15 +0000 (15:59 +0600)] 
Add optional bsdcat tool.

bsdcat works like zcat, bzcat, xzcat and similar tools, but auto-detects
source data format, which can also vary between multiple input files.

11 years agoFix shadowing warning for identifier symlink 69/head
Joe Damato [Mon, 24 Mar 2014 08:32:11 +0000 (08:32 +0000)] 
Fix shadowing warning for identifier symlink

11 years agoMerge pull request #68 from guidefloripa/master
Tim Kientzle [Tue, 18 Mar 2014 03:43:07 +0000 (20:43 -0700)] 
Merge pull request #68 from guidefloripa/master

Fix memory leak for 7zip/xz

11 years agoUpdate xz compatibility for reading xz. 68/head
Guilherme Steinmann [Mon, 17 Mar 2014 13:10:55 +0000 (10:10 -0300)] 
Update xz compatibility for reading xz.

11 years agoUpdate xz compatibility for reading 7zip.
Guilherme Steinmann [Mon, 17 Mar 2014 13:01:59 +0000 (10:01 -0300)] 
Update xz compatibility for reading 7zip.

11 years agoMerge pull request #63 from sergiud/master
Tim Kientzle [Sun, 16 Mar 2014 17:27:20 +0000 (10:27 -0700)] 
Merge pull request #63 from sergiud/master

Do not redefine _WIN32_WINNT and WINVER

11 years agoMerge pull request #61 from kevinoid/ignore_zeros
Tim Kientzle [Sun, 16 Mar 2014 17:25:49 +0000 (10:25 -0700)] 
Merge pull request #61 from kevinoid/ignore_zeros

Add --ignore-zeros option to bsdtar