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

17 years agoBe consistent with mtree reader and use rdev in the writer.
Joerg Sonnenberger [Fri, 25 Jul 2008 23:53:21 +0000 (19:53 -0400)] 
Be consistent with mtree reader and use rdev in the writer.

SVN-Revision: 158

17 years agoMake ad-hoc use of the test program a little simpler by
Tim Kientzle [Fri, 25 Jul 2008 22:24:02 +0000 (18:24 -0400)] 
Make ad-hoc use of the test program a little simpler by
searching a few standard locations for the reference files
and aborting if we can't find them.

SVN-Revision: 157

17 years agoAdd Mtree writer to FreeBSD makefile
Tim Kientzle [Fri, 25 Jul 2008 22:23:04 +0000 (18:23 -0400)] 
Add Mtree writer to FreeBSD makefile

SVN-Revision: 156

17 years agoMark some unused variables.
Tim Kientzle [Fri, 25 Jul 2008 22:22:38 +0000 (18:22 -0400)] 
Mark some unused variables.

SVN-Revision: 155

17 years agoAdd write support for mtree.
Joerg Sonnenberger [Fri, 25 Jul 2008 11:55:18 +0000 (07:55 -0400)] 
Add write support for mtree.
Add entries to PROJECTS about checksum support in mtree backend.

SVN-Revision: 154

17 years agoDrop ARCHIVE_FORMAT_MTREE_V1 and ARCHIVE_FORMAT_MTREE_V2,
Joerg Sonnenberger [Fri, 25 Jul 2008 02:27:58 +0000 (22:27 -0400)] 
Drop ARCHIVE_FORMAT_MTREE_V1 and ARCHIVE_FORMAT_MTREE_V2,
just use ARCHIVE_FORMAT_MTREE.

SVN-Revision: 153

17 years agoReport the filename for a suspected growing file.
Tim Kientzle [Sun, 6 Jul 2008 09:43:36 +0000 (05:43 -0400)] 
Report the filename for a suspected growing file.

SVN-Revision: 152

17 years agoMinor code reorg.
Tim Kientzle [Sun, 6 Jul 2008 09:43:03 +0000 (05:43 -0400)] 
Minor code reorg.

SVN-Revision: 151

17 years agoPreserve owner if cpio is run as root.
Tim Kientzle [Sun, 6 Jul 2008 09:37:45 +0000 (05:37 -0400)] 
Preserve owner if cpio is run as root.
Submitted by: Kris Kennaway

SVN-Revision: 150

17 years agoPortable release of libarchive 2.5.5, bsdtar 2.5.5, bsdcpio 1.0.0
Tim Kientzle [Wed, 2 Jul 2008 23:24:10 +0000 (19:24 -0400)] 
Portable release of libarchive 2.5.5, bsdtar 2.5.5, bsdcpio 1.0.0

SVN-Revision: 149

17 years agoInclude a missing test file in the portable build.
Tim Kientzle [Wed, 2 Jul 2008 23:02:50 +0000 (19:02 -0400)] 
Include a missing test file in the portable build.

SVN-Revision: 148

17 years agoIgnore -l for non-regular files. Comment that this is
Tim Kientzle [Wed, 2 Jul 2008 22:28:34 +0000 (18:28 -0400)] 
Ignore -l for non-regular files.  Comment that this is
still open to negotiation.

SVN-Revision: 147

17 years agoIFC: Comment
Tim Kientzle [Mon, 30 Jun 2008 22:45:22 +0000 (18:45 -0400)] 
IFC: Comment

SVN-Revision: 146

17 years agoDon't try to hardlink dirs for -pl; this always fails
Tim Kientzle [Mon, 30 Jun 2008 22:42:49 +0000 (18:42 -0400)] 
Don't try to hardlink dirs for -pl; this always fails
and generated an annoying warning for every directory.

SVN-Revision: 145

17 years agoOn systems that use SysV-style SGID handling for directories,
Tim Kientzle [Fri, 27 Jun 2008 00:08:58 +0000 (20:08 -0400)] 
On systems that use SysV-style SGID handling for directories,
the SGID bit can be set intrinsically by the system.
When handling EXTRACT_PERM (tar -p) on such systems, we need
to do an additional chmod() on directories, even if the
dir creation used the correct full mode.

SVN-Revision: 144

17 years agoWhen hardlinking files for -l by using archive_write_header(),
Tim Kientzle [Thu, 26 Jun 2008 08:51:21 +0000 (04:51 -0400)] 
When hardlinking files for -l by using archive_write_header(),
ensure that we're just doing a bare hardlink without any accompanying
data.  (Remember that cpio allows hardlinks to have data.)
Otherwise, -l creates a link and then opens the linked files
for overwrite, resulting in the files being erased.

SVN-Revision: 143

17 years agoSplit the reference file here out into a separate file for
Tim Kientzle [Wed, 25 Jun 2008 21:45:52 +0000 (17:45 -0400)] 
Split the reference file here out into a separate file for
easier maintenance.

SVN-Revision: 142

17 years agoEliminate some autoconf options that are no longer in use.
Tim Kientzle [Tue, 24 Jun 2008 22:45:59 +0000 (18:45 -0400)] 
Eliminate some autoconf options that are no longer in use.

SVN-Revision: 141

17 years agoApparently, linux/ext2_fs.h is entirely different from ext2/ext2_fs.h
Tim Kientzle [Tue, 24 Jun 2008 22:13:31 +0000 (18:13 -0400)] 
Apparently, linux/ext2_fs.h is entirely different from ext2/ext2_fs.h
and is, in fact, in the process of being deprecated.  Use the latter
exclusively.

SVN-Revision: 140

17 years agoIFC
Tim Kientzle [Tue, 24 Jun 2008 22:08:06 +0000 (18:08 -0400)] 
IFC

SVN-Revision: 139

17 years agoIFC
Tim Kientzle [Tue, 24 Jun 2008 22:07:17 +0000 (18:07 -0400)] 
IFC

SVN-Revision: 138

17 years agoUpdate the NEWS file with a terse summary of recent changes
Tim Kientzle [Sat, 21 Jun 2008 10:58:08 +0000 (06:58 -0400)] 
Update the NEWS file with a terse summary of recent changes

SVN-Revision: 137

17 years agoWhen using -l, if a link fails because of a cross-device link,
Tim Kientzle [Sat, 21 Jun 2008 10:56:12 +0000 (06:56 -0400)] 
When using -l, if a link fails because of a cross-device link,
ignore the -l for this entry and copy instead.

SVN-Revision: 136

17 years agoSecurity failures are ARCHIVE_FAILED (cannot continue with this
Tim Kientzle [Sat, 21 Jun 2008 10:55:14 +0000 (06:55 -0400)] 
Security failures are ARCHIVE_FAILED (cannot continue with this
operation), not ARCHIVE_WARN.

SVN-Revision: 135

17 years agoIFC
Tim Kientzle [Sat, 21 Jun 2008 10:54:15 +0000 (06:54 -0400)] 
IFC

SVN-Revision: 134

17 years agoGratuitous long option synonyms from GNU tar.
Tim Kientzle [Fri, 20 Jun 2008 19:15:24 +0000 (15:15 -0400)] 
Gratuitous long option synonyms from GNU tar.

SVN-Revision: 133

17 years agoDeal with cross-device links by falling back and just copying
Tim Kientzle [Thu, 19 Jun 2008 22:25:03 +0000 (18:25 -0400)] 
Deal with cross-device links by falling back and just copying
the file.

SVN-Revision: 132

17 years agoUse times at least a full 24 hours after the Epoch for testing.
Tim Kientzle [Wed, 18 Jun 2008 21:15:25 +0000 (17:15 -0400)] 
Use times at least a full 24 hours after the Epoch for testing.
In particular, this should fix tests on systems that lack timegm(),
whose mktime() cannot handle times prior to the Epoch, when run
in timezones with negative offsets from GMT.

SVN-Revision: 131

17 years agoStyle: Rewrite assert(<number> == <number>) to assertEqualInt(),
Tim Kientzle [Wed, 18 Jun 2008 21:10:51 +0000 (17:10 -0400)] 
Style: Rewrite assert(<number> == <number>) to assertEqualInt(),
which gives better messages when assertions fail.

SVN-Revision: 130

17 years agoPortability: Use %H:%M instead of the non-standard %R.
Tim Kientzle [Wed, 18 Jun 2008 19:33:06 +0000 (15:33 -0400)] 
Portability: Use %H:%M instead of the non-standard %R.

SVN-Revision: 129

17 years agoFix typo in comment.
Joerg Sonnenberger [Wed, 18 Jun 2008 03:44:34 +0000 (23:44 -0400)] 
Fix typo in comment.

SVN-Revision: 128

17 years agoExtend mtree quoting support to the full c-style quoting from
Joerg Sonnenberger [Wed, 18 Jun 2008 03:38:11 +0000 (23:38 -0400)] 
Extend mtree quoting support to the full c-style quoting from
the strvis(3) man page and to allow line continuation.
As with the other changes, this aims to be correct first, so it
can certainly be optimised.

SVN-Revision: 127

17 years agoRestore archive.h, which was accidentally deleted.
Tim Kientzle [Tue, 17 Jun 2008 20:39:39 +0000 (16:39 -0400)] 
Restore archive.h, which was accidentally deleted.

SVN-Revision: 126

17 years agoSeparate out the BZip2-compressed ISO image into a separate
Tim Kientzle [Sun, 15 Jun 2008 19:49:20 +0000 (15:49 -0400)] 
Separate out the BZip2-compressed ISO image into a separate
file, to make it easier to update the image.  While I'm here,
fix the instructions in the C source for this test about how
to regenerate the reference file from scratch.

SVN-Revision: 125

17 years agoFor now, don't include our getopt.c/getopt.h.
Tim Kientzle [Sun, 15 Jun 2008 03:57:43 +0000 (23:57 -0400)] 
For now, don't include our getopt.c/getopt.h.

SVN-Revision: 124

17 years agobsdcpio 1.0.0
Tim Kientzle [Sun, 15 Jun 2008 03:56:33 +0000 (23:56 -0400)] 
bsdcpio 1.0.0

SVN-Revision: 123

17 years agobsdcpio 1.0.0
Tim Kientzle [Sun, 15 Jun 2008 03:55:48 +0000 (23:55 -0400)] 
bsdcpio 1.0.0

SVN-Revision: 122

17 years agoFix a bad cast that ia64 doesn't like.
Tim Kientzle [Sun, 15 Jun 2008 03:28:00 +0000 (23:28 -0400)] 
Fix a bad cast that ia64 doesn't like.

SVN-Revision: 121

17 years agoBack out change 143007; go back to using platform getopt_long
Tim Kientzle [Sun, 15 Jun 2008 03:20:28 +0000 (23:20 -0400)] 
Back out change 143007; go back to using platform getopt_long
if it exists.
(I intend to re-add this getopt_long implementation at a later
date, but I'm trying to stabilize the libarchive 2.5 release
and this is a bit disruptive.)

SVN-Revision: 120

17 years agoIFC a couple of files
Tim Kientzle [Sun, 15 Jun 2008 03:00:35 +0000 (23:00 -0400)] 
IFC a couple of files

SVN-Revision: 119

17 years agoIFC
Tim Kientzle [Sun, 15 Jun 2008 02:44:11 +0000 (22:44 -0400)] 
IFC

SVN-Revision: 118

17 years agoFix the link resolver to never match dirs as hardlinks.
Tim Kientzle [Sat, 14 Jun 2008 21:27:26 +0000 (17:27 -0400)] 
Fix the link resolver to never match dirs as hardlinks.
In particular, this seems to fix some recent port build failures
(the use of tar in these ports is rather bizarre, but it did work
with tar's old link-matching code).
Thanks to: Kris Kennaway

SVN-Revision: 117

17 years agoIdentify hardlinks with an initial 'h' in the mode string if there's
Tim Kientzle [Sat, 14 Jun 2008 21:24:29 +0000 (17:24 -0400)] 
Identify hardlinks with an initial 'h' in the mode string if there's
no other filetype info available.

SVN-Revision: 116

17 years agoOn some platforms, the GID bit is inherited by subdirectories.
Tim Kientzle [Sat, 14 Jun 2008 15:11:37 +0000 (11:11 -0400)] 
On some platforms, the GID bit is inherited by subdirectories.
This caused a lot of false failures in the libarchive test
harness.  Be a little more careful:  the GID bit on created
directories should only be checked if ARCHIVE_EXTRACT_PERM
was used when the dir was created.
Submitted by: Carey Evans

SVN-Revision: 115

17 years agoFlush stdout after printing the name of the test;
Tim Kientzle [Sat, 14 Jun 2008 14:45:42 +0000 (10:45 -0400)] 
Flush stdout after printing the name of the test;
this ensures that any errors from that test appear after the
name of the test.  <sigh>
Submitted by: Carey Evans

SVN-Revision: 114

17 years agoUse wctomb(), which is present in C90, instead of wcrtomb(),
Tim Kientzle [Sat, 14 Jun 2008 14:36:30 +0000 (10:36 -0400)] 
Use wctomb(), which is present in C90, instead of wcrtomb(),
which wasn't introduced until C99.  In particular, this allows
the new locale support to work on FreeBSD 4, which doesn't
implement C99 wide character functions.

Include an autoconf check for wctomb(); if it's not present at
all, use the built-in UTF-8 functions instead so that pax
extended headers (which are stored in UTF-8) can still be minimally
supported.

SVN-Revision: 113

17 years agoMinor performance improvement; we lazily skip entries that
Tim Kientzle [Sat, 14 Jun 2008 14:10:20 +0000 (10:10 -0400)] 
Minor performance improvement; we lazily skip entries that
weren't (or couldn't be) read, so we don't need to proactively
skip the body at this point.

SVN-Revision: 112

17 years agoIf Zip entry has already been read, don't try to read it again.
Tim Kientzle [Sat, 14 Jun 2008 14:01:08 +0000 (10:01 -0400)] 
If Zip entry has already been read, don't try to read it again.

SVN-Revision: 111

17 years agoProperly configure chroot() support.
Tim Kientzle [Sat, 14 Jun 2008 13:59:51 +0000 (09:59 -0400)] 
Properly configure chroot() support.

SVN-Revision: 110

17 years agoSomewhere I got the idea that wcrtomb(NULL, ...) cleared the
Tim Kientzle [Sat, 7 Jun 2008 18:23:50 +0000 (14:23 -0400)] 
Somewhere I got the idea that wcrtomb(NULL, ...) cleared the
provided shift state.  This is wrong; memset() seems to be
the correct portable way to clear the shift state.
Submitted by: NAKAJIMA Michihiro
MFP4 after: 3 days

SVN-Revision: 109

17 years agoFreeBSD 4.11 doesn't define wchar_t in <wchar.h>, so use <stdlib.h>
Tim Kientzle [Sat, 7 Jun 2008 18:18:58 +0000 (14:18 -0400)] 
FreeBSD 4.11 doesn't define wchar_t in <wchar.h>, so use <stdlib.h>
Thanks to: Jeremy C. Reed

SVN-Revision: 108

17 years agoUse Gregory Pietsch's public domain getopt_long() implementation
Tim Kientzle [Thu, 5 Jun 2008 22:41:21 +0000 (18:41 -0400)] 
Use Gregory Pietsch's public domain getopt_long() implementation
instead of relying on the platform one.

Having the tar program use getopt() on platforms that didn't
support getopt_long() was a nice idea, but it's turning out to
be a real headache. This way, I can just assume long option
support and simplify chunks of the test harness.

SVN-Revision: 107

17 years agoConsistify the test harnesses and ensure that config.h gets
Tim Kientzle [Thu, 5 Jun 2008 22:38:03 +0000 (18:38 -0400)] 
Consistify the test harnesses and ensure that config.h gets
included before other headers.

SVN-Revision: 106

17 years agoDon't use case '1' ... '9', not ISO C.
Joerg Sonnenberger [Fri, 30 May 2008 02:36:11 +0000 (22:36 -0400)] 
Don't use case '1' ... '9', not ISO C.

SVN-Revision: 105