| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
use external "gunzip" instead. With this in place, we can unconditionally
enable gzip read support.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Refactor the read_compression_program to add two new abilities:
* Public API: You can now include a signature string when you
register a program; the program will run only on input that
matches the signature string.
* Internal API: You can use the init() function to instantiate
an external program as part of a filter pipeline. This
can be used for graceful fallback (if zlib is unavailable, use
external gzip instead) and to use external programs with
bidders that are more sophisticated than a static signature check.
|
| |
|
|
|
|
|
|
|
| |
Support Joliet extensions. This currently ignores Rockridge extensions
if both exist on the same disk unless the '!joliet' option is provided.
e.g.: tar -xvf example.iso --options '!joliet'
Thanks to: Andreas Henriksson
|
|
|
|
| |
file if it was actually opened. Test for this case.
|
|
|
|
|
| |
Don't crash if client does not provide a skip function. Extend one
of the test cases to use archive_read_open2() with only a read callback.
|
|
|
|
| |
bidder object.
|
|
|
|
|
| |
specifying an option and the current format doesn't have an
options handler.
|
|
|
|
| |
libarchive APIs to read extended attributes from disk on FreeBSD.
|
| |
|
|
|
|
| |
timestamps on Tru64, AIX, and GNU Hurd. Thanks to Björn Jacke.
|
|
|
|
| |
for Linux.
|
|
|
|
|
|
| |
as the compression name when no other read filter bid. Add some
assertions to various tests to verify that read filters are properly
setting the textual name as well as the compression code.
|
|
|
|
|
| |
Discussed with: Iain Hibbert plunky -at- rya-online -dot- net of NetBSD
MFC after: 1 month
|
|
|
|
|
| |
'ar' reader: Don't redefine 'isdigit' and don't create a macro that's
only used once.
|
|
|
|
| |
in the Zip reader.
|
|
|
|
|
| |
This implements the new generic options framework that provides a way
to override format- and compression-specific parameters.
|
|
|
|
| |
failures on Windows for now. Someday this will be revisited.
|
|
|
|
|
| |
pathnames on Windows by mapping '\\' to '/' and converting
illegal characters to '_'.
|
|
|
|
|
|
| |
the code here a bit by making the int formatting functions static to
archive_string_sprintf.c, which is the only place this has ever been
used.
|
|
|
|
|
|
|
| |
information to error strings. This caused a lot of unnecessary
duplication in error messages; in particular, there are a few cases
where error messages get copied from one archive object to another
and this would cause the strerror() info to get appended each time.
|
|
|
|
|
| |
harness a bit: remove a dead comment, tweak the wording of the
summary report.
|
|
|
|
| |
include path; this makes it easier to support multiple build frameworks.
|
|
|
|
|
|
|
| |
Restoring POSIX.1e Extended Attributes on FreeBSD, part 1
This implements the basic ability to restore extended attributes
on FreeBSD, including a test suite.
|
|
|
|
|
|
|
|
|
|
| |
Zip entries that are zero length but stored with deflate. This
is arguably a silly thing to do (deflating a zero-length file actually
makes it bigger) but apparently quite a few Zip writers do this.
This was broken in two places: archive_write_disk disliked being asked
to write data to zero-length files (even if the write was zero-length)
and zip_read_file_header tripped over itself when non-regular files
had compressed bodies.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
from libarchive.googlecode.com: Add a new "archive_read_disk" API
that provides the important service of reading metadata from the
disk. In particular, this will make it possible to remove all
knowledge of extended attributes, ACLs, etc, from clients such
as bsdtar and bsdcpio.
Closely related, this API also provides pluggable uid->uname
and gid->gname lookup and caching services similar to
the uname->uid and gname->gid services provided by archive_write_disk.
Remember this is also required for correct ACL management.
Documentation is still pending...
|
|
|
|
| |
object was allocated before we try to use it.
|
|
|
|
| |
leaks in the ACL test, correctly mark that FreeBSD has acl_get_perm_np().
|
|
|
|
|
|
| |
"close" and "finish" across both read and write interfaces.
(Someday, "finish" should be renamed to "free" to better reflect
what it actually does...)
|
|
|
|
|
| |
leak in ISO9660 handler structure whenever a file entry
has a nonsensical CE offset.
|
|
|
|
|
|
| |
into the debugger on test setup failures (otherwise, the console window
just goes away and you can't see what went wrong). On all platforms,
clean up a stray buffer before exiting.
|
|
|
|
|
| |
Approved by: marcel, emaste
Sponsored by: Sandvine Incorporated
|
|
|
|
|
|
|
| |
manpage and UPDATING entry 20090302.
UPDATING changes suggested by bf2006a yahoo com.
man page corrections by bde.
|
|
|
|
| |
but those compile fixes somehow got lost. This should fix the build.
|
|
|
|
|
| |
to fully take advantage of the new peek/consume I/O support.
In particular, this now properly handles concatenated gzip streams.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the last phase of the "big decompression refactor" that
puts a lazy reblocking layer between each pair of read filters.
I've also changed the terminology for this area---the two kinds
of objects are now called "read filters" and "read filter bidders"---and
moved ownership of these objects to the archive_read core.
This greatly simplifies implementing new read filters, which
can now use peek/consume I/O semantics both for bidding (arbitrary
look-ahead!) and for reading streams (look-ahead simplifies handling
concatenated streams, for instance).
The first merge here is the overhaul proper; the remainder are small
fixes to correct errors in the initial implementation.
|
| |
|
|
|
|
|
|
| |
malloc(3) call, so don't test if a pointer is NULL.
Obtained from: OpenBSD (in spirit)
|
|
|
|
| |
special case from archive_entry.c, add one to archive_check_magic.c.
|
|
|
|
|
| |
support can always be enabled even if bzlib doesn't exist on
this platform; don't give up until we fail to open the file.
|
|
|
|
| |
custom argument parser.
|
|
|
|
| |
Windows special casing.
|
|
|
|
|
| |
are part of the public API and therefore need to be exposed. This is
ugly; I'd like to find a better solution for this.
|
|
|
|
|
| |
fixes to test harness and a few extra guards to detect tests
that can't succeed on certain platforms.
|
| |
|
|
|
|
|
|
| |
dprintf() is a simple wrapper around another function, so we may as
well implement it. But also like getline(), we can't prototype it by
default right now because it would break too many ports.
|
|
|
|
| |
Obtained from: NetBSD
|
| |
|
| |
|
|
|
|
| |
Obtained from: OpenBSD
|