]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agoThe code to support concatenated gzip streams is broken and
Tim Kientzle [Thu, 1 Jan 2009 00:57:15 +0000 (19:57 -0500)] 
The code to support concatenated gzip streams is broken and
it breaks some non-concatenated streams.  So just disable this
by always marking EOF immediately when we hit the end of a
gzip stream.

SVN-Revision: 352

16 years agoMerge r343 from trunk, fixes Issue 1.
Tim Kientzle [Wed, 31 Dec 2008 07:07:58 +0000 (02:07 -0500)] 
Merge r343 from trunk, fixes Issue 1.

SVN-Revision: 344

16 years agoMerge r294 from trunk: Fix test on Cygwin.
Tim Kientzle [Sun, 28 Dec 2008 23:57:05 +0000 (18:57 -0500)] 
Merge r294 from trunk:  Fix test on Cygwin.

SVN-Revision: 296

16 years agoLibarchive 2.6 v2.6.0
Tim Kientzle [Sun, 28 Dec 2008 23:55:11 +0000 (18:55 -0500)] 
Libarchive 2.6

SVN-Revision: 295

16 years agoBranch libarchive 2.6 for release
Tim Kientzle [Sun, 28 Dec 2008 20:07:26 +0000 (15:07 -0500)] 
Branch libarchive 2.6 for release

SVN-Revision: 293

16 years agosvn:ignore updates
Tim Kientzle [Sun, 28 Dec 2008 20:03:59 +0000 (15:03 -0500)] 
svn:ignore updates

SVN-Revision: 291

16 years agoFill in missing doc/man and doc/text directories
Tim Kientzle [Sun, 28 Dec 2008 19:49:01 +0000 (14:49 -0500)] 
Fill in missing doc/man and doc/text directories

SVN-Revision: 290

16 years agoIFC
Tim Kientzle [Sat, 27 Dec 2008 22:06:46 +0000 (17:06 -0500)] 
IFC

SVN-Revision: 289

16 years agoIFC: Various style corrections to libarchive_test: Use more
Tim Kientzle [Sat, 27 Dec 2008 22:06:33 +0000 (17:06 -0500)] 
IFC: Various style corrections to libarchive_test:  Use more
informative assertXxxx macros; rework some tests so they give
up before failures get out of hand.

SVN-Revision: 288

16 years agoIFC: Reword an 'ar' error message
Tim Kientzle [Sat, 27 Dec 2008 22:04:38 +0000 (17:04 -0500)] 
IFC: Reword an 'ar' error message

SVN-Revision: 287

16 years agoIFC: libarchive_test now understands FreeBSD's /usr/obj convention.
Tim Kientzle [Sat, 27 Dec 2008 22:03:55 +0000 (17:03 -0500)] 
IFC: libarchive_test now understands FreeBSD's /usr/obj convention.

SVN-Revision: 286

16 years agoIFC: Spell "substitution"
Tim Kientzle [Sat, 27 Dec 2008 22:02:39 +0000 (17:02 -0500)] 
IFC: Spell "substitution"

SVN-Revision: 285

16 years ago2.5.905a with a couple of Cygwin fixes
Tim Kientzle [Sat, 27 Dec 2008 22:00:48 +0000 (17:00 -0500)] 
2.5.905a with a couple of Cygwin fixes

SVN-Revision: 284

16 years agoThe EXT2 ioctls are used on Linux to get/set file flags.
Tim Kientzle [Thu, 25 Dec 2008 14:41:32 +0000 (09:41 -0500)] 
The EXT2 ioctls are used on Linux to get/set file flags.
The header defining these exists on some Cygwin installations,
but it's broken.  I don't think Cygwin supports these ioctls
anyway, so I don't see any point in including the header there.
Someone with more autoconf-fu than I have probably knows a better
solution to this problem.

SVN-Revision: 283

16 years agoStraighten out the close handling. archive_read_close() now
Tim Kientzle [Thu, 25 Dec 2008 14:31:49 +0000 (09:31 -0500)] 
Straighten out the close handling.  archive_read_close() now
walks the decompression filter list, invoking the close handler
on each one.  In particular, this means that the compress handler
should not recursively invoke close on it's source.

SVN-Revision: 282

16 years agoClose a temporary file handle.
Tim Kientzle [Thu, 25 Dec 2008 14:30:17 +0000 (09:30 -0500)] 
Close a temporary file handle.

SVN-Revision: 281

16 years agoWarn about file descriptors (other than stdio) left open after
Tim Kientzle [Thu, 25 Dec 2008 14:29:38 +0000 (09:29 -0500)] 
Warn about file descriptors (other than stdio) left open after
a test.  This should detect various close failures.

SVN-Revision: 280

16 years agoIf conversion from UTF8 fails, don't mark Unicode as available.
Tim Kientzle [Mon, 22 Dec 2008 21:00:05 +0000 (16:00 -0500)] 
If conversion from UTF8 fails, don't mark Unicode as available.
Submitted by: Michihiro NAKAJIMA

SVN-Revision: 279

16 years agoReduce the number of file patterns tested from 200 to 170.
Tim Kientzle [Sun, 21 Dec 2008 19:02:56 +0000 (14:02 -0500)] 
Reduce the number of file patterns tested from 200 to 170.
This seems to be necessary in order to run the tests on Cygwin. (?)
Submitted by: Michihiro NAKAJIMA

SVN-Revision: 278

16 years agoWindows has wctomb() as well.
Tim Kientzle [Sat, 20 Dec 2008 23:54:03 +0000 (18:54 -0500)] 
Windows has wctomb() as well.
Submitted by: Michihiro NAKAJIMA

SVN-Revision: 277

16 years agoIFC.
Tim Kientzle [Sun, 14 Dec 2008 22:05:58 +0000 (17:05 -0500)] 
IFC.

SVN-Revision: 276

16 years agotar likes to use wctype.h when it's available; remember to probe for it
Tim Kientzle [Fri, 12 Dec 2008 23:16:14 +0000 (18:16 -0500)] 
tar likes to use wctype.h when it's available; remember to probe for it

SVN-Revision: 275

16 years ago2.5.904a should be the last RC before 2.6.0
Tim Kientzle [Fri, 12 Dec 2008 00:07:20 +0000 (19:07 -0500)] 
2.5.904a should be the last RC before 2.6.0

SVN-Revision: 274

16 years agoUse open(2) correctly.
Tim Kientzle [Wed, 10 Dec 2008 21:37:06 +0000 (16:37 -0500)] 
Use open(2) correctly.

SVN-Revision: 273

17 years agoWindows: Use __inline in MSVC++ and include the new mtree writer
Tim Kientzle [Mon, 8 Dec 2008 20:21:13 +0000 (15:21 -0500)] 
Windows: Use __inline in MSVC++ and include the new mtree writer
in the windows build.

SVN-Revision: 272

17 years agoProvide configure options to suppress use of zlib, bzlib, and lzmadec.
Tim Kientzle [Sun, 7 Dec 2008 11:42:15 +0000 (06:42 -0500)] 
Provide configure options to suppress use of zlib, bzlib, and lzmadec.
There are a few issues that should be addressed:  The test suites
shouldn't rely so heavily on gzip support; zip decoder should
have a private CRC calculation so it can read (uncompressed) zip
archives without zlib.
Submitted by:   Diego Petten\242

SVN-Revision: 271

17 years agoThe new and improved cpio -tv output relies on local system
Tim Kientzle [Sun, 7 Dec 2008 11:40:32 +0000 (06:40 -0500)] 
The new and improved cpio -tv output relies on local system
conventions, so a naive file comparison can't be used to test
it.  Someday, I'll put together code to carefully parse and verify
the format.  Until then, at least shut up the bogus warnings.
Submitted by:   Diego Petten\242

SVN-Revision: 270

17 years agoFix compile warnings building libarchive without Gzip support.
Tim Kientzle [Sun, 7 Dec 2008 11:39:00 +0000 (06:39 -0500)] 
Fix compile warnings building libarchive without Gzip support.
Submitted by:   Diego Petten\242

SVN-Revision: 269

17 years agoIFC
Tim Kientzle [Fri, 5 Dec 2008 23:44:44 +0000 (18:44 -0500)] 
IFC

SVN-Revision: 268

17 years agoRemove a no-longer needed TODO
Tim Kientzle [Fri, 5 Dec 2008 23:40:37 +0000 (18:40 -0500)] 
Remove a no-longer needed TODO

SVN-Revision: 267

17 years agoIFC
Tim Kientzle [Fri, 5 Dec 2008 23:22:24 +0000 (18:22 -0500)] 
IFC

SVN-Revision: 266

17 years ago2.5.903a
Tim Kientzle [Fri, 5 Dec 2008 23:21:05 +0000 (18:21 -0500)] 
2.5.903a

SVN-Revision: 265

17 years agoIFC
Tim Kientzle [Thu, 4 Dec 2008 22:08:00 +0000 (17:08 -0500)] 
IFC

SVN-Revision: 264

17 years agoAnother attempt to refactor the gzip decompressor.
Tim Kientzle [Thu, 4 Dec 2008 21:58:59 +0000 (16:58 -0500)] 
Another attempt to refactor the gzip decompressor.

SVN-Revision: 263

17 years agoBasic test for gzip compatibility.
Tim Kientzle [Thu, 4 Dec 2008 21:58:03 +0000 (16:58 -0500)] 
Basic test for gzip compatibility.
I've commented out the test for handling concatenated gzip streams,
as it appears I need to do more work on refactoring the read
filter framework before this is reasonable to implement.
Fortunately, concatenated gzip streams are uncommon.

SVN-Revision: 262

17 years agoStrip trailing ';1' and trailing '.' from ISO9660 filenames.
Tim Kientzle [Mon, 24 Nov 2008 22:13:30 +0000 (17:13 -0500)] 
Strip trailing ';1' and trailing '.' from ISO9660 filenames.
This matches common usage a bit better.

SVN-Revision: 261

17 years agoAdd a fuzz tester to the libarchive test suite. This
Tim Kientzle [Sat, 22 Nov 2008 22:02:45 +0000 (17:02 -0500)] 
Add a fuzz tester to the libarchive test suite.  This
takes known-good archives, changes random bytes, then feeds
them through libarchive trying to provoke a crash or hang.

This has exposed a couple of problems reading malformed
ISO9660 images.  As a result, I now have a rewritten
Rockridge extension parser, better handling of malformed
PVDs, and some additional checks around end-of-archive conditions.

SVN-Revision: 260

17 years agoDon't export structure definitions.
Tim Kientzle [Thu, 20 Nov 2008 22:13:10 +0000 (17:13 -0500)] 
Don't export structure definitions.
Submitted by: Ivailo Petrov

SVN-Revision: 259

17 years agoIf you can't verify group restore, mark it as a skipped test,
Tim Kientzle [Tue, 18 Nov 2008 16:38:45 +0000 (11:38 -0500)] 
If you can't verify group restore, mark it as a skipped test,
don't just printf().

SVN-Revision: 258

17 years agoRework Bzip2 stream management. Mostly, this makes the stream
Tim Kientzle [Tue, 18 Nov 2008 16:14:08 +0000 (11:14 -0500)] 
Rework Bzip2 stream management.  Mostly, this makes the stream
initialization lazy so we can re-open the decompressor for
a new stream.  This should allow us to read pbzip2 output,
which compresses large blocks separately and writes them
as independent streams, while still handling files such as
Gentoo binary packages, which store unrelated data after the
end of the bzip2 data.

Thanks to: Ivan Voras for pointing out the pbzip2 case
Thanks to: Diego "Flameeyes" Petteno for pointing out
 the problem with Gentoo binary packages

SVN-Revision: 257

17 years agoDon't assign through a NULL pointer.
Tim Kientzle [Tue, 18 Nov 2008 16:09:40 +0000 (11:09 -0500)] 
Don't assign through a NULL pointer.

SVN-Revision: 256

17 years agoIFC
Tim Kientzle [Tue, 18 Nov 2008 12:33:49 +0000 (07:33 -0500)] 
IFC

SVN-Revision: 255

17 years ago<sigh> Weaken the already-weak LZMA format check.
Tim Kientzle [Thu, 13 Nov 2008 12:43:54 +0000 (07:43 -0500)] 
<sigh> Weaken the already-weak LZMA format check.

SVN-Revision: 254

17 years agoMinor fixes to build on Windows.
Tim Kientzle [Mon, 10 Nov 2008 19:03:49 +0000 (14:03 -0500)] 
Minor fixes to build on Windows.
Submitted by: Ivailo Petrov

SVN-Revision: 253

17 years agoAllow zip reader to build on platforms that lack zlib.
Tim Kientzle [Mon, 10 Nov 2008 19:03:21 +0000 (14:03 -0500)] 
Allow zip reader to build on platforms that lack zlib.
However, this breaks reading non-compressed zip entries as well.
Submitted by: Ivailo Petrov

SVN-Revision: 252

17 years ago2 is more portable than STDERR_FILENO
Tim Kientzle [Mon, 10 Nov 2008 18:59:35 +0000 (13:59 -0500)] 
2 is more portable than STDERR_FILENO

SVN-Revision: 251

17 years agoFix compile error.
Tim Kientzle [Mon, 10 Nov 2008 18:57:16 +0000 (13:57 -0500)] 
Fix compile error.
Submitted by: Ivailo Petrov

SVN-Revision: 250

17 years agoCleanup on platforms that lack utimes() or stat.st_blksize
Tim Kientzle [Mon, 10 Nov 2008 18:55:20 +0000 (13:55 -0500)] 
Cleanup on platforms that lack utimes() or stat.st_blksize
Submitted by: Ivailo Petrov

SVN-Revision: 249

17 years agoFix gzip/bzip2 support compiling on platforms that lack zlib/bzlib.
Tim Kientzle [Mon, 10 Nov 2008 18:53:33 +0000 (13:53 -0500)] 
Fix gzip/bzip2 support compiling on platforms that lack zlib/bzlib.
Submitted by: Ivailo Petrov

SVN-Revision: 248

17 years agoMinor tweak to release script.
Tim Kientzle [Mon, 10 Nov 2008 18:51:41 +0000 (13:51 -0500)] 
Minor tweak to release script.

SVN-Revision: 247

17 years agoIFC
Tim Kientzle [Sun, 9 Nov 2008 20:04:07 +0000 (15:04 -0500)] 
IFC

SVN-Revision: 246

17 years agoUpdate NEWS, version to 2.5.902a.
Tim Kientzle [Sun, 9 Nov 2008 20:02:31 +0000 (15:02 -0500)] 
Update NEWS, version to 2.5.902a.

SVN-Revision: 245

17 years agoShar utility by Jaakko Heinonen
Tim Kientzle [Sun, 9 Nov 2008 19:38:06 +0000 (14:38 -0500)] 
Shar utility by Jaakko Heinonen

SVN-Revision: 244

17 years agoUpdate NEWS with a few of the things that have happened
Tim Kientzle [Sun, 9 Nov 2008 18:00:18 +0000 (13:00 -0500)] 
Update NEWS with a few of the things that have happened
since 2.5.5 was released.  I still need to dig through old
commit messages to fill this in further before releasing 2.6.0.

Bump the version numbers to 2.5.901 to reflect the pre-release
status.  Bump bsdcpio version to 1.1.0.

SVN-Revision: 243

17 years agoAdd LZMA test, more detailed comments about the sorry state
Tim Kientzle [Sun, 9 Nov 2008 17:45:24 +0000 (12:45 -0500)] 
Add LZMA test, more detailed comments about the sorry state
of LZMA magic number checks, update Makefiles to include
lzma reader and lzma test.

Because LZMA support is optional, the lzma test is pretty forgiving
about failures at open time.  It does report the skip (including
the underlying libarchive failure) which should reduce the risk of
false passes somewhat.

SVN-Revision: 242

17 years agoFix lzma decoder to build properly when LZMA libraries are unavailable.
Tim Kientzle [Sat, 8 Nov 2008 21:52:59 +0000 (16:52 -0500)] 
Fix lzma decoder to build properly when LZMA libraries are unavailable.

SVN-Revision: 241

17 years agoBump version to 2.5.900 to start testing of what will become 2.6
Tim Kientzle [Sat, 8 Nov 2008 21:45:44 +0000 (16:45 -0500)] 
Bump version to 2.5.900 to start testing of what will become 2.6

SVN-Revision: 240

17 years agoHack up the lzma decoder to at least compile; there aren't
Tim Kientzle [Sat, 8 Nov 2008 21:44:40 +0000 (16:44 -0500)] 
Hack up the lzma decoder to at least compile; there aren't
any tests for it yet, so I'm not sure if it actually works.

SVN-Revision: 239

17 years agoMinor style update to cpio_bin_bz2 read test.
Tim Kientzle [Sat, 8 Nov 2008 13:59:51 +0000 (08:59 -0500)] 
Minor style update to cpio_bin_bz2 read test.
Make tar_sparse read test a bit more robust; have it stop
after the first header read failure.

SVN-Revision: 238

17 years agoConditionalize some debugging code.
Tim Kientzle [Sat, 8 Nov 2008 13:57:46 +0000 (08:57 -0500)] 
Conditionalize some debugging code.
This also removes an extraneous stdio dependency.
MFP4 after: 3 days

SVN-Revision: 237

17 years agoCheckpoint the read filter rearchitecture.
Tim Kientzle [Wed, 5 Nov 2008 22:18:36 +0000 (17:18 -0500)] 
Checkpoint the read filter rearchitecture.

The read filters now consume blocks from their upstream
providers and provide blocks to their downstream consumers.
All blocks are arbitrarily-sized; the reblocking code that
used to be in "compression_none" has been moved into the read
core and handles the output from the read filters.

The big goal here is to provide support for multiple stacked
read filters.  While this is of little interest for
decompression (people rarely stack multiple compressors), it
does lay the groundwork for encryption, uudecode, and other
filters that are used in combination with each other and with
compression.

This also simplifies the internal API a little (although the
init() method signature is pretty hairy and going to get
worse before I'm done) and has saved a few dozen lines of code
here and there.

This certainly isn't finished: I still have to convert the new
LZMA decompressor, clean up some of the new code, and find
better terminology.  In particular "reader" and "source" are
really awful names.  I'll figure out something better soon; I
promise.

But this does pass all of the tests again (which probably
means I need more tests!) so it seems a good point to check in
what I have.  Hopefully, over the next couple of days, I'll
work out better terminology and give all the new code here a
good scrubbing.

SVN-Revision: 236

17 years agoComment the read I/O model a little more completely.
Tim Kientzle [Wed, 29 Oct 2008 22:40:54 +0000 (18:40 -0400)] 
Comment the read I/O model a little more completely.
Fix a minor bug:  If user asks for the availability, give it
to them even if it's an error code.

SVN-Revision: 235

17 years agoFirst step in transitioning the current decompression code to
Tim Kientzle [Wed, 29 Oct 2008 22:07:37 +0000 (18:07 -0400)] 
First step in transitioning the current decompression code to
a more generic system of stackable stream transforms.
In particular, I believe I've edited every place that called the
decompressor directly to go through new __archive_read_ahead(),
__archive_read_consume() and __archive_read_skip() functions, so
the rest of the work here will not require any changes to the
format handlers.

I've also laid out the new types that will be needed for this.
Next step is to rewrite the decompressors to the new interface,
and overhaul the decompression auction to juggle generic "sources."
Then I'll be able to consolidate reblocking into a single place;
the transforms can emit arbitrary-sized blocks and the current
decompress_none logic will be used to reblock as needed by the
consumer format.

The initial impetus for this was to simplify the decompressors by
consolidating the reblocking logic.  I recently came up with
some other transforms I'd like to implement (including new
decompressors, an encryption filter for secure backup, and
uudecode handling to simplify test harnesses) that would also
benefit from this.  Eventually, I think I might be able to
standardize the interface for new transforms enough to allow
libarchive clients to register their own transforms complete
with bidding logic (the old interface was too wired into libarchive
internals for the API to be exported).  In the very long term,
this might divorce the transformation logic from the rest of
libarchive enough to allow it to be packaged as an independent
library.

SVN-Revision: 234

17 years agoStyle cleanup and sketch out the switch from off_t to int64_t for
Tim Kientzle [Wed, 29 Oct 2008 21:55:12 +0000 (17:55 -0400)] 
Style cleanup and sketch out the switch from off_t to int64_t for
libarchive 3.0.  (Linux off_t isn't always the same size thanks to
the Large File System support in the system headers; it's a huge
headache using it in public headers for shared libraries.)
This is still a bit tentative; "long long" may be a more appropriate
choice here.

SVN-Revision: 233

17 years agoIFC
Tim Kientzle [Tue, 21 Oct 2008 22:23:06 +0000 (18:23 -0400)] 
IFC

SVN-Revision: 232

17 years agoRecent changes to the read-ahead semantics require a
Tim Kientzle [Tue, 21 Oct 2008 22:17:25 +0000 (18:17 -0400)] 
Recent changes to the read-ahead semantics require a
a slight change to the look ahead strategy for SFX ZIP archives.
The new code repeatedly extends the look-ahead window in small
increments.

SVN-Revision: 231

17 years agoDon't use getopt_long() anymore, so don't need to check for it.
Tim Kientzle [Tue, 21 Oct 2008 22:14:07 +0000 (18:14 -0400)] 
Don't use getopt_long() anymore, so don't need to check for it.

SVN-Revision: 230

17 years agoImplement a custom command-line parser for cpio. In return for
Tim Kientzle [Tue, 21 Oct 2008 22:13:29 +0000 (18:13 -0400)] 
Implement a custom command-line parser for cpio.  In return for
these 80 extra lines of code, we get consistent argument
handling on all platforms which in turn will simplify the test
harness.  I did try importing a "standard" getopt_long()
implementation but those tend to be 600+ lines of code and
provoke some awkward namespace conflicts with platform getopt().

SVN-Revision: 229

17 years agoRemove a defunct reference to getopt_long()
Tim Kientzle [Tue, 21 Oct 2008 22:08:41 +0000 (18:08 -0400)] 
Remove a defunct reference to getopt_long()

SVN-Revision: 228

17 years agoReturn ARCHIVE_FATAL instead of -1 for read failures here.
Tim Kientzle [Sun, 19 Oct 2008 22:40:55 +0000 (18:40 -0400)] 
Return ARCHIVE_FATAL instead of -1 for read failures here.
Make end-of-file persistent; don't call the client again.
Comment the upcoming change to the end-of-file semantics for now,
since I still need to do a little more groundwork.

SVN-Revision: 227

17 years agoMake the end-of-archive detection work properly with the new
Tim Kientzle [Sun, 19 Oct 2008 22:38:35 +0000 (18:38 -0400)] 
Make the end-of-archive detection work properly with the new
strict read_ahead() semantics, which return a failure instead of
a short read at end-of-file.  This seems to be one of the very
few cases where the short read is actually informative.

SVN-Revision: 226

17 years agoDon't read ahead more than necessary when scanning cpio headers.
Tim Kientzle [Sun, 19 Oct 2008 22:01:45 +0000 (18:01 -0400)] 
Don't read ahead more than necessary when scanning cpio headers.

SVN-Revision: 225

17 years agoMake a couple of tests a bit more informative and a bit more robust.
Tim Kientzle [Sun, 19 Oct 2008 21:59:19 +0000 (17:59 -0400)] 
Make a couple of tests a bit more informative and a bit more robust.

SVN-Revision: 224

17 years agoTighten up the semantics of read_ahead(): It will now never
Tim Kientzle [Sun, 19 Oct 2008 18:57:16 +0000 (14:57 -0400)] 
Tighten up the semantics of read_ahead():  It will now never
return a short read except at end-of-file (and I think that should
probably return an error as well).  The old loose semantics
resulted in a lot of extra checks throughout the library to verify
the size of the returned data; this is a step towards removing
most such checks.

N.B.: I've only made this change to compression_none for
now since I'm planning to refactor a lot of the compression pipeline
very soon anyway.

SVN-Revision: 223

17 years agoAdd a couple of new test files to the portable Makefile.am
Tim Kientzle [Sun, 19 Oct 2008 18:36:23 +0000 (14:36 -0400)] 
Add a couple of new test files to the portable Makefile.am

SVN-Revision: 222

17 years agoIFC
Tim Kientzle [Sun, 19 Oct 2008 17:20:47 +0000 (13:20 -0400)] 
IFC

SVN-Revision: 221

17 years ago__LA_DEAD is a private convention; don't publicize it.
Tim Kientzle [Sun, 19 Oct 2008 17:17:29 +0000 (13:17 -0400)] 
__LA_DEAD is a private convention; don't publicize it.
Also, clean up leaks of a few other __LA_ symbols that
were introduced to make the public headers more portable.

SVN-Revision: 220

17 years agoCustom from-scratch command-line parser for bsdtar. This is
Tim Kientzle [Mon, 6 Oct 2008 22:55:16 +0000 (18:55 -0400)] 
Custom from-scratch command-line parser for bsdtar.  This is
both more portable and more straightforward than the earlier
getopt()/getopt_long() wrapper approach, requires no fancy
configure/make glue to choose a platform implementation, and
gives me consistent command line parsing on every platform,
which should greatly simplify my attempts at building a robust
test suite.

I should have done this years ago.

SVN-Revision: 219

17 years agoFix bsdtar building on platforms that already have an older
Tim Kientzle [Mon, 6 Oct 2008 22:39:07 +0000 (18:39 -0400)] 
Fix bsdtar building on platforms that already have an older
libarchive installed.

SVN-Revision: 218

17 years agoIntroduce __LA_DEAD to replace current unportable use of
Joerg Sonnenberger [Wed, 1 Oct 2008 14:07:50 +0000 (10:07 -0400)] 
Introduce __LA_DEAD to replace current unportable use of
__dead2 as discussed in August.

SVN-Revision: 217

17 years agoMerge inline hacks into a single conditional. Add MIPSpro based
Joerg Sonnenberger [Wed, 1 Oct 2008 14:06:08 +0000 (10:06 -0400)] 
Merge inline hacks into a single conditional. Add MIPSpro based
on report from Stuart Shelton in NetBSD PR 39628.

SVN-Revision: 216

17 years agoMake formatting consistent with source in SVN.
Tim Kientzle [Mon, 29 Sep 2008 21:09:56 +0000 (17:09 -0400)] 
Make formatting consistent with source in SVN.

SVN-Revision: 215

17 years agoFreeBSD does have birthtimespec.tv_nsec
Tim Kientzle [Mon, 29 Sep 2008 21:09:37 +0000 (17:09 -0400)] 
FreeBSD does have birthtimespec.tv_nsec

SVN-Revision: 214

17 years agoTest file was accidentally omitted from change 150414
Tim Kientzle [Mon, 29 Sep 2008 21:03:23 +0000 (17:03 -0400)] 
Test file was accidentally omitted from change 150414

SVN-Revision: 213

17 years agoOn FreeBSD, we know how to write birthtime to disk.
Tim Kientzle [Wed, 24 Sep 2008 21:43:07 +0000 (17:43 -0400)] 
On FreeBSD, we know how to write birthtime to disk.
Add a new test to exercise different time specifications and
make sure that omitted timestamps, high-res timestamps are
all handled correctly.

SVN-Revision: 212

17 years agoSolution files for building with Visual C++, thanks to Ivailo Petrov.
Tim Kientzle [Thu, 18 Sep 2008 22:34:45 +0000 (18:34 -0400)] 
Solution files for building with Visual C++, thanks to Ivailo Petrov.

SVN-Revision: 211

17 years agoRead/write birthtime in pax format archives.
Tim Kientzle [Wed, 17 Sep 2008 22:27:56 +0000 (18:27 -0400)] 
Read/write birthtime in pax format archives.

Start a basic test for 'pax' format:  Write entries, read them back,
make sure they are the same.  This needs to be extended.  A lot.

Submitted by: Pedro Giffuni (birthtime)

SVN-Revision: 210

17 years agoarchive_entry support for storing and managing birthtime data
Tim Kientzle [Wed, 17 Sep 2008 22:04:52 +0000 (18:04 -0400)] 
archive_entry support for storing and managing birthtime data
Submitted by: Pedro Giffuni

SVN-Revision: 209

17 years agoCompile the lzma read module on FreeBSD, even though it does nothing
Tim Kientzle [Wed, 17 Sep 2008 21:35:14 +0000 (17:35 -0400)] 
Compile the lzma read module on FreeBSD, even though it does nothing
without the lzmadec library.

SVN-Revision: 208

17 years agoLZMA support via GPL lzmadec library.
Tim Kientzle [Wed, 17 Sep 2008 21:34:29 +0000 (17:34 -0400)] 
LZMA support via GPL lzmadec library.

I'd be happier if there were a BSD-licensed lzma library; this
cannot be enabled in FreeBSD base system until that's resolved.

Submitted by: Miklos Vajna

SVN-Revision: 207

17 years agoIFC
Tim Kientzle [Wed, 17 Sep 2008 21:23:41 +0000 (17:23 -0400)] 
IFC

SVN-Revision: 206

17 years agoWindows compilers don't support C99 int64_t. Use __int64 on Windows
Tim Kientzle [Wed, 17 Sep 2008 21:03:33 +0000 (17:03 -0400)] 
Windows compilers don't support C99 int64_t.  Use __int64 on Windows
instead of 'long long' to make the size assumptions clearer.

SVN-Revision: 205

17 years agoIFC
Tim Kientzle [Mon, 15 Sep 2008 22:04:09 +0000 (18:04 -0400)] 
IFC

SVN-Revision: 204

17 years agoIFC
Tim Kientzle [Sat, 13 Sep 2008 22:55:05 +0000 (18:55 -0400)] 
IFC

SVN-Revision: 203

17 years agoIFC
Tim Kientzle [Thu, 11 Sep 2008 22:48:46 +0000 (18:48 -0400)] 
IFC

SVN-Revision: 202

17 years agoStyle fixes: Use Unix-style line endings for consistency with
Tim Kientzle [Thu, 11 Sep 2008 22:46:08 +0000 (18:46 -0400)] 
Style fixes:  Use Unix-style line endings for consistency with
rest of source (fortunately, most Windows code editors are
agnostic about line endings).  Remove trailing spaces, tab
after #define, remove a couple of definitions that are
not actually used in the source.

SVN-Revision: 201

17 years agoIFC: Portability fixes, per Ivailo Petrov
Tim Kientzle [Thu, 11 Sep 2008 22:21:39 +0000 (18:21 -0400)] 
IFC: Portability fixes, per Ivailo Petrov

SVN-Revision: 200

17 years agoUpdates to the Windows support files.
Tim Kientzle [Thu, 11 Sep 2008 22:20:22 +0000 (18:20 -0400)] 
Updates to the Windows support files.
Submitted by: Ivailo Petrov

SVN-Revision: 199

17 years agoA couple of extra configuration tests, inspired by missing features
Tim Kientzle [Thu, 11 Sep 2008 22:19:54 +0000 (18:19 -0400)] 
A couple of extra configuration tests, inspired by missing features
on various Windows compilers.
Submitted by: Ivailo Petrov

SVN-Revision: 198

17 years agoIFC
Tim Kientzle [Sun, 7 Sep 2008 21:25:57 +0000 (17:25 -0400)] 
IFC

SVN-Revision: 197