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

17 years agoBasic implementation of --numeric-owner.
Tim Kientzle [Sun, 4 May 2008 20:12:56 +0000 (16:12 -0400)] 
Basic implementation of --numeric-owner.
Submitted by: Jaakko Heinonen

SVN-Revision: 22

17 years agoClear the link resolver structure on initialization; this fixes
Tim Kientzle [Sun, 4 May 2008 20:08:45 +0000 (16:08 -0400)] 
Clear the link resolver structure on initialization; this fixes
a crash when the link resolver is cleaned up.

SVN-Revision: 21

17 years agoarchive_read_extract2() provides much of the convenience of
Tim Kientzle [Sat, 3 May 2008 16:21:41 +0000 (12:21 -0400)] 
archive_read_extract2() provides much of the convenience of
archive_read_extract() while allowing you to configure the
archive_write_disk restore object.

SVN-Revision: 20

17 years agoClean up some memory-management issues in the link resolver.
Tim Kientzle [Sat, 3 May 2008 15:11:31 +0000 (11:11 -0400)] 
Clean up some memory-management issues in the link resolver.
Now, the 'canonical' entry is the one actually used for matching
and lookups, the 'entry' is used for transient needs, and
the bookkeeping now correctly tracks when the 'entry' is no
longer valid because it was handed back to the client.

Obtained from: Joerg Sonnenberger

SVN-Revision: 19

17 years agoRemove last vestiges of archive.h.in; fix 'make check'
Tim Kientzle [Sat, 3 May 2008 13:50:32 +0000 (09:50 -0400)] 
Remove last vestiges of archive.h.in; fix 'make check'

SVN-Revision: 18

17 years agoEdit version back to 2.5.2b where it should be,
Tim Kientzle [Fri, 2 May 2008 23:28:58 +0000 (19:28 -0400)] 
Edit version back to 2.5.2b where it should be,
sweep up some Makefile corrections that were left behind in
the last submit.

SVN-Revision: 17

17 years agoEliminate archive.h.in; instead of editing a new version into
Tim Kientzle [Fri, 2 May 2008 23:19:43 +0000 (19:19 -0400)] 
Eliminate archive.h.in; instead of editing a new version into
the Makefile and having the Makefile edit it into archive.h,
just edit it directly into archive.h in the first place.
This means that archive.h is no longer a constructed file,
which simplifies quite a number of things.

SVN-Revision: 16

17 years agoIFC
Tim Kientzle [Fri, 2 May 2008 22:57:00 +0000 (18:57 -0400)] 
IFC

SVN-Revision: 15

17 years agoDocumentation updates:
Tim Kientzle [Thu, 1 May 2008 22:37:23 +0000 (18:37 -0400)] 
Documentation updates:
  Document -o option (old format) for -c, -r, -u modes,
  correct --format to indicate that it can be used with -r and -u
       Correct option checks to not suppress --format with -r or -u
PR: bin/122600

SVN-Revision: 14

17 years agoDon't include this in the depot; it's a completely built file.
Tim Kientzle [Thu, 1 May 2008 22:05:41 +0000 (18:05 -0400)] 
Don't include this in the depot; it's a completely built file.

SVN-Revision: 13

17 years agoDon't include the old tar test scripts in the portable distribution.
Tim Kientzle [Thu, 1 May 2008 22:05:03 +0000 (18:05 -0400)] 
Don't include the old tar test scripts in the portable distribution.

SVN-Revision: 12

17 years agoAdd a basic test of -T option, add support for -r and -T together.
Tim Kientzle [Thu, 1 May 2008 22:01:44 +0000 (18:01 -0400)] 
Add a basic test of -T option, add support for -r and -T together.
PR: bin/123246
Submitted by: Jaakko Heinonen
MFP4 after: 1 day

SVN-Revision: 11

17 years agoLeave off tar/test/old from the portable distribution; include the doc-bulding tools.
Tim Kientzle [Wed, 30 Apr 2008 22:32:42 +0000 (18:32 -0400)] 
Leave off tar/test/old from the portable distribution; include the doc-bulding tools.

SVN-Revision: 10

17 years agoInclude Jan Psota's benchmark script and results in the 'contrib' dir
Tim Kientzle [Wed, 30 Apr 2008 22:15:21 +0000 (18:15 -0400)] 
Include Jan Psota's benchmark script and results in the 'contrib' dir

SVN-Revision: 9

17 years agoInclude 'examples' and 'contrib' dirs from libarchive portable distro.
Tim Kientzle [Wed, 30 Apr 2008 22:11:33 +0000 (18:11 -0400)] 
Include 'examples' and 'contrib' dirs from libarchive portable distro.

SVN-Revision: 8

17 years agoMark 'check' and 'test' targets as .PHONY
Tim Kientzle [Wed, 30 Apr 2008 22:09:53 +0000 (18:09 -0400)] 
Mark 'check' and 'test' targets as .PHONY

SVN-Revision: 7

17 years agoMore synchronizing with my local repository.
Tim Kientzle [Wed, 30 Apr 2008 21:57:11 +0000 (17:57 -0400)] 
More synchronizing with my local repository.

SVN-Revision: 6

17 years agoSynchronize a bunch of changes from my local tree.
Tim Kientzle [Wed, 30 Apr 2008 21:48:09 +0000 (17:48 -0400)] 
Synchronize a bunch of changes from my local tree.

SVN-Revision: 5

17 years agoMake upload.sh a bit more generic.
Tim Kientzle [Tue, 29 Apr 2008 22:46:57 +0000 (18:46 -0400)] 
Make upload.sh a bit more generic.

SVN-Revision: 4

17 years agoContinue populating the libarchive-portable project from my local repository.
Tim Kientzle [Tue, 29 Apr 2008 22:43:31 +0000 (18:43 -0400)] 
Continue populating the libarchive-portable project from my local repository.

SVN-Revision: 3

17 years agoFill in the libarchive-portable build infrastructure that uses autoconf/automake.
Tim Kientzle [Tue, 29 Apr 2008 22:30:48 +0000 (18:30 -0400)] 
Fill in the libarchive-portable build infrastructure that uses autoconf/automake.

SVN-Revision: 2

17 years agoIFC to populate initial libarchive-portable tree.
Tim Kientzle [Tue, 29 Apr 2008 21:56:43 +0000 (17:56 -0400)] 
IFC to populate initial libarchive-portable tree.

SVN-Revision: 1