| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This seems to fix the devel/zziplib port, which distributes
its man pages in an ar archive.
|
|
|
|
|
|
|
|
| |
Add a test to exercise this feature.
This should fix --sparse/-S support in tar.
Thanks to: Daichi GOTO
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In archive_write_disk: If archive_write_header() fails to create
the file, that's a failure and should return ARCHIVE_FAILED.
Metadata restore failures still return ARCHIVE_WARN, because
that's non-critical. Fix test_write_disk_secure test to
verify the correct return code in one case; add test_write_disk_failures
to do another very simple test of restore failure.
This should fix cpio coredumping when it tries to restore to
a write-protected directory.
Thanks to: Giorgos Keramidas
MFC after: 30 days
|
|
|
|
|
|
|
|
| |
an error to read files past the 32bit byte offset, for instance
on DVDs."
Submitted by: phk@
MFC after: 10 days
|
|
|
|
|
|
|
|
| |
end of the compressed stream. This is desirable behavior,
but the implementation here is very broken and causes strange
problems, so disable it for now.
Thanks to Simon L. Nielsen for reporting this problem.
|
|
|
|
|
| |
Submitted by: Michihiro NAKAJIMA
MFC after: 30 days
|
|
|
|
|
|
| |
In development, I run libarchive_test frequently by hand
and it gets tedious having to specify a suitable -r path
all of the time.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
when choosing a scratch directory for the tests. Fallback
to "/tmp", of course.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* support for bzip2 file with multiple concatenated bzip2 streams
* support for bzip2 file with junk after bzip2 stream
* support for gzip file with junk after gzip stream
* "fuzz" tester randomly modifies a bunch of input files in order to try
to crash libarchive (this found an amusing hang in the ISO9660 code
when trying to read images that advertised a zero blocksize).
This test is implemented, but commented out for now:
* support for gzip file with multiple concatenated gzip streams
|
|
|
|
| |
This seems a better match for people's expectations.
|
| |
|
|
|
|
| |
eliminates what should be the only remaining stdio dependency.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is an attempt to eliminate a lot of redundant
code from the read ("decompression") filters by
changing them to juggle arbitrary-sized blocks
and consolidate reblocking code at a single point
in archive_read.c.
Along the way, I've changed the internal read/consume
API used by the format handlers to a slightly
different style originally suggested by des@. It
does seem to simplify a lot of common cases.
The most dramatic change is, of course, to
archive_read_support_compression_none(), which
has just evaporated into a no-op as the blocking
code this used to hold has all been moved up
a level.
There's at least one more big round of refactoring
yet to come before the individual filters are as
straightforward as I think they should be...
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Wrap long declarations to fit 80 chars
* #undef macros that shouldn't be exported
* Organize the version-dependent conditionals a
bit more consistently
Speculative:
* libarchive 3.0 will (eventually) use int64_t
instead of off_t. This is an attempt to avoid
some the headaches caused by Linux LFS. (I'll
still have to do ugly things for the struct stat
references in archive_entry.h, of course.)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
block where it's used; S_ISLNK is more portable than S_ISLINK.
|
|
|
|
| |
special case for it.
|
| |
|
|
|
|
| |
just SKIP the test, don't report a test failure.
|
|
|
|
|
|
|
|
| |
match the code.
PR: docs/128089
Submitted by: Mel
MFC after: 3 days
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
If it's not a regular file, don't return any data, even if the size is unknown.
Update the Zip test with a hand-tweaked Zip archive that has a
directory (with length-at-end set), a regular file without
length-at-end set, and a regular file with length-at-end set and a bad
CRC. Update the test code to verify that the file size is unset
for the regular file with length-at-end.
MFC after: 7 days
|
|
|
|
|
|
|
|
| |
restore fails if ACL provided), apply patch from kern/128203, and verify fix.
PR: kern/128203
Submitted by: Udo Schweigert
MFC after: 3 days
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
| |
MFC after: 30 days
|
|
|
|
|
|
| |
time restore to disk.
MFC after: 30 days
|
|
|
|
|
| |
Submitted by: Pedro Giffuni
MFC after: 30 days
|
|
|
|
|
| |
Submitted by: Pedro Giffuni
MFC after: 30 days
|
|
|
|
| |
which have a 64-bit integer type but don't provide standard C99 definitions.
|
|
|
|
| |
Submitted by: Joerg Sonnenberger
|
|
|
|
| |
rather than on platform.
|
|
|
|
| |
standard than the names are. Remove some trailing whitespace.
|
| |
|
|
|
|
| |
Of course, FreeBSD has both.
|
|
|
|
| |
(which always returns an error when invoked) needs its prototype.
|
|
|
|
| |
restore WARNS=6.
|