]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
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

17 years agoIFC
Tim Kientzle [Sat, 6 Sep 2008 16:33:54 +0000 (12:33 -0400)] 
IFC

SVN-Revision: 196

17 years agoIFC
Tim Kientzle [Thu, 4 Sep 2008 23:17:01 +0000 (19:17 -0400)] 
IFC

SVN-Revision: 194

17 years agoIFC
Tim Kientzle [Mon, 1 Sep 2008 14:38:22 +0000 (10:38 -0400)] 
IFC

SVN-Revision: 193

17 years agoStyle: sort entries
Tim Kientzle [Sun, 31 Aug 2008 22:04:14 +0000 (18:04 -0400)] 
Style:  sort entries

SVN-Revision: 192

17 years agoCorrect a couple of typos in the missing-atime and missing-mtime logic
Tim Kientzle [Sat, 30 Aug 2008 23:29:46 +0000 (19:29 -0400)] 
Correct a couple of typos in the missing-atime and missing-mtime logic

SVN-Revision: 191

17 years agoIFC: Resolve different handling of missing atime/mtime in SVN vs
Tim Kientzle [Sat, 30 Aug 2008 22:43:15 +0000 (18:43 -0400)] 
IFC: Resolve different handling of missing atime/mtime in SVN vs
current P4 code (which relies on some facilities not yet in SVN).

SVN-Revision: 190

17 years agoIFC
Tim Kientzle [Wed, 27 Aug 2008 23:43:15 +0000 (19:43 -0400)] 
IFC

SVN-Revision: 189

17 years agoIFC
Tim Kientzle [Sun, 24 Aug 2008 23:41:44 +0000 (19:41 -0400)] 
IFC

SVN-Revision: 188

17 years agoI've been corrected: -no-undefined is meaningful for
Tim Kientzle [Sun, 24 Aug 2008 23:02:20 +0000 (19:02 -0400)] 
I've been corrected:  -no-undefined is meaningful for
other platforms.

SVN-Revision: 187

17 years agoUpdate Makefile.am with some new reference files for bsdtar_test.
Tim Kientzle [Sun, 24 Aug 2008 00:29:11 +0000 (20:29 -0400)] 
Update Makefile.am with some new reference files for bsdtar_test.

SVN-Revision: 186

17 years agoInclude the new cpio tests.
Tim Kientzle [Sun, 24 Aug 2008 00:19:54 +0000 (20:19 -0400)] 
Include the new cpio tests.

SVN-Revision: 185

17 years agoIFC
Tim Kientzle [Sat, 23 Aug 2008 23:37:23 +0000 (19:37 -0400)] 
IFC

SVN-Revision: 184

17 years agoUpdate the description of -no-undefined, required by libtool on Cygwin.
Tim Kientzle [Sat, 23 Aug 2008 23:33:45 +0000 (19:33 -0400)] 
Update the description of -no-undefined, required by libtool on Cygwin.

SVN-Revision: 183

17 years agoIFC
Tim Kientzle [Tue, 19 Aug 2008 22:33:06 +0000 (18:33 -0400)] 
IFC

SVN-Revision: 182

17 years agoIFC: test suite builds with 1.x API
Tim Kientzle [Mon, 11 Aug 2008 20:24:50 +0000 (16:24 -0400)] 
IFC: test suite builds with 1.x API

SVN-Revision: 181

17 years agoIFC: Colin's __dead2 markers
Tim Kientzle [Sat, 9 Aug 2008 13:15:31 +0000 (09:15 -0400)] 
IFC: Colin's __dead2 markers

SVN-Revision: 180

17 years agoFix man page formatting.
Joerg Sonnenberger [Tue, 5 Aug 2008 11:08:52 +0000 (07:08 -0400)] 
Fix man page formatting.

SVN-Revision: 179

17 years agoRevert unintentional commit of wip changes for
Joerg Sonnenberger [Mon, 4 Aug 2008 07:31:57 +0000 (03:31 -0400)] 
Revert unintentional commit of wip changes for
archive_write_set_compression_compress.c.

SVN-Revision: 178

17 years agoIFC
Tim Kientzle [Sun, 3 Aug 2008 17:26:20 +0000 (13:26 -0400)] 
IFC

SVN-Revision: 177

17 years agoIFC
Tim Kientzle [Sun, 3 Aug 2008 16:46:13 +0000 (12:46 -0400)] 
IFC

SVN-Revision: 176

17 years agoSVN-Revision: 175
Tim Kientzle [Sun, 3 Aug 2008 16:40:32 +0000 (12:40 -0400)] 
SVN-Revision: 175

17 years agoQuote string before writing them to the shell script.
Joerg Sonnenberger [Thu, 31 Jul 2008 09:18:34 +0000 (05:18 -0400)] 
Quote string before writing them to the shell script.

SVN-Revision: 174

17 years agoRestore sparse file handling from before 146023:
Joerg Sonnenberger [Thu, 31 Jul 2008 07:33:17 +0000 (03:33 -0400)] 
Restore sparse file handling from before 146023:
Don't write to the last block if the filesystem implements
the XSI extension for ftruncate.

While here, flush the the stat cache again after the write in
the fallback case.

SVN-Revision: 173

17 years agoFix building in separate dir.
Tim Kientzle [Wed, 30 Jul 2008 21:02:21 +0000 (17:02 -0400)] 
Fix building in separate dir.
Submitted by: Toby Peterson

SVN-Revision: 172

17 years agoModify test_basic to verify that cpio is ignoring umask
Tim Kientzle [Tue, 29 Jul 2008 20:48:57 +0000 (16:48 -0400)] 
Modify test_basic to verify that cpio is ignoring umask
when copying files.  In particular, this verifies the
recent fix to cpio.c to set ARCHIVE_EXTRACT_PERM.

SVN-Revision: 171

17 years agoMinor corrections: remove unused vars, fix a couple of
Tim Kientzle [Tue, 29 Jul 2008 20:28:13 +0000 (16:28 -0400)] 
Minor corrections:  remove unused vars, fix a couple of
type issues.

SVN-Revision: 170

17 years agoPreserve all permissions by default.
Tim Kientzle [Tue, 29 Jul 2008 20:27:19 +0000 (16:27 -0400)] 
Preserve all permissions by default.
In particular, this fixes the curiosity that cpio -dumpl would
apply umask to the new dirs (which got created) but not
to the new files (which are just links to the existing files).

Thanks to Kris Kennaway for reminding me about this one.

SVN-Revision: 169

17 years agoIf the size is unknown, don't limit data writes.
Tim Kientzle [Sat, 26 Jul 2008 21:20:32 +0000 (17:20 -0400)] 
If the size is unknown, don't limit data writes.
This seems to straighten out some of the disk-write semantics
and should solve a problem with Zip extraction when the
size of the file is not known in advance.

SVN-Revision: 168

17 years agoProvide a hook for unsetting the size field.
Tim Kientzle [Sat, 26 Jul 2008 21:17:48 +0000 (17:17 -0400)] 
Provide a hook for unsetting the size field.
Use it in the link resolver for correctly marking hard links
where the size of the linked-to file is actually unknown.

SVN-Revision: 167

17 years agoIf atime is not set, use the time at which the archive_write_disk
Tim Kientzle [Sat, 26 Jul 2008 10:35:02 +0000 (06:35 -0400)] 
If atime is not set, use the time at which the archive_write_disk
object was created, instead of a default zero.
PR: bin/124915

SVN-Revision: 166

17 years agoAdd a bitmap in the entry to track which values have been
Tim Kientzle [Sat, 26 Jul 2008 10:32:39 +0000 (06:32 -0400)] 
Add a bitmap in the entry to track which values have been
set.  Change the ad hoc symlink and hardlink tracking to use
the new bitmap, add tracking for atime and size fields.
This is motivated by some errors restoring Zip entries where
the file size is not known and by errors restoring file
times (utimes(2) sets both atime and mtime, old tar archives
only store mtime).
PR: bin/124915

SVN-Revision: 165

17 years ago- don't push data line wise to the compressor, accumulate it
Joerg Sonnenberger [Sat, 26 Jul 2008 01:00:11 +0000 (21:00 -0400)] 
- don't push data line wise to the compressor, accumulate it
  in local buffer
- reduce required error checking as fewer writes to the
  compressor need attention
- explicitly initialise the work string, don't depend on memset
  for that
- optimise inner loop of sed backend to take ~25% less time
- simplify and optimise uuencoding to always work on full lines,
  padding them explicitly with NUL (harmless changes in output).
  Overall uuencoding requires more than 50% less time.

SVN-Revision: 164

17 years agoAt least on NetBSD, uudecode -o doesn't work, so use -p instead.
Joerg Sonnenberger [Sat, 26 Jul 2008 00:46:35 +0000 (20:46 -0400)] 
At least on NetBSD, uudecode -o doesn't work, so use -p instead.

SVN-Revision: 163

17 years agoAvoid NULL dereference when destroy functions are called more
Joerg Sonnenberger [Sat, 26 Jul 2008 00:42:01 +0000 (20:42 -0400)] 
Avoid NULL dereference when destroy functions are called more
than once.

SVN-Revision: 162

17 years ago- include stdlib.h and string.h explicit as functions are used
Joerg Sonnenberger [Sat, 26 Jul 2008 00:41:15 +0000 (20:41 -0400)] 
- include stdlib.h and string.h explicit as functions are used
- defer freeing the string buffer into new destroy function

SVN-Revision: 161

17 years agoRevert 145937.
Joerg Sonnenberger [Sat, 26 Jul 2008 00:39:43 +0000 (20:39 -0400)] 
Revert 145937.

SVN-Revision: 160

17 years ago- include stdlib.h and string.h explicit as functions are used
Joerg Sonnenberger [Fri, 25 Jul 2008 23:56:44 +0000 (19:56 -0400)] 
- include stdlib.h and string.h explicit as functions are used
- defer freeing the string buffer into new destroy function

SVN-Revision: 159