]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
15 years agowrong file path, should be keep_newer_files not keep_newer
Brian Harring [Mon, 12 Apr 2010 10:14:10 +0000 (06:14 -0400)] 
wrong file path, should be keep_newer_files not keep_newer

SVN-Revision: 2247

15 years agoTest tar -n
Tim Kientzle [Mon, 12 Apr 2010 02:37:06 +0000 (22:37 -0400)] 
Test tar -n

SVN-Revision: 2244

15 years ago--keep-newer-files is the correct option name.
Tim Kientzle [Mon, 12 Apr 2010 02:11:28 +0000 (22:11 -0400)] 
--keep-newer-files is the correct option name.

SVN-Revision: 2243

15 years agoCorrect the documentation: -X does not obey --null
Tim Kientzle [Mon, 12 Apr 2010 02:04:05 +0000 (22:04 -0400)] 
Correct the documentation: -X does not obey --null

SVN-Revision: 2242

15 years agoTest for tar -U and documentation corrections.
Tim Kientzle [Mon, 12 Apr 2010 01:58:50 +0000 (21:58 -0400)] 
Test for tar -U and documentation corrections.

SVN-Revision: 2241

15 years agoTest tar -O
Tim Kientzle [Mon, 12 Apr 2010 00:20:02 +0000 (20:20 -0400)] 
Test tar -O

SVN-Revision: 2240

15 years agoIf it's not an error to skip an older file, then don't set an error message.
Tim Kientzle [Mon, 12 Apr 2010 00:17:26 +0000 (20:17 -0400)] 
If it's not an error to skip an older file, then don't set an error message.

SVN-Revision: 2239

15 years agoFix tar -k by making it not an error if you specify
Tim Kientzle [Sun, 11 Apr 2010 23:53:29 +0000 (19:53 -0400)] 
Fix tar -k by making it not an error if you specify
ARCHIVE_EXTRACT_NO_OVERWRITE and the file already exists.

SVN-Revision: 2238

15 years agoRemove a debugging shim.
Tim Kientzle [Sun, 11 Apr 2010 23:38:59 +0000 (19:38 -0400)] 
Remove a debugging shim.

SVN-Revision: 2237

15 years agoTest -H and -L options to tar.
Tim Kientzle [Sun, 11 Apr 2010 23:36:59 +0000 (19:36 -0400)] 
Test -H and -L options to tar.

SVN-Revision: 2236

15 years agoDon't try to write a body if libarchive won't accept it.
Tim Kientzle [Sun, 11 Apr 2010 22:46:21 +0000 (18:46 -0400)] 
Don't try to write a body if libarchive won't accept it.

SVN-Revision: 2235

15 years agoFix tar --keep-newer
Tim Kientzle [Sun, 11 Apr 2010 21:29:32 +0000 (17:29 -0400)] 
Fix tar --keep-newer

This solution isn't ideal; bsdtar does the right thing now
(doesn't overwrite and exits without error) but it should
display a warning message about the failure to extract
the file.

SVN-Revision: 2234

15 years agoIf we're not creating the file because of the NEWER test, tell the
Tim Kientzle [Sun, 11 Apr 2010 21:18:09 +0000 (17:18 -0400)] 
If we're not creating the file because of the NEWER test, tell the
writer not to bother sending us the file data.

SVN-Revision: 2233

15 years agoDon't bother trying to write data into a zero-sized file.
Tim Kientzle [Sun, 11 Apr 2010 21:16:38 +0000 (17:16 -0400)] 
Don't bother trying to write data into a zero-sized file.

SVN-Revision: 2232

15 years agoIssue 83: Directory timestamps truncated to microsecond resolution.
Tim Kientzle [Sun, 11 Apr 2010 19:11:36 +0000 (15:11 -0400)] 
Issue 83:  Directory timestamps truncated to microsecond resolution.

This patch reworks the time-restore logic to use the same
system calls in both the end-of-archive cleanup pass and
the regular file restore case.  This ensures consistent
timestamp restores for both cases.  It also isolates the
BSD birthtime support into one place so it will be consistently
applied.

Submitted by: a.bocaniciu  computer.org

SVN-Revision: 2231

15 years agoUpdate the --exclude test to cover the cases listed in
Tim Kientzle [Sun, 11 Apr 2010 18:29:28 +0000 (14:29 -0400)] 
Update the --exclude test to cover the cases listed in
the commit message for r2229.

SVN-Revision: 2230

15 years agoImprove the testing of tar -X and try to correctly handle some odd cases.
Tim Kientzle [Sun, 11 Apr 2010 18:08:36 +0000 (14:08 -0400)] 
Improve the testing of tar -X and try to correctly handle some odd cases.
Here are some of the cases currently handled
(assuming test.tar contains a single entry "file1"):

 $ tar xf test.tar file1

Extracts file1 with no error.

 $ tar xf test.tar file1 file2

Extracts file1, error because file2 was requested but not found.

 $ tar xf test.tar file1 'file2*'

Extracts file1, error because 'file2*' pattern matched no entries.

 $ tar xf test.tar file1 file1

Extracts file1 with no error

 $ tar xf test.tar file1 'file*'

Extracts file1 with no error

 $ tar xf test.tar --exclude=file1

Does not extract file1, no error.

 $ tar xf test.tar --exclude=file1 file1

Does not extract file1, no error.

 $ tar xf test.tar --exclude=file2 file1

Extracts file1, no error.

SVN-Revision: 2229

15 years agoRemove an unused header.
Tim Kientzle [Sun, 11 Apr 2010 17:56:16 +0000 (13:56 -0400)] 
Remove an unused header.

SVN-Revision: 2228

15 years agoStyle: remove extra blank line
Tim Kientzle [Sun, 11 Apr 2010 01:15:57 +0000 (21:15 -0400)] 
Style:  remove extra blank line

SVN-Revision: 2227

15 years agoStyle: tab follows #define
Tim Kientzle [Sun, 11 Apr 2010 01:11:54 +0000 (21:11 -0400)] 
Style: tab follows #define

SVN-Revision: 2226

15 years agoRemove an unnecessary variable.
Tim Kientzle [Sun, 11 Apr 2010 01:08:56 +0000 (21:08 -0400)] 
Remove an unnecessary variable.

SVN-Revision: 2225

15 years agoAdjust this test slightly so it doesn't depend on a
Tim Kientzle [Sun, 11 Apr 2010 00:10:58 +0000 (20:10 -0400)] 
Adjust this test slightly so it doesn't depend on a
particular order of traversing the directory.

In particular, this test almost passes against
GNU tar 1.23.  The difference being that GNU tar
considers it an error when a hardlink cannot
be extracted because the target was erased by
--strip-components and bsdtar does not consider
this an error.  Both extract the same files;
the only difference is that GNU tar emits
some error messages and exits with an error
status, while bsdtar exits with success.

SVN-Revision: 2224

15 years agoRefine the -C test a bit.
Tim Kientzle [Sat, 10 Apr 2010 21:32:39 +0000 (17:32 -0400)] 
Refine the -C test a bit.

SVN-Revision: 2223

15 years agoTest -C
Tim Kientzle [Sat, 10 Apr 2010 21:27:38 +0000 (17:27 -0400)] 
Test -C
  * Add a "testworkdir" global for tests that need an absolute path to their work directory
  * Exercise -C failure and corner cases such as -C nonexistent -C /absolute

SVN-Revision: 2222

15 years agoTest cleanup:
Tim Kientzle [Sat, 10 Apr 2010 21:02:55 +0000 (17:02 -0400)] 
Test cleanup:
 * Use assertMakeFile() instead of fopen/fwrite/fclose
 * Remove -s tests from test_option_T_upper; they just duplicate tests in test_option_s

SVN-Revision: 2221

15 years agoSimplify by using assertMakeFile()
Tim Kientzle [Sat, 10 Apr 2010 20:42:21 +0000 (16:42 -0400)] 
Simplify by using assertMakeFile()

SVN-Revision: 2220

15 years agoTest -b option
Tim Kientzle [Sat, 10 Apr 2010 20:23:48 +0000 (16:23 -0400)] 
Test -b option

SVN-Revision: 2219

15 years agoSimple test for tar -X
Tim Kientzle [Sat, 10 Apr 2010 19:55:45 +0000 (15:55 -0400)] 
Simple test for tar -X

SVN-Revision: 2218

15 years agoAdd basic test for --exclude
Tim Kientzle [Sat, 10 Apr 2010 19:49:56 +0000 (15:49 -0400)] 
Add basic test for --exclude

SVN-Revision: 2217

15 years agoremove pad_uncompressed; unused legacy bits
Brian Harring [Sun, 4 Apr 2010 18:37:42 +0000 (14:37 -0400)] 
remove pad_uncompressed; unused legacy bits

SVN-Revision: 2203

15 years agofwrite is marked w/ check return, thus doing make check results in build failures...
Brian Harring [Sun, 4 Apr 2010 05:43:17 +0000 (01:43 -0400)] 
fwrite is marked w/ check return, thus doing make check results in build failures due to -Werror forced in trunk.  assert the fwrite return to fix the issue, and more importantly the extremely unlikely scenario where the write doesn't manage to flush the desired size (if this isn't caught, it'll result in weird failures further in the tests)

SVN-Revision: 2059

15 years agogetgrnam_r and getpwnam_r might not exist, so fallback to the older
Joerg Sonnenberger [Wed, 31 Mar 2010 13:56:55 +0000 (09:56 -0400)] 
getgrnam_r and getpwnam_r might not exist, so fallback to the older
non-reentrant getgrnam and getpwnam in that case. Based on patch
from Hauke Fath.

SVN-Revision: 2058

15 years agoSort arguments for calloc. Add comments about power-of-two check
Joerg Sonnenberger [Tue, 30 Mar 2010 15:30:01 +0000 (11:30 -0400)] 
Sort arguments for calloc. Add comments about power-of-two check

SVN-Revision: 2057

15 years agoExplicit test archive_read_next_header against ARCHIVE_OK
Joerg Sonnenberger [Fri, 26 Mar 2010 15:42:15 +0000 (11:42 -0400)] 
Explicit test archive_read_next_header against ARCHIVE_OK

SVN-Revision: 2056

15 years agoUse unsigned int for the link count to be consistent with archive_entry.
Joerg Sonnenberger [Wed, 24 Mar 2010 17:52:30 +0000 (13:52 -0400)] 
Use unsigned int for the link count to be consistent with archive_entry.
Compute hashes and buckets using size_t. Be consistent in the sparse
freeing.

SVN-Revision: 2055

15 years agores->buckets is always !NULL, so drop checks for it.
Joerg Sonnenberger [Wed, 24 Mar 2010 17:09:59 +0000 (13:09 -0400)] 
res->buckets is always !NULL, so drop checks for it.

SVN-Revision: 2054

15 years ago- Use calloc instead of malloc + zeroing
Joerg Sonnenberger [Wed, 24 Mar 2010 16:44:36 +0000 (12:44 -0400)] 
- Use calloc instead of malloc + zeroing
- Enforce power-of-two size and use bitops instead of %

SVN-Revision: 2053

15 years agoOnly run make maintainer-clean etc, if the Makefile actually exists.
Joerg Sonnenberger [Wed, 24 Mar 2010 16:43:52 +0000 (12:43 -0400)] 
Only run make maintainer-clean etc, if the Makefile actually exists.

SVN-Revision: 2052

15 years agoSpeed up builds by just linking libarchive_test with the static
Tim Kientzle [Mon, 22 Mar 2010 05:11:11 +0000 (01:11 -0400)] 
Speed up builds by just linking libarchive_test with the static
libarchive, instead of recompiling libarchive source.  The old
approach did allow us to use different flags for compiling libarchive
sources into libarchive_test, but speeding up the build is probably a
worthwhile trade-off.

SVN-Revision: 2051

15 years agoAdd a TODO comment outlining a possible future optimization.
Tim Kientzle [Sun, 21 Mar 2010 23:52:06 +0000 (19:52 -0400)] 
Add a TODO comment outlining a possible future optimization.

SVN-Revision: 2050

15 years agoChange raw_read_data_skip into a no-op. Remove the archive_read_consume_all function
Tim Kientzle [Sun, 21 Mar 2010 16:30:45 +0000 (12:30 -0400)] 
Change raw_read_data_skip into a no-op.  Remove the archive_read_consume_all function
that wasn't used anywhere else.

SVN-Revision: 2049

15 years agoUpdate comments, remove a couple of unnecessary lines of code.
Tim Kientzle [Sun, 21 Mar 2010 16:29:00 +0000 (12:29 -0400)] 
Update comments, remove a couple of unnecessary lines of code.

SVN-Revision: 2048

15 years agoSwitch users of archive_read_skip() over to archive_read_consume() now
Tim Kientzle [Sun, 21 Mar 2010 16:12:16 +0000 (12:12 -0400)] 
Switch users of archive_read_skip() over to archive_read_consume() now
that they both do the same thing.  Remove archive_read_consume().
Rename the core "advance_file_pointer" function to make it a little
more clear that it's internal to archive_read.c.
Clean up a few comments.

SVN-Revision: 2047

15 years agoFinish merging the archive_read_consume and archive_read_skip implementations.
Tim Kientzle [Sun, 21 Mar 2010 16:00:28 +0000 (12:00 -0400)] 
Finish merging the archive_read_consume and archive_read_skip implementations.
These have always been just two different ways to advance the file
pointer; merging them is a simplification.

The only point remaining is to actually remove one of them and
change the users.

SVN-Revision: 2046

15 years agoMake read_filter_skip be independent of read_filter_consume. In particular,
Tim Kientzle [Sun, 21 Mar 2010 06:30:08 +0000 (02:30 -0400)] 
Make read_filter_skip be independent of read_filter_consume.  In particular,
read_skip now does everything that read_consume does, so we're ready to
merge read_skip and read_consume.

SVN-Revision: 2045

15 years agoClarify reporting of data errors in tests.
Tim Kientzle [Sun, 21 Mar 2010 06:27:17 +0000 (02:27 -0400)] 
Clarify reporting of data errors in tests.

SVN-Revision: 2044

15 years agoarchive_read_skip_lenient() (which just returns the number of bytes actually
Tim Kientzle [Sun, 21 Mar 2010 04:20:06 +0000 (00:20 -0400)] 
archive_read_skip_lenient() (which just returns the number of bytes actually
skipped) was only used one place as a building block for a "skip rest of file"
operation.  So push the "skip rest of file" into archive_read.c as
__archive_read_skip_all(), remove skip_lenient entirely, and modify
the raw_read_data_skip to use the new function.

SVN-Revision: 2043

15 years agoarchive_read_filter_skip() is only used within archive_read.c,
Tim Kientzle [Sun, 21 Mar 2010 04:03:40 +0000 (00:03 -0400)] 
archive_read_filter_skip() is only used within archive_read.c,
so make it static.

SVN-Revision: 2042

15 years agoRework some of the Unicode handling to avoid alignment problems.
Tim Kientzle [Sun, 21 Mar 2010 00:35:41 +0000 (20:35 -0400)] 
Rework some of the Unicode handling to avoid alignment problems.
A lot of processors have strict alignment and GCC on such
processors complains loudly when you cast a char * to an int16_t *.

SVN-Revision: 2041

15 years agoInclude "make dist-zip" as part of the autogen.sh script.
Tim Kientzle [Mon, 15 Mar 2010 04:48:30 +0000 (00:48 -0400)] 
Include "make dist-zip" as part of the autogen.sh script.

SVN-Revision: 2039

15 years agoIssue 79: Fix build on Linux
Tim Kientzle [Mon, 15 Mar 2010 02:24:04 +0000 (22:24 -0400)] 
Issue 79: Fix build on Linux

SVN-Revision: 2037

15 years agoUse mdoc2html, -T html doesn't work at least with the groff 1.19.2 in
Joerg Sonnenberger [Sun, 14 Mar 2010 01:36:15 +0000 (20:36 -0500)] 
Use mdoc2html, -T html doesn't work at least with the groff 1.19.2 in
NetBSD.

XXX This should most likely use mandoc for the HTML output

SVN-Revision: 2031

15 years agoIssue 76: Correct segfault when Zip bidder sees a file that is less than 128k
Tim Kientzle [Sat, 13 Mar 2010 06:40:02 +0000 (01:40 -0500)] 
Issue 76:  Correct segfault when Zip bidder sees a file that is less than 128k
and starts with "MZ".  The "MZ" signature identifies executable files that
could be self-extracting Zip files; the Zip bidder incorrectly handled
end-of-file when searching ahead for the Zip contents.

Submitted by: dardoguidobono

SVN-Revision: 2028

15 years agoProvide format names that allow explicit setting of "restricted pax"
Tim Kientzle [Fri, 12 Mar 2010 05:58:35 +0000 (00:58 -0500)] 
Provide format names that allow explicit setting of "restricted pax"
format.  In particular, as pointed out in Issue 74, this allows you
to use bsdcpio to write restricted pax format.

SVN-Revision: 2026

15 years agoOn systems that can't read symlink ACLs, don't read any ACL.
Tim Kientzle [Fri, 12 Mar 2010 05:54:52 +0000 (00:54 -0500)] 
On systems that can't read symlink ACLs, don't read any ACL.
As reported in Issue 75, this fixes a problem on Fedora 12 with ACLs
being incorrectly reported on symlinks.

Thanks to: rransom.8774

SVN-Revision: 2025

15 years agoPut the libarchive source directory at the beginning of the include
Tim Kientzle [Sat, 6 Mar 2010 22:22:40 +0000 (17:22 -0500)] 
Put the libarchive source directory at the beginning of the include
dirs; this ensures that archive.h and archive_entry.h get picked up
from there instead of from an installed system version.

SVN-Revision: 2019

15 years agoIssue 70: Consistently use O_BINARY when opening files.
Tim Kientzle [Sat, 6 Mar 2010 18:49:21 +0000 (13:49 -0500)] 
Issue 70:  Consistently use O_BINARY when opening files.

SVN-Revision: 2015

15 years agoInclude archive_crc32.h in the distribution.
Tim Kientzle [Sat, 6 Mar 2010 18:47:12 +0000 (13:47 -0500)] 
Include archive_crc32.h in the distribution.

SVN-Revision: 2013

15 years agoStyle: remove trailing whitespace.
Tim Kientzle [Sat, 6 Mar 2010 18:15:48 +0000 (13:15 -0500)] 
Style: remove trailing whitespace.

SVN-Revision: 2012

15 years agoSet version to 2.8.900a for testing pre-3.0.
Tim Kientzle [Sat, 6 Mar 2010 17:28:42 +0000 (12:28 -0500)] 
Set version to 2.8.900a for testing pre-3.0.

SVN-Revision: 2011

15 years agoRework archive_write_set_options:
Tim Kientzle [Sat, 6 Mar 2010 17:14:06 +0000 (12:14 -0500)] 
Rework archive_write_set_options:
 * Move the code into a separate source file for easier maintenance
 * Report all failed options in the error message

I plan to do a similar refactor on archive_read_set_options soon.

SVN-Revision: 2010

15 years agoClean up a missing case.
Tim Kientzle [Sat, 6 Mar 2010 16:37:30 +0000 (11:37 -0500)] 
Clean up a missing case.

SVN-Revision: 2009

15 years agoIf we need iconv.h to do a test build, then we'll need it for the real
Tim Kientzle [Fri, 5 Mar 2010 04:48:48 +0000 (23:48 -0500)] 
If we need iconv.h to do a test build, then we'll need it for the real
build as well.

SVN-Revision: 2008

15 years agoCorrect the error message printed for a state failure.
Tim Kientzle [Thu, 4 Mar 2010 06:18:48 +0000 (01:18 -0500)] 
Correct the error message printed for a state failure.

SVN-Revision: 2007

15 years agoSupport test specifications of the form 7-18 for running ranges
Tim Kientzle [Thu, 4 Mar 2010 05:14:23 +0000 (00:14 -0500)] 
Support test specifications of the form 7-18 for running ranges
of tests.

SVN-Revision: 2006

15 years agoFix a memory leak by invoking the client closer at the
Tim Kientzle [Thu, 4 Mar 2010 05:13:39 +0000 (00:13 -0500)] 
Fix a memory leak by invoking the client closer at the
right time.

SVN-Revision: 2005

15 years agoRename 'finish' to 'close' and 'destroy' to 'free', to clarify
Tim Kientzle [Mon, 1 Mar 2010 16:49:07 +0000 (11:49 -0500)] 
Rename 'finish' to 'close' and 'destroy' to 'free', to clarify
the new/open/close/free lifecycle terminology.

SVN-Revision: 2004

15 years agoOpen a door to changing the current abort-on-state-failure behavior:
Tim Kientzle [Mon, 1 Mar 2010 05:36:29 +0000 (00:36 -0500)] 
Open a door to changing the current abort-on-state-failure behavior:
 * Change __archive_check_magic to return a status code.
 * Change callers to use the archive_check_magic() wrapper macro,
   which calls __archive_check_magic and returns immediately
   if there's an ARCHIVE_FATAL status.
 * Update a bunch of API calls to actually do magic state checks.

I've also changed __archive_check_magic around a little bit:
 * Magic number checks still call abort().
 * State failures still call abort()
 * Starting with libarchive 3.0, state failures will return ARCHIVE_FATAL.

SVN-Revision: 2003

15 years agoOn second thought, since this new man page basically just documents
Tim Kientzle [Sun, 28 Feb 2010 00:42:35 +0000 (19:42 -0500)] 
On second thought, since this new man page basically just documents
archive_write_set_options, name it that.

SVN-Revision: 2002

15 years agoFollowing Joerg's lead, split out the archive_write options discussion
Tim Kientzle [Sun, 28 Feb 2010 00:12:33 +0000 (19:12 -0500)] 
Following Joerg's lead, split out the archive_write options discussion
to a separate man page and add descriptions of the new ISO9660 write
options.

SVN-Revision: 2001

15 years agoCorrect the comment to match the real spelling of these options.
Tim Kientzle [Sun, 28 Feb 2010 00:09:07 +0000 (19:09 -0500)] 
Correct the comment to match the real spelling of these options.

SVN-Revision: 2000

15 years agoMinor fixups for the raw handler: Use "raw" as the name
Tim Kientzle [Sat, 27 Feb 2010 20:11:42 +0000 (15:11 -0500)] 
Minor fixups for the raw handler:  Use "raw" as the name
for consistency, set filetype/perm to something that
would allow this entry to be reasonably extracted.

SVN-Revision: 1999

15 years agoUnbreak build on msys; further portability.
Michihiro NAKAJIMA [Fri, 26 Feb 2010 09:27:27 +0000 (04:27 -0500)] 
Unbreak build on msys; further portability.

SVN-Revision: 1997

15 years agoAdd aliases "iso" and "cd9660" to iso9660.
Michihiro NAKAJIMA [Fri, 26 Feb 2010 08:25:13 +0000 (03:25 -0500)] 
Add aliases "iso" and "cd9660" to iso9660.

Suggested by Tim Kientzle

SVN-Revision: 1996

15 years agoUse archive_clear_error() to wipe the error info.
Tim Kientzle [Fri, 26 Feb 2010 05:39:42 +0000 (00:39 -0500)] 
Use archive_clear_error() to wipe the error info.

SVN-Revision: 1995

15 years agoDo not break for-loop even if there is a wrong entry.
Michihiro NAKAJIMA [Thu, 25 Feb 2010 22:56:57 +0000 (17:56 -0500)] 
Do not break for-loop even if there is a wrong entry.

SVN-Revision: 1994

15 years agoPortability.
Michihiro NAKAJIMA [Thu, 25 Feb 2010 18:13:07 +0000 (13:13 -0500)] 
Portability.

SVN-Revision: 1993

15 years agoOn Windows, use _mkgmtime64() which is like timegm() function.
Michihiro NAKAJIMA [Thu, 25 Feb 2010 17:49:07 +0000 (12:49 -0500)] 
On Windows, use _mkgmtime64() which is like timegm() function.

SVN-Revision: 1992

15 years agoarchive_write_disk uses a series of chdir() operations to shorten path
Tim Kientzle [Thu, 25 Feb 2010 17:03:28 +0000 (12:03 -0500)] 
archive_write_disk uses a series of chdir() operations to shorten path
arguments to PATH_MAX.  If there is no PATH_MAX definition (as on
HURD), just skip this.

POSIX does provide a more complex way to deal with this concern using
fpathconf() to query the maximum relative pathname starting in any particular
directory.  Someday, this code should probably be augmented to use
that mechanism.

SVN-Revision: 1991

15 years agoUse st_size to size the buffer for reading a symbolic link value,
Tim Kientzle [Thu, 25 Feb 2010 17:00:28 +0000 (12:00 -0500)] 
Use st_size to size the buffer for reading a symbolic link value,
instead of using the arbitrary (and sometimes non-existent) PATH_MAX
variable.  This is part of a fix for building on HURD.

SVN-Revision: 1990

15 years agoSet archive_error_number to zero here. I'm a little uneasy about
Tim Kientzle [Thu, 25 Feb 2010 16:58:00 +0000 (11:58 -0500)] 
Set archive_error_number to zero here.  I'm a little uneasy about
this, as there are apparently libarchive uers that abuse archive_errno()
and this change is likely to mask bugs in such software.

SVN-Revision: 1989

15 years agoSort out the remaining format string vs argument types mismatches.
Joerg Sonnenberger [Thu, 25 Feb 2010 16:16:36 +0000 (11:16 -0500)] 
Sort out the remaining format string vs argument types mismatches.

SVN-Revision: 1988

15 years agoAdd __LA_PRINTF to enable format-string checks for GCC.
Joerg Sonnenberger [Thu, 25 Feb 2010 16:13:05 +0000 (11:13 -0500)] 
Add __LA_PRINTF to enable format-string checks for GCC.

SVN-Revision: 1987

15 years agoSupport z for (s)size_t.
Joerg Sonnenberger [Thu, 25 Feb 2010 15:54:03 +0000 (10:54 -0500)] 
Support z for (s)size_t.

SVN-Revision: 1986

15 years agoAdd missing argument for archive_set_error to match format string.
Joerg Sonnenberger [Thu, 25 Feb 2010 15:49:41 +0000 (10:49 -0500)] 
Add missing argument for archive_set_error to match format string.

SVN-Revision: 1985

15 years agoFix some types for printf-like functions.
Joerg Sonnenberger [Thu, 25 Feb 2010 15:48:06 +0000 (10:48 -0500)] 
Fix some types for printf-like functions.

SVN-Revision: 1984

15 years agoExplicit cast to intmax_t for uid and gid in archive_write_disk.c.
Michihiro NAKAJIMA [Thu, 25 Feb 2010 14:05:35 +0000 (09:05 -0500)] 
Explicit cast to intmax_t for uid and gid in archive_write_disk.c.

SVN-Revision: 1983

15 years agoIntroduce ISO writer.
Michihiro NAKAJIMA [Thu, 25 Feb 2010 12:52:17 +0000 (07:52 -0500)] 
Introduce ISO writer.
- Creates Rockridge and Joliet extensions by default.
- Supports creating "El Torito" bootable CD image.
- Supports creating zisofs, RRIP 'ZF' extension.

SVN-Revision: 1982

15 years agoSimplify the handling of the MSDOS style dates, which are out of range.
Michihiro NAKAJIMA [Thu, 25 Feb 2010 10:47:20 +0000 (05:47 -0500)] 
Simplify the handling of the MSDOS style dates, which are out of range.

SVN-Revision: 1981

15 years agoEliminate the cause of segfault at test_write_disk_perms on cygwin.
Michihiro NAKAJIMA [Thu, 25 Feb 2010 10:27:16 +0000 (05:27 -0500)] 
Eliminate the cause of segfault at test_write_disk_perms on cygwin.
uid and gid are int64_t.

SVN-Revision: 1980

15 years agoEliminate warnings, which are singed/unsigned mismatch, on Visual Studio.
Michihiro NAKAJIMA [Thu, 25 Feb 2010 09:47:21 +0000 (04:47 -0500)] 
Eliminate warnings, which are singed/unsigned mismatch, on Visual Studio.

SVN-Revision: 1979

15 years agoUnbreak build on mingw.
Michihiro NAKAJIMA [Wed, 24 Feb 2010 08:22:26 +0000 (03:22 -0500)] 
Unbreak build on mingw.

SVN-Revision: 1971

15 years agoMSDOS-style date/time can handle only dates between 1980-01-10 and 2107-12-31.
Michihiro NAKAJIMA [Wed, 24 Feb 2010 06:26:14 +0000 (01:26 -0500)] 
MSDOS-style date/time can handle only dates between 1980-01-10 and 2107-12-31.

SVN-Revision: 1970

15 years agoClarify that archive_errno() cannot be reliably used to determine when
Tim Kientzle [Wed, 24 Feb 2010 05:27:57 +0000 (00:27 -0500)] 
Clarify that archive_errno() cannot be reliably used to determine when
an error occurs.

SVN-Revision: 1969

15 years agosvn:ignore update
Tim Kientzle [Wed, 24 Feb 2010 05:25:07 +0000 (00:25 -0500)] 
svn:ignore update

SVN-Revision: 1968

15 years agosvn:ignore updates.
Tim Kientzle [Wed, 24 Feb 2010 05:24:00 +0000 (00:24 -0500)] 
svn:ignore updates.

SVN-Revision: 1967

15 years agoAvoid failing some libarchive_test on Windows and some platforms,
Michihiro NAKAJIMA [Tue, 23 Feb 2010 18:10:33 +0000 (13:10 -0500)] 
Avoid failing some libarchive_test on Windows and some platforms,
whose the size of off_t is four bytes.

SVN-Revision: 1966

15 years agoOops. Forgot to initialize the is_disk_like variable. While I'm
Tim Kientzle [Tue, 23 Feb 2010 16:18:00 +0000 (11:18 -0500)] 
Oops.  Forgot to initialize the is_disk_like variable.  While I'm
here, make the block size selection for disks be aware of the users
request.  Users should be able to ask for larger block sizes.

SVN-Revision: 1965

15 years agoBe consistent and complete and document all available options.
Joerg Sonnenberger [Mon, 22 Feb 2010 23:28:06 +0000 (18:28 -0500)] 
Be consistent and complete and document all available options.
Fix markup for long options.

SVN-Revision: 1964

15 years agoDocument the various long options and use consistent markup.
Joerg Sonnenberger [Mon, 22 Feb 2010 20:31:21 +0000 (15:31 -0500)] 
Document the various long options and use consistent markup.

SVN-Revision: 1963