kientzle
de6816e634
Various style fixes to the 'newc' cpio writer:
...
* Warn about truncation of ino
* Use a macro to hide the somewhat obscure pad-to-multiple-of-4 calculation
* Eliminate some unused variables
2009-12-29 05:41:57 +00:00
kientzle
cbe5f60f48
Various fixes when creating objects on disk:
...
* Write xattrs last instead of first (required on platforms that use
system xattrs for security attributes)
* Better handling of chdir() failures
* Don't bother trying to shorten files via seek()/write()
* Fix build on systems that lack link()/symlink()/mknod()
* Prefer futimens()/utimensat() when they're present
2009-12-29 05:35:40 +00:00
kientzle
25112939de
Catch decompression failures earlier. In particular, this gives
...
immediate feedback if we fail to fork an external decompression program.
2009-12-29 05:30:23 +00:00
kientzle
8471ffeefd
Various style and portability fixes, including:
...
* Enforce option interface can only be used before the archive is opened
* Correctly handle large skips on platforms with 32-bit off_t
* Use int64_t instead of off_t
2009-12-29 05:28:28 +00:00
kientzle
7bdc19612b
64-bit ino support and discourage bad use of this header.
2009-12-29 05:20:12 +00:00
kientzle
e86a477412
Portability.
2009-12-28 06:59:35 +00:00
kientzle
1a725d203e
Remove some dead assignments, fix some declarations.
2009-12-28 03:33:05 +00:00
kientzle
36429d6a27
Clarify an example so Linux folks won't keep getting confused by this point.
2009-12-28 03:31:29 +00:00
kientzle
751833b2d3
Compatibility with old systems with non-POSIX getpwuid_r/getgrgid_r.
2009-12-28 03:30:31 +00:00
kientzle
749f336c04
Fix some unused variables and dead assignments.
2009-12-28 03:28:21 +00:00
kientzle
2533f9e873
Remove an unused variable and an unreachable statement.
2009-12-28 03:25:33 +00:00
kientzle
8ae7c78a5f
Fix line endings.
2009-12-28 03:24:56 +00:00
kientzle
49d75536f6
Discourage external use of this header.
2009-12-28 03:20:54 +00:00
kientzle
77b3bad2c6
Remove unused variable.
2009-12-28 03:14:30 +00:00
kientzle
6bd6257279
O_BINARY for Windows.
2009-12-28 03:13:49 +00:00
kientzle
21be9a3355
Handle Zip CRC validation for uncompressed Zip archives even on
...
platforms that lack zlib.
2009-12-28 03:11:36 +00:00
kientzle
c3c58ccb3c
Include limits.h; remove unused variable.
2009-12-28 03:06:27 +00:00
kientzle
9a47973065
Use ino64 interface.
2009-12-28 03:05:31 +00:00
kientzle
4fa2e480dc
Use new ino64 interface.
2009-12-28 03:03:00 +00:00
kientzle
b1d1d36a22
New archive_file_count() utility.
2009-12-28 02:58:14 +00:00
kientzle
cd7df27c58
Portability fixes.
2009-12-28 02:45:56 +00:00
kientzle
5b4a30a490
Various portability fixes, plus:
...
* New "ino64" field.
* New UTF8 interfaces for hardlink/symlink updates
2009-12-28 02:41:27 +00:00
kientzle
a591c39057
Remove an unused variable and an unnecessary increment.
2009-12-28 02:33:22 +00:00
kientzle
d9802a8c44
Eliminate an unused assignment.
2009-12-28 02:29:21 +00:00
kientzle
0ce60e8858
Portability: Set the file descriptor to binary mode on Win32
2009-12-28 02:28:44 +00:00
kientzle
110ffdeb53
Discourage outside use of this internal header.
2009-12-28 02:26:06 +00:00
kientzle
8b011c5d8a
Remove dead assignment.
2009-12-28 02:22:41 +00:00
kientzle
49f605d812
Portability:
...
* some non-FreeBSD platforms do actually define __FBSDID() in sys/cdefs.h
* Borland C <sigh>
2009-12-28 02:22:04 +00:00
kientzle
5796104304
Portability: terminate abnormally via abort() instead of segfault,
...
watch the return value from write(), and avoid signed arithmetic on
unsigned values.
2009-12-28 02:20:23 +00:00
kientzle
0e3650b26a
Allow more formats to be active at a time; discourage outside use.
2009-12-28 02:18:55 +00:00
kientzle
d2acaa3902
Enforce this as an internal-only header.
2009-12-28 02:18:26 +00:00
kientzle
ac6b305380
Discourage people from using this header outside of libarchive.
2009-12-28 02:17:53 +00:00
kientzle
c28b62ef5f
Compatibility: I found some more compilers that don't like 'inline' keyword.
...
Protection: Discourage people from using this header outside libarchive.
2009-12-28 02:17:15 +00:00
kientzle
55a923f0e8
Sync with googlecode some changes that have no impact on FreeBSD.
2009-12-28 02:14:09 +00:00
kientzle
c947d50aa1
Compatibility fix for some older systems with non-POSIX getgrnam_r/getpwnam_r
...
and a minor style fix for the hash function.
2009-12-28 02:09:57 +00:00
kientzle
9de6e5e034
Catch certain gzip failures at close time.
2009-12-28 02:05:28 +00:00
kientzle
2c11cde23a
Remove a dead assignment.
2009-12-28 02:04:42 +00:00
kientzle
9901fb459e
Remove some unused variables and dead assignments.
2009-12-28 02:03:54 +00:00
kientzle
2a6c4953df
Update the hard-coded configuration for libarchive.
2009-12-28 02:01:42 +00:00
kientzle
4b77c8c24b
Update format manpages for libarchive.
2009-12-28 01:50:23 +00:00
kientzle
4cc001f60b
Merge two cpio fixes from libarchive.googlecode.com:
...
1) Avoid an infinite loop in the header resync for certain malformed
archives.
2) Don't try to match hardlinks if the nlinks count is < 2. This
reduces the likelihood of a false hardlink match due to ino truncation.
MFC after: 7 days
2009-12-10 06:42:28 +00:00
kientzle
081d756b8d
Fiz /usr/bin/unzip: A bug deep in libarchive's read-ahead logic
...
(incorrect handling of zero-length reads before the copy buffer is
allocated) is masked by the iso9660 taster. Tar and cpio both enable
that taster so were protected from the bug; unzip is susceptible.
This both fixes the bug and updates the test harness to exercise
this case.
Submitted by: Ed Schouten diagnosed the bug and drafted a patch
MFC after: 7 days
2009-09-08 05:02:41 +00:00
kientzle
aefa5719c9
Update tests to match r195873, which corrected how hardlinked files
...
on iso9660 images were returned. While I'm poking around, update
some comments around this area to try to clarify what's going on and
what still remains to be improved.
2009-09-08 04:52:12 +00:00
kientzle
90b1d6b5da
The parser for Rockridge symlinks tended to insert
...
extra slashes at the beginning of absolute targets.
Thanks to Jung-uk Kim for pointing this out to me.
Approved by: re (kib)
2009-07-26 18:11:44 +00:00
kientzle
a8dfa34a4d
Libarchive recognizes hardlinked files on ISO images,
...
but returned them incorrectly, causing tar to actually
erase the resulting file while trying to restore the
link. This one-line fix corrects the hardlink descriptions
to avoid this problem.
Thanks to Jung-uk Kim for pointing this out.
Approved by: re (kib)
2009-07-25 18:11:55 +00:00
kensmith
9c2c634ee9
Bump the version of all non-symbol-versioned shared libraries in
...
preparation for 8.0-RELEASE. Add the previous version of those
libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.
Reviewed by: kib
Approved by: re (rwatson)
2009-07-19 17:25:24 +00:00
kientzle
19f69f425d
Fix "tar --options=iso9660:joliet" and other uses
...
of format-specific options.
2009-06-20 06:02:21 +00:00
kientzle
52e9bd2d6b
Include libmd and libcrypto in DPADD
2009-05-30 17:26:55 +00:00
kientzle
5c79b23a33
Link libarchive against -lmd and -lcrypto.
...
Thanks to Ed Schouten for the clue.
2009-05-30 07:08:16 +00:00
kientzle
040089ea08
Include the 2 byte length field for the optional "extra data"
...
field when computing the length of the gzip header.
Thanks to Dag-Erling for pointing me to the OpenSSH tarballs,
which are the first files I've seen that actually used this field.
2009-05-23 04:31:05 +00:00