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

17 years agoIFC
Tim Kientzle [Wed, 28 May 2008 22:40:05 +0000 (18:40 -0400)] 
IFC

SVN-Revision: 104

17 years agoMis-integrate; the p4 version doesn't need this, since archive.h isn't
Tim Kientzle [Wed, 28 May 2008 22:33:11 +0000 (18:33 -0400)] 
Mis-integrate; the p4 version doesn't need this, since archive.h isn't
a built file.
Code in CVS needs this until archive.h.in gets renamed to archive.h.

SVN-Revision: 103

17 years agoIFC
Tim Kientzle [Wed, 28 May 2008 22:27:44 +0000 (18:27 -0400)] 
IFC

SVN-Revision: 102

17 years agoCallbacks are annoying. Change the callback-driven line processor
Tim Kientzle [Wed, 28 May 2008 22:17:53 +0000 (18:17 -0400)] 
Callbacks are annoying.  Change the callback-driven line processor
into a separate line reader that returns a line each time it's
called.

SVN-Revision: 101

17 years agoMinor code hardening; check that two bytes following '%' are non-NULL
Tim Kientzle [Wed, 28 May 2008 22:16:53 +0000 (18:16 -0400)] 
Minor code hardening; check that two bytes following '%' are non-NULL
before we try to use them.

SVN-Revision: 100

17 years agoMinor portability enhancement; define REG_BASIC if it's not
Tim Kientzle [Wed, 28 May 2008 22:16:15 +0000 (18:16 -0400)] 
Minor portability enhancement; define REG_BASIC if it's not
 already defined.

SVN-Revision: 99

17 years agoBetween all the false cases found by Coverity, one is actual
Joerg Sonnenberger [Tue, 27 May 2008 15:01:41 +0000 (11:01 -0400)] 
Between all the false cases found by Coverity, one is actual
relevant: after closing child_stdin, set it to -1, keeping
child_stdout alone and not the other way around.

SVN-Revision: 98

17 years agoAppease Coverity by checking explicitly if the descriptor is
Joerg Sonnenberger [Tue, 27 May 2008 13:28:15 +0000 (09:28 -0400)] 
Appease Coverity by checking explicitly if the descriptor is
valid before closing it.

SVN-Revision: 97

17 years agoSome systems don't have vfork, only fork. It is good enough for
Joerg Sonnenberger [Tue, 27 May 2008 10:14:43 +0000 (06:14 -0400)] 
Some systems don't have vfork, only fork. It is good enough for
our purposes, so use either.
Include archive.h if the program support is not present to fix
compilation.

SVN-Revision: 96

17 years agoBe more persistent when trying to get blocking behavior back for
Joerg Sonnenberger [Mon, 26 May 2008 15:45:44 +0000 (11:45 -0400)] 
Be more persistent when trying to get blocking behavior back for
the pipes. If the child switched the descriptor back to
non-blocking, set it back to blocking and call poll/select.
Make the poll/select code filter out -1 as descriptor for this
purpose.

SVN-Revision: 95

17 years ago2.5.4b
Tim Kientzle [Sun, 25 May 2008 11:43:31 +0000 (07:43 -0400)] 
2.5.4b

SVN-Revision: 94

17 years agoarchive.h build changed a while back, add a note about newc
Tim Kientzle [Sat, 24 May 2008 21:20:56 +0000 (17:20 -0400)] 
archive.h build changed a while back, add a note about newc
hardlink fixes for bsdtar.

SVN-Revision: 93

17 years agoClarify the copyright situation: most sources are 2-clause BSD,
Tim Kientzle [Sat, 24 May 2008 21:20:18 +0000 (17:20 -0400)] 
Clarify the copyright situation: most sources are 2-clause BSD,
a few sources are still 3-clause, build files vary.

SVN-Revision: 92

17 years agoEnable the new -s substitution support on FreeBSD, include
Tim Kientzle [Sat, 24 May 2008 21:19:02 +0000 (17:19 -0400)] 
Enable the new -s substitution support on FreeBSD, include
the new source file, and fix a minor compiler warning in the
substitution code.

SVN-Revision: 91

17 years agoFix some minor compiler warnings about unused vars and parameters.
Tim Kientzle [Sat, 24 May 2008 21:18:01 +0000 (17:18 -0400)] 
Fix some minor compiler warnings about unused vars and parameters.

SVN-Revision: 90

17 years agoIFC: Pick up some minor corrections from Colin Percival.
Tim Kientzle [Sat, 24 May 2008 18:40:29 +0000 (14:40 -0400)] 
IFC: Pick up some minor corrections from Colin Percival.

SVN-Revision: 89

17 years agoIFC
Tim Kientzle [Thu, 22 May 2008 21:51:18 +0000 (17:51 -0400)] 
IFC

SVN-Revision: 88

17 years agoMove the opening of the file to write down into
Joerg Sonnenberger [Thu, 22 May 2008 05:20:41 +0000 (01:20 -0400)] 
Move the opening of the file to write down into
write_entry_backend, if it isn't already open.
Use archive_entry_sourcepath for this purpose and allow
writing deferred entries for newc format that way.

SVN-Revision: 87

17 years agoA lot has happened since 2.5.3b.
Tim Kientzle [Wed, 21 May 2008 22:12:45 +0000 (18:12 -0400)] 
A lot has happened since 2.5.3b.

SVN-Revision: 86

17 years agoFollow-on to change 141950: Enforce the non-zero minimum BEFORE
Tim Kientzle [Wed, 21 May 2008 20:53:40 +0000 (16:53 -0400)] 
Follow-on to change 141950:  Enforce the non-zero minimum BEFORE
checking to ensure that the buffer really is larger.  Otherwise,
doubling zero gives us zero.
Pointy hat: /me

SVN-Revision: 85

17 years agoStore mtree option as individual strings in a single linked
Joerg Sonnenberger [Wed, 21 May 2008 10:15:58 +0000 (06:15 -0400)] 
Store mtree option as individual strings in a single linked
list.  Scan when adding options for an entry for duplicate
keywords and override them.  Implement /set and /unset support.
Change the behaviour for multiple full pathes to match the
NetBSD mtree behaviour: only the last line is used.
Match NetBSD mtree behaviour and  always parse the permissions
as octal.  Actually return a warning when the mode is symbolic.
Handle the current directory as full path, this seems to match
the behaviour of NetBSD mtree, but is not documented.

SVN-Revision: 84

17 years agoEnsure that siginfo_init is called in all tar modes.
Joerg Sonnenberger [Wed, 21 May 2008 10:01:08 +0000 (06:01 -0400)] 
Ensure that siginfo_init is called in all tar modes.

SVN-Revision: 83

17 years agoAdd small script to regenerate the auto* files.
Joerg Sonnenberger [Tue, 20 May 2008 23:21:57 +0000 (19:21 -0400)] 
Add small script to regenerate the auto* files.

SVN-Revision: 82

17 years agosiginfo exists already as union on NetBSD, rename struct to
Joerg Sonnenberger [Tue, 20 May 2008 23:12:37 +0000 (19:12 -0400)] 
siginfo exists already as union on NetBSD, rename struct to
bsdtar_siginfo.

SVN-Revision: 81

17 years agoFix the broken mtree test. Joerg recently made the mtree parser
Tim Kientzle [Tue, 20 May 2008 21:45:46 +0000 (17:45 -0400)] 
Fix the broken mtree test.  Joerg recently made the mtree parser
a bit stricter; 'type' is now a required keyword, in keeping
with the expectations of mtree(8).

SVN-Revision: 80

17 years agotar/siginfo.c is a new file; include it in the portable build.
Tim Kientzle [Tue, 20 May 2008 21:44:55 +0000 (17:44 -0400)] 
tar/siginfo.c is a new file; include it in the portable build.

SVN-Revision: 79

17 years agoFix a typecast.
Tim Kientzle [Tue, 20 May 2008 21:44:35 +0000 (17:44 -0400)] 
Fix a typecast.

SVN-Revision: 78

17 years agoGuard against a number of theoretical buffer and integer
Tim Kientzle [Tue, 20 May 2008 19:57:10 +0000 (15:57 -0400)] 
Guard against a number of theoretical buffer and integer
overflows.  As far as I can tell, none of these are
actually exploitable.

Thanks to David Remahl at Apple for pointing these out.
MFP4 after: 1 day

SVN-Revision: 77