Tim Kientzle
3381df89e8
Merge r714,r715 from libarchive.googlecode.com: Fix Debian bug #516577 .
...
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.
2009-03-07 01:21:46 +00:00
Tim Kientzle
83829cd8ea
Merge r608 from libarchive.googlecode.com: Clear a newly-allocated
...
bidder object.
2009-03-07 01:18:30 +00:00
Tim Kientzle
98768f0df8
Merge r564,r566 from libarchive.googlecode.com: Fix segfault when
...
specifying an option and the current format doesn't have an
options handler.
2009-03-07 01:17:13 +00:00
Tim Kientzle
071b9e6dc9
Merge the rest of r453 from libarchive.googlecode.com: Test using
...
libarchive APIs to read extended attributes from disk on FreeBSD.
2009-03-07 01:12:01 +00:00
Tim Kientzle
e54dbd0167
Minor whitespace adjustment to reduce diffs with libarchive.googlecode.com.
2009-03-07 01:08:16 +00:00
Tim Kientzle
eee9002fb2
Merge r552,r559 from libarchive.googlecode.com: Support high-resolution
...
timestamps on Tru64, AIX, and GNU Hurd. Thanks to Björn Jacke.
2009-03-07 00:52:02 +00:00
Tim Kientzle
4797bb9435
Merge r283,r529 from libarchive.googlecode.com: Fix ext2_fs.h includes
...
for Linux.
2009-03-07 00:36:50 +00:00
Tim Kientzle
14289cd993
Merge r659 from libarchive.googlecode.com: Correctly report "none"
...
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.
2009-03-07 00:25:33 +00:00
Maksim Yevmenkin
baeef61449
Add Bluetooth compatibility shims. Inspired by Linux BlueZ and NetBSD.
...
Discussed with: Iain Hibbert plunky -at- rya-online -dot- net of NetBSD
MFC after: 1 month
2009-03-06 23:30:07 +00:00
Tim Kientzle
b7baebb91a
Merge r668 from libarchive.googlecode.com: Style correction to the
...
'ar' reader: Don't redefine 'isdigit' and don't create a macro that's
only used once.
2009-03-06 06:14:44 +00:00
Tim Kientzle
f7c755c1db
Merge r541,r542 from libarchive.googlecode.com: Two sign mismatches
...
in the Zip reader.
2009-03-06 06:13:25 +00:00
Tim Kientzle
634fb9dd48
Merge r491,493,500,507,510,530,543 from libarchive.googlecode.com:
...
This implements the new generic options framework that provides a way
to override format- and compression-specific parameters.
2009-03-06 05:58:56 +00:00
Tim Kientzle
ce54c7c56a
Merge r448 from libarchive.googlecode.com: Suppress testing write_disk
...
failures on Windows for now. Someday this will be revisited.
2009-03-06 05:40:09 +00:00
Tim Kientzle
4bf1b0bdfa
Merge r403,702,721 from libarchive.googlecode.com: Handle odd
...
pathnames on Windows by mapping '\\' to '/' and converting
illegal characters to '_'.
2009-03-06 05:38:53 +00:00
Tim Kientzle
af176e930c
Merge r505 from libarchive.googlecode.com: Fix %ju support. Simplify
...
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.
2009-03-06 05:14:55 +00:00
Tim Kientzle
c07eec6459
Merge r457 from libarchive.googlecode.com: Stop appending strerror()
...
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.
2009-03-06 05:13:12 +00:00
Tim Kientzle
a86d4001dd
Merge r420,r494 from libarchive.googlecode.com: Prettify the test
...
harness a bit: remove a dead comment, tweak the wording of the
summary report.
2009-03-06 05:07:03 +00:00
Tim Kientzle
6a7c3e70e3
Merge r435,r443 from libarchive.googlecode.com: Read config files from
...
include path; this makes it easier to support multiple build frameworks.
2009-03-06 05:04:15 +00:00
Tim Kientzle
ce077a6fd8
Merge r416 from libarchive.googlecode.com:
...
Restoring POSIX.1e Extended Attributes on FreeBSD, part 1
This implements the basic ability to restore extended attributes
on FreeBSD, including a test suite.
2009-03-06 04:55:51 +00:00
Tim Kientzle
17fcda1a0b
Merge r407,r508 from libarchive.googlecode.com: Correctly handle
...
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.
2009-03-06 04:50:39 +00:00
Tim Kientzle
43a8e5f098
Merge r399,401,402,405,415,430,440,452,453,458,506,533,536,538,544,590
...
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...
2009-03-06 04:35:31 +00:00
Tim Kientzle
74aced1051
Merge r398 from libarchive.googlecode.com: Check that bidder
...
object was allocated before we try to use it.
2009-03-06 04:22:34 +00:00
Tim Kientzle
c6b235629a
Merge r394,r396 from libarchive.googlecode.com: Plug some memory
...
leaks in the ACL test, correctly mark that FreeBSD has acl_get_perm_np().
2009-03-06 04:21:23 +00:00
Tim Kientzle
341f2011d8
Merge r390,r391,r392,r397 from libarchive.googlecode.com: Virtualize
...
"close" and "finish" across both read and write interfaces.
(Someday, "finish" should be renamed to "free" to better reflect
what it actually does...)
2009-03-05 21:18:10 +00:00
Tim Kientzle
90e7486664
Merge r389 from libarchive.googlecode.com: Fix a memory
...
leak in ISO9660 handler structure whenever a file entry
has a nonsensical CE offset.
2009-03-05 18:38:36 +00:00
Tim Kientzle
e80e6f7018
Merge r386,r395,r451 from libarchive.googlecode.com: On Windows, break
...
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.
2009-03-05 18:30:50 +00:00
Attilio Rao
8655c70597
libc_r_* library is no more required, so just axe it.
...
Approved by: marcel, emaste
Sponsored by: Sandvine Incorporated
2009-03-05 18:27:16 +00:00
Konstantin Belousov
9f960e98aa
Hopefully, improve the grammar and wording in the changes to shmctl(2)
...
manpage and UPDATING entry 20090302.
UPDATING changes suggested by bf2006a yahoo com.
man page corrections by bde.
2009-03-05 12:04:42 +00:00
Tim Kientzle
ffd201719e
Argh. r189389 was supposed to include r539 from libarchive.googlecode.com
...
but those compile fixes somehow got lost. This should fix the build.
2009-03-05 06:26:08 +00:00
Tim Kientzle
241028d43a
Merge r551,r561 from libarchive.googlecode.com: Update gzip read filter
...
to fully take advantage of the new peek/consume I/O support.
In particular, this now properly handles concatenated gzip streams.
2009-03-05 02:37:05 +00:00
Tim Kientzle
facbbae9f9
Merge r364, r378, r379, r393, and r539 from libarchive.googlecode.com:
...
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.
2009-03-05 02:19:42 +00:00
Tim Kientzle
a48ae5111e
Correct r189383, which mis-merged a change from libarchive.googlecode.com.
2009-03-05 01:59:49 +00:00
Xin LI
7ccf00df0d
Our realloc(3) and reallocf(3) can handle NULL, which turns it into a
...
malloc(3) call, so don't test if a pointer is NULL.
Obtained from: OpenBSD (in spirit)
2009-03-05 00:57:01 +00:00
Tim Kientzle
30b7287aff
Merge r356 and r358 from libarchive.googlecode.com: Remove a Windows
...
special case from archive_entry.c, add one to archive_check_magic.c.
2009-03-05 00:44:12 +00:00
Tim Kientzle
a60167b66c
Merge r357 from libarchive.googlecode.com: bzip2 compression
...
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.
2009-03-05 00:42:50 +00:00
Tim Kientzle
24b4dd3387
Merge r362 from libarchive.googlecode.com: Minor fix to
...
custom argument parser.
2009-03-05 00:41:02 +00:00
Tim Kientzle
32baf20434
Merge r342 from libarchive.googlecode.com: Remove some
...
Windows special casing.
2009-03-05 00:36:13 +00:00
Tim Kientzle
faeada5e26
Merge r344 from libarchive.googlecode.com: __LA_INT64_T and __LA_SSIZE_T
...
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.
2009-03-05 00:35:21 +00:00
Tim Kientzle
ba2a6a7201
Merge r341,r345,r346,347 from libarchive.googlecode.com: Style
...
fixes to test harness and a few extra guards to detect tests
that can't succeed on certain platforms.
2009-03-05 00:31:48 +00:00
David Schultz
09efd0ec6a
Add wcpcpy(3) and wcpncpy(3).
2009-03-04 06:01:27 +00:00
David Schultz
ad760e6fc9
Add dprintf() and vdprintf() from POSIX.1-2008. Like getline(),
...
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.
2009-03-04 03:38:51 +00:00
David Schultz
ce5c3df1b2
Fix a file descriptor leak in fts_child().
...
Obtained from: NetBSD
2009-03-04 03:30:21 +00:00
Bruce M Simpson
1acf7fcc63
Considerably improve the wording of this man page.
2009-03-04 01:59:14 +00:00
Bruce M Simpson
0c0fdcfe15
Update copyright.
2009-03-04 01:58:48 +00:00
Xin LI
eb3144b210
Explicitly specify bit width for on-disk data structure.
...
Obtained from: OpenBSD
2009-03-04 01:17:05 +00:00
Xin LI
d170190aa8
Sync license changes.
...
Obtained from: NetBSD
2009-03-04 01:01:26 +00:00
Xin LI
3df1d93483
Style changes (including additional casts to shut up warnings). This
...
commit does not affect MD5 of object file.
2009-03-04 00:58:04 +00:00
Tim Kientzle
9c886c4181
Merge r340 from libarchive.googlecode.com: If zlib/bzlib aren't available,
...
we can still detect gzip/bzip2 compressed streams, we just can't
decompress them.
2009-03-03 17:07:27 +00:00
Tim Kientzle
690f818afd
Merge r294:337,r348:350 from libarchive.googlecode.com: A lot
...
of work to make libarchive work on Windows.
2009-03-03 17:02:51 +00:00
Tim Kientzle
ed466ea1cf
Merge r294 from libarchive.googlecode.com: Skip testing for
...
locale-based failures on systems where the "C" locale is so permissive
that it cannot possibly fail. In particular, this fixes a test
problem on Cygwin.
2009-03-03 07:01:57 +00:00