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

17 years agoAnother file created by autoconf & friends.
Tim Kientzle [Tue, 20 May 2008 18:51:58 +0000 (14:51 -0400)] 
Another file created by autoconf & friends.

SVN-Revision: 76

17 years agoIFC
Tim Kientzle [Tue, 20 May 2008 18:47:23 +0000 (14:47 -0400)] 
IFC

SVN-Revision: 75

17 years agoJust as archive_entry_free, recognize NULL strings as noops.
Joerg Sonnenberger [Tue, 20 May 2008 16:36:18 +0000 (12:36 -0400)] 
Just as archive_entry_free, recognize NULL strings as noops.

SVN-Revision: 74

17 years agoAs specified for nbpax, when the optional keyword is present and
Joerg Sonnenberger [Tue, 20 May 2008 08:34:16 +0000 (04:34 -0400)] 
As specified for nbpax, when the optional keyword is present and
the on-disk item doesn't exist or has a different type, skip it.
Fix the error message for the mismatch to not include errno.
Claim copyright for parts of this file.

SVN-Revision: 73

17 years agoMerge rev 1.5 from FreeBSD CVS: Return ARCHIVE_FATAL after
Joerg Sonnenberger [Tue, 20 May 2008 04:09:43 +0000 (00:09 -0400)] 
Merge rev 1.5 from FreeBSD CVS: Return ARCHIVE_FATAL after
failing malloc.

SVN-Revision: 72

17 years agoSkip over entries where mtree and on-disk type disagree.
Joerg Sonnenberger [Tue, 20 May 2008 03:28:32 +0000 (23:28 -0400)] 
Skip over entries where mtree and on-disk type disagree.
For directories and files, fstat the on-disk item, otherwise
lstat it.  Copy device, gid/uid, mtime, nlink, permissions and
size if they have not been explicitly specified.
Skip entries that don't specify the type -- mtree requires this.

SVN-Revision: 71

17 years agoConsistently use copy_hardlink.
Joerg Sonnenberger [Tue, 20 May 2008 03:24:19 +0000 (23:24 -0400)] 
Consistently use copy_hardlink.
Fix a double-free/use-after-free.

SVN-Revision: 70

17 years agowcrtomb is not declared in wchar.h on IRIX. From NetBSD
Joerg Sonnenberger [Mon, 19 May 2008 03:18:54 +0000 (23:18 -0400)] 
wcrtomb is not declared in wchar.h on IRIX. From NetBSD
pkg/38674 by Tobias Nygren.

SVN-Revision: 69

17 years agoUse the link resolver to detect hardlinks when writing archives
Joerg Sonnenberger [Mon, 19 May 2008 02:19:29 +0000 (22:19 -0400)] 
Use the link resolver to detect hardlinks when writing archives
using mtree files.

SVN-Revision: 68

17 years agoUse copy_pathname/copy_hardlink/copy_symlink instead of the set
Joerg Sonnenberger [Mon, 19 May 2008 02:18:05 +0000 (22:18 -0400)] 
Use copy_pathname/copy_hardlink/copy_symlink instead of the set
version after modifying them.

SVN-Revision: 67

17 years agoInput archive and target archive might disagree about the entry
Joerg Sonnenberger [Mon, 19 May 2008 02:17:20 +0000 (22:17 -0400)] 
Input archive and target archive might disagree about the entry
size.  E.g. the entry to write is a hardlink and the tar writer
reset the entry size to 0, skip the data on the input side.

SVN-Revision: 66

17 years agoAdd a mtree mode for the link resolver. This does hardlink
Joerg Sonnenberger [Mon, 19 May 2008 02:12:05 +0000 (22:12 -0400)] 
Add a mtree mode for the link resolver.  This does hardlink
resolving, but doesn't change the size of the entry.

SVN-Revision: 65

17 years agoMore cleanup of unused variables.
Tim Kientzle [Sat, 17 May 2008 07:45:39 +0000 (03:45 -0400)] 
More cleanup of unused variables.

SVN-Revision: 64

17 years agoClean up after Joerg. ;-)
Tim Kientzle [Fri, 16 May 2008 22:46:44 +0000 (18:46 -0400)] 
Clean up after Joerg.  ;-)

SVN-Revision: 63

17 years agoRemove aclocal.m4 since it's build by the auto* tools.
Tim Kientzle [Fri, 16 May 2008 22:44:18 +0000 (18:44 -0400)] 
Remove aclocal.m4 since it's build by the auto* tools.

SVN-Revision: 62

17 years agoSwitch bsdtar to use archive_entry_linkresolver.
Joerg Sonnenberger [Fri, 16 May 2008 05:02:56 +0000 (01:02 -0400)] 
Switch bsdtar to use archive_entry_linkresolver.

SVN-Revision: 61

17 years agoOn second thought, Makefile.in doesn't belong here at all, since
Tim Kientzle [Thu, 15 May 2008 22:19:56 +0000 (18:19 -0400)] 
On second thought, Makefile.in doesn't belong here at all, since
it's constructed by automake.

SVN-Revision: 60

17 years agoUpdated Makefile.in.
Tim Kientzle [Thu, 15 May 2008 22:18:37 +0000 (18:18 -0400)] 
Updated Makefile.in.

SVN-Revision: 59

17 years agoOverhaul this test a bit so that the right entries get stored
Tim Kientzle [Thu, 15 May 2008 22:14:57 +0000 (18:14 -0400)] 
Overhaul this test a bit so that the right entries get stored
as hardlinks, regardless of what order the underlying filesystem
returns the files in.  This basically just involves segregating
the different groups of entries into separate dirs and specifying
those dirs -- in the correct order -- on the command line,
instead of relying entirely on the tree traversal.
This should fix a persistent test failure that's been reported
on Linux when using newer filesystems.

SVN-Revision: 58

17 years agoFailing to write a header is not just a "WARN" problem,
Tim Kientzle [Thu, 15 May 2008 22:11:25 +0000 (18:11 -0400)] 
Failing to write a header is not just a "WARN" problem,
it's a "FAILED" operation.  In particular, this fixes a
relatively obscure problem writing ustar archives with bsdtar.
Prior to this, bsdtar would report additional bogus errors
because it kept trying to write the body even after the
header failed.

SVN-Revision: 57

17 years agoExtend the fflags test just a tad.
Tim Kientzle [Thu, 15 May 2008 21:19:20 +0000 (17:19 -0400)] 
Extend the fflags test just a tad.
This could be significantly improved.

SVN-Revision: 56

17 years agoActually recognize the '-s' option by adding it to the getopt
Joerg Sonnenberger [Thu, 15 May 2008 13:58:03 +0000 (09:58 -0400)] 
Actually recognize the '-s' option by adding it to the getopt
string.  Refactor substitution code by integrating it in
edit_pathname.  This also makes the subst code apply to -c.
Add a very basic test case.

SVN-Revision: 55

17 years agoDocument that the return value of archive_write_data needs to be
Joerg Sonnenberger [Thu, 15 May 2008 03:11:22 +0000 (23:11 -0400)] 
Document that the return value of archive_write_data needs to be
reinvestigated.

SVN-Revision: 54

17 years agoAdd support for pax-like tar substitutions as found in NetBSD's
Joerg Sonnenberger [Wed, 14 May 2008 02:12:21 +0000 (22:12 -0400)] 
Add support for pax-like tar substitutions as found in NetBSD's
pax-as-tar.  This code is not compiled in on platforms lacking
regex.h.

SVN-Revision: 53

17 years agoSimpler alternative to timegm(), thanks to Garrett Wollman.
Tim Kientzle [Tue, 13 May 2008 21:43:58 +0000 (17:43 -0400)] 
Simpler alternative to timegm(), thanks to Garrett Wollman.

SVN-Revision: 52

17 years agoAdd support to sparsify files on write. This scans output blocks
Joerg Sonnenberger [Tue, 13 May 2008 05:41:46 +0000 (01:41 -0400)] 
Add support to sparsify files on write. This scans output blocks
for NUL bytes and seeks if a block is full of NULs. This is
optional, but the penalty is very small.

SVN-Revision: 51

17 years agoWriting data beyond the end of the file is not valid, change the
Joerg Sonnenberger [Tue, 13 May 2008 05:31:31 +0000 (01:31 -0400)] 
Writing data beyond the end of the file is not valid, change the
incorrect test into an actual assertion for the expected
behaviour.

SVN-Revision: 50

17 years agooptional and ignore are pure keywords without arguments.
Joerg Sonnenberger [Tue, 13 May 2008 05:21:05 +0000 (01:21 -0400)] 
optional and ignore are pure keywords without arguments.
Currently ignore them both, for optional it might be better to
mask errors later though.
Add device keyword support, this doesn't do any mapping though.
Fix link keyword, it always specifies a symlink independent of
whether the type keyword was processed already.

SVN-Revision: 49

17 years agoFix BSD ar writer to not increase the size of the archive_entry
Joerg Sonnenberger [Tue, 13 May 2008 05:18:15 +0000 (01:18 -0400)] 
Fix BSD ar writer to not increase the size of the archive_entry
for long filenames. This breaks applications that use
archive_entry_size to decide how much to write.

SVN-Revision: 48

17 years agoCompress/LZW can be written as well.
Joerg Sonnenberger [Tue, 13 May 2008 05:15:12 +0000 (01:15 -0400)] 
Compress/LZW can be written as well.

SVN-Revision: 47

17 years agoIgnore the various checksums supported by NetBSD's mtree.
Joerg Sonnenberger [Mon, 12 May 2008 12:23:26 +0000 (08:23 -0400)] 
Ignore the various checksums supported by NetBSD's mtree.
Add support for flags keyword.
Add support for nlink keyword.
Sort time keyword correctly.
Ignore tags keyword. This should deal with include/exclude
later.
Add commented out entries for device, ignore and optional.

SVN-Revision: 46

17 years agoFix ae_strtofflags. It was using the wchar constants.
Joerg Sonnenberger [Mon, 12 May 2008 12:14:05 +0000 (08:14 -0400)] 
Fix ae_strtofflags. It was using the wchar constants.

SVN-Revision: 45

17 years agoDocument archive_entry_copy_fflags_text.
Joerg Sonnenberger [Mon, 12 May 2008 11:39:56 +0000 (07:39 -0400)] 
Document archive_entry_copy_fflags_text.

SVN-Revision: 44

17 years agoMake ARCHIVE_EXTRACT_* use hex.
Joerg Sonnenberger [Mon, 12 May 2008 08:02:11 +0000 (04:02 -0400)] 
Make ARCHIVE_EXTRACT_* use hex.

SVN-Revision: 43

17 years agoRefactor stat cache handling into a function. Consistenly use
Joerg Sonnenberger [Mon, 12 May 2008 07:47:34 +0000 (03:47 -0400)] 
Refactor stat cache handling into a function. Consistenly use
lstat(2) as no symlink sohuld ever be referenced at this point.
After unlink(2)/rmdir(2) operations ensure that the stat cache
is reset.

SVN-Revision: 42

17 years agoInclude tar/test/test_patterns.c, the initial skeleton of
Tim Kientzle [Sun, 11 May 2008 14:47:57 +0000 (10:47 -0400)] 
Include tar/test/test_patterns.c, the initial skeleton of
a test for command-line pattern matching.

SVN-Revision: 41

17 years agoFix a small race in the format check for cpio; the four entries
Tim Kientzle [Sun, 11 May 2008 14:47:11 +0000 (10:47 -0400)] 
Fix a small race in the format check for cpio; the four entries
might get slightly different timestamps.

SVN-Revision: 40

17 years agoFix the extraction of archives where hardlinks and the main file
Joerg Sonnenberger [Sun, 11 May 2008 09:32:51 +0000 (05:32 -0400)] 
Fix the extraction of archives where hardlinks and the main file
disagree on permissions.  This can be observed with base.tgz of
an unprivileged NetBSD build.
After the change permissions are restored only for files that
have content attached.  This works for almost ustar.  For pax
archives with optional data in the second entry and cpio this
will fail for unprivileged user if the first entry doesn't allow
writing for the current user.

SVN-Revision: 39

17 years agoDocument archive_write_set_compression_compress.
Joerg Sonnenberger [Sun, 11 May 2008 07:39:16 +0000 (03:39 -0400)] 
Document archive_write_set_compression_compress.

SVN-Revision: 38

17 years agoJust skip entries where --strip-components removes everything.
Tim Kientzle [Thu, 8 May 2008 20:48:01 +0000 (16:48 -0400)] 
Just skip entries where --strip-components removes everything.
Previously, this was failing for dir entries that had exactly
the right number of components, e.g. "a/" with --strip-components=1,
leading to odd warnings about "Invalid empty pathname"
PR: bin/121158

SVN-Revision: 37

17 years agoMissed a file from change 141352
Tim Kientzle [Thu, 8 May 2008 20:33:48 +0000 (16:33 -0400)] 
Missed a file from change 141352

SVN-Revision: 36

17 years agoIf there are leftover inclusions (command-line patterns) after
Tim Kientzle [Thu, 8 May 2008 20:28:36 +0000 (16:28 -0400)] 
If there are leftover inclusions (command-line patterns) after
extraction, warn about them:
$ bsdtar xfv tar.tgz foo bar
-rw-r--r--  0 tim    tim         0 May  8 19:50 foo
bsdtar: bar: Not found in archive
bsdtar: Error exit delayed from previous errors.

PR: bin/121598

SVN-Revision: 35

17 years agoInclude contributed Windows build files in portable release.
Tim Kientzle [Thu, 8 May 2008 19:42:51 +0000 (15:42 -0400)] 
Include contributed Windows build files in portable release.
Obtained from: Scott

SVN-Revision: 34

17 years agoImprove the bzip2 detection by looking for the data or end-of-data
Tim Kientzle [Thu, 8 May 2008 19:30:43 +0000 (15:30 -0400)] 
Improve the bzip2 detection by looking for the data or end-of-data
marker that must follow the initial file signature.
Obtained from: Scott

SVN-Revision: 33

17 years agoInclude the Windows helper files in the portable distribution.
Tim Kientzle [Thu, 8 May 2008 19:12:12 +0000 (15:12 -0400)] 
Include the Windows helper files in the portable distribution.
Prune out a few more unnecessary definitions from archive_windows.h.

SVN-Revision: 32

17 years agoMore Windows cleanup: Add a copyright notice (as discussed with
Tim Kientzle [Wed, 7 May 2008 08:54:46 +0000 (04:54 -0400)] 
More Windows cleanup:  Add a copyright notice (as discussed with
the author, Kees Zeelenberg) to archive_windows.c, include a comment
explaining the history and intent for this file.  Remove a couple
of unnecessary functions.

SVN-Revision: 31

17 years agoAdd some additional examples and clarification about using
Tim Kientzle [Tue, 6 May 2008 22:55:46 +0000 (18:55 -0400)] 
Add some additional examples and clarification about using
mtree descriptions to generate tar archives using
tar -cf output.tar @input.mtree
Obtained from: Vincent Zweije

SVN-Revision: 30

17 years agoWindows makefiles.
Tim Kientzle [Mon, 5 May 2008 22:10:33 +0000 (18:10 -0400)] 
Windows makefiles.
Submitted by: Scott

SVN-Revision: 29

17 years agoMore test files from my local tree that somehow didn't make it into p4.
Tim Kientzle [Mon, 5 May 2008 22:09:38 +0000 (18:09 -0400)] 
More test files from my local tree that somehow didn't make it into p4.

SVN-Revision: 28

17 years agoDon't try to support external compression programs unless the local
Tim Kientzle [Mon, 5 May 2008 22:00:27 +0000 (18:00 -0400)] 
Don't try to support external compression programs unless the local
platform supports pipe(), vfork(), and fcntl().

SVN-Revision: 27

17 years agoInclude tar/test/test_option_T, which was left out of 2.5.3b.
Tim Kientzle [Mon, 5 May 2008 21:59:33 +0000 (17:59 -0400)] 
Include tar/test/test_option_T, which was left out of 2.5.3b.

SVN-Revision: 26

17 years agoA few people are reporting success building libarchive on Windows!
Tim Kientzle [Mon, 5 May 2008 21:25:45 +0000 (17:25 -0400)] 
A few people are reporting success building libarchive on Windows!
Submitted by: Scott

SVN-Revision: 25

17 years agoRelease of libarchive 2.5.3b
Tim Kientzle [Sun, 4 May 2008 21:49:29 +0000 (17:49 -0400)] 
Release of libarchive 2.5.3b

SVN-Revision: 24

17 years agoDelete and recreate 'version' file to work around the fact that p4 write-protects...
Tim Kientzle [Sun, 4 May 2008 21:06:12 +0000 (17:06 -0400)] 
Delete and recreate 'version' file to work around the fact that p4 write-protects everything.

SVN-Revision: 23