]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
14 years agoRefactor archive_write_open_filename(_w) to make it simple, and be able to exceed...
Michihiro NAKAJIMA [Mon, 23 Jan 2012 13:16:49 +0000 (08:16 -0500)] 
Refactor archive_write_open_filename(_w) to make it simple, and be able to exceed MAX_PATH on Windows
when an MBS filename is specified.

SVN-Revision: 4196

14 years agoEliminate invoking __archive_errx() from archive_acl.c.
Michihiro NAKAJIMA [Mon, 23 Jan 2012 09:55:01 +0000 (04:55 -0500)] 
Eliminate invoking __archive_errx() from archive_acl.c.

SVN-Revision: 4195

14 years agoFix a memory leak in archive_matching.
Michihiro NAKAJIMA [Mon, 23 Jan 2012 09:12:54 +0000 (04:12 -0500)] 
Fix a memory leak in archive_matching.

SVN-Revision: 4194

14 years agoWhen ENOMEM happened in archive_string_append_from_wcs and archive_string_append_from...
Michihiro NAKAJIMA [Mon, 23 Jan 2012 09:08:46 +0000 (04:08 -0500)] 
When ENOMEM happened in archive_string_append_from_wcs and archive_string_append_from_mbs,
those function should report the error to the caller instead of invoking __archive_errx().
We should report that ENOMEM error as possible as we can and we still need to further
improve reporting ENOEM.

SVN-Revision: 4193

14 years agoRename read_open_memory2 to read_open_memory_minimal, which is
Tim Kientzle [Mon, 23 Jan 2012 05:06:04 +0000 (00:06 -0500)] 
Rename read_open_memory2 to read_open_memory_minimal, which is
a bit more descriptive.

SVN-Revision: 4192

14 years agoIssue 226: Try to reproduce a hang when reading archives
Tim Kientzle [Mon, 23 Jan 2012 04:56:28 +0000 (23:56 -0500)] 
Issue 226: Try to reproduce a hang when reading archives
where the length-at-end marker ends exactly on a block boundary.

This doesn't yet succeed, but I want to save this before
I do some other refactoring that might help get to it.

SVN-Revision: 4191

14 years agoIssue 225: Misreading directories in MSDOS Zip files.
Tim Kientzle [Mon, 23 Jan 2012 03:21:30 +0000 (22:21 -0500)] 
Issue 225: Misreading directories in MSDOS Zip files.

These files don't put a POSIX "mode" value in the "external
attributes" field.  We used to always assume a regular file if we
didn't see that.

Now, the code leaves the mode set to zero in that case.  When we read
the local file header, the fallback heuristics will kick in and
examine the filename to determine whether this is a directory
or a regular file.

SVN-Revision: 4190

14 years agoClarify an error message.
Tim Kientzle [Sun, 22 Jan 2012 19:53:42 +0000 (14:53 -0500)] 
Clarify an error message.

SVN-Revision: 4189

14 years agoProperly generate errno by la_dosmapper() and pass it to archive_set_error() in direc...
Michihiro NAKAJIMA [Sat, 21 Jan 2012 14:29:43 +0000 (09:29 -0500)] 
Properly generate errno by la_dosmapper() and pass it to archive_set_error() in directory traversals on Windows.

SVN-Revision: 4188

14 years agoDo not return ARCHIVE_WARN even if the current file cannot descend, simply returns...
Michihiro NAKAJIMA [Thu, 19 Jan 2012 11:56:38 +0000 (06:56 -0500)] 
Do not return ARCHIVE_WARN even if the current file cannot descend, simply returns ARCHIVE_OK.

SVN-Revision: 4187

14 years agoImplement optional behavior of archive_read_disk that do not traverse mount points...
Michihiro NAKAJIMA [Thu, 19 Jan 2012 11:51:43 +0000 (06:51 -0500)] 
Implement optional behavior of archive_read_disk that do not traverse mount points if user requests.

SVN-Revision: 4186

14 years agoAdd archive_read_disk_set_behavior function and drop archive_read_disk_honor_nodump and
Michihiro NAKAJIMA [Thu, 19 Jan 2012 11:15:41 +0000 (06:15 -0500)] 
Add archive_read_disk_set_behavior function and drop archive_read_disk_honor_nodump and
archive_read_disk_disable_mac_copyfile.

SVN-Revision: 4184

14 years agoMerge libarchive 2.8
Brad King [Thu, 19 Jan 2012 08:53:59 +0000 (03:53 -0500)] 
Merge libarchive 2.8

This commit was manufactured during conversion from SVN
to merge the libarchive 2.8 branch.

14 years agoIssue 224:Mishandling CD9660 images with RockRidge extensions from FreeBSD makefs.
Michihiro NAKAJIMA [Thu, 19 Jan 2012 08:53:59 +0000 (03:53 -0500)] 
Issue 224:Mishandling CD9660 images with RockRidge extensions from FreeBSD makefs.
Merge r4181 from trunk.

SVN-Revision: 4183

14 years agoIssue 224:Mishandling CD9660 images with RockRidge extensions from FreeBSD makefs.
Michihiro NAKAJIMA [Thu, 19 Jan 2012 08:53:30 +0000 (03:53 -0500)] 
Issue 224:Mishandling CD9660 images with RockRidge extensions from FreeBSD makefs.
Merge r4181 from trunk.

SVN-Revision: 4182

14 years agoIssue 224:Mishandling CD9660 images with RockRidge extensions from FreeBSD makefs.
Michihiro NAKAJIMA [Thu, 19 Jan 2012 08:11:29 +0000 (03:11 -0500)] 
Issue 224:Mishandling CD9660 images with RockRidge extensions from FreeBSD makefs.

A file size of the symblic link file in ISO images made by makefs is not zero and
its location is not negative. That makes ISO reader misleading that that file is
a hard like file.
We have to check if the file type is symbolic like or not, if so and its file size
is not zero, reset the file size to zero and also reset the location to -1.

SVN-Revision: 4181

14 years agoIf the format of times in ISO images is invalid, reset the time to 0.
Michihiro NAKAJIMA [Thu, 19 Jan 2012 07:31:31 +0000 (02:31 -0500)] 
If the format of times in ISO images is invalid, reset the time to 0.

SVN-Revision: 4180

14 years agoDelete archive_matching_path_excluded and archive_matching_path_excluded_w.
Michihiro NAKAJIMA [Thu, 19 Jan 2012 04:54:43 +0000 (23:54 -0500)] 
Delete archive_matching_path_excluded and archive_matching_path_excluded_w.
They were not so helpful than I though at archive_read_disk.
Rename archive_matching_path_excluded_ae to archive_matching_path_excluded.
Rename archive_matching_time_excluded_ae to archive_matching_time_excluded.
Rename archive_matching_owner_excluded_ae to archive_matching_owner_excluded.
Rename archive_matching_excluded_ae to archive_matching_excluded.

SVN-Revision: 4178

14 years agoFix build failure on non Windows platform.
Michihiro NAKAJIMA [Thu, 19 Jan 2012 03:21:50 +0000 (22:21 -0500)] 
Fix build failure on non Windows platform.

SVN-Revision: 4176

14 years agoCast away archive_read_disk_set_name_filter_callback and add archive_read_disk_set_ma...
Michihiro NAKAJIMA [Thu, 19 Jan 2012 03:13:43 +0000 (22:13 -0500)] 
Cast away archive_read_disk_set_name_filter_callback and add archive_read_disk_set_matching instead
to effectively call archive_matching_*_excluded_ae function in archive_read_disk.

SVN-Revision: 4175

14 years agoUse hidden file to track empty directories for git/hg.
Andres Mejia [Wed, 18 Jan 2012 20:03:02 +0000 (15:03 -0500)] 
Use hidden file to track empty directories for git/hg.
There is at least three devs who use git and one dev who uses hg for libarchive
development.

SVN-Revision: 4174

14 years agoFix build failure at libarchive_fe.
Michihiro NAKAJIMA [Wed, 18 Jan 2012 08:01:31 +0000 (03:01 -0500)] 
Fix build failure at libarchive_fe.

SVN-Revision: 4169

14 years agoUse archive_matching API at both bsdcpio and bsdtar instead of lafe_exclude functions.
Michihiro NAKAJIMA [Wed, 18 Jan 2012 05:30:38 +0000 (00:30 -0500)] 
Use archive_matching API at both bsdcpio and bsdtar instead of lafe_exclude functions.
  - Remove libarchive_fe/matching.[ch], which are no longer needed.
  - Move cpio/test/test_pathmatch.c into libarchive/test/test_archive_pathmatch.c.

SVN-Revision: 4168

14 years agoUsinsg assertUtimes changes ctime, we have to wait a minute between performing assert...
Michihiro NAKAJIMA [Wed, 18 Jan 2012 05:21:24 +0000 (00:21 -0500)] 
Usinsg assertUtimes changes ctime, we have to wait a minute between performing assertUtimes.

SVN-Revision: 4167

14 years agoFor testing ctime at archive_matching, use mtime if ctime is not set.
Michihiro NAKAJIMA [Wed, 18 Jan 2012 02:49:56 +0000 (21:49 -0500)] 
For testing ctime at archive_matching, use mtime if ctime is not set.

SVN-Revision: 4166

14 years agoCorrectly get file's ctime in archive_matching.
Michihiro NAKAJIMA [Wed, 18 Jan 2012 02:30:20 +0000 (21:30 -0500)] 
Correctly get file's ctime in archive_matching.

SVN-Revision: 4165

14 years agoRetire tar/tree.[ch], directory traversal code, switched by new one implemented in...
Michihiro NAKAJIMA [Tue, 17 Jan 2012 15:41:10 +0000 (10:41 -0500)] 
Retire tar/tree.[ch], directory traversal code, switched by new one implemented in libarchive library.

SVN-Revision: 4164

14 years agoFix a minor error of previous change.
Michihiro NAKAJIMA [Tue, 17 Jan 2012 15:24:06 +0000 (10:24 -0500)] 
Fix a minor error of previous change.

SVN-Revision: 4163

14 years agoIntroduce archive_matching APIs. This is a set of utility functions to
Michihiro NAKAJIMA [Tue, 17 Jan 2012 15:18:15 +0000 (10:18 -0500)] 
Introduce archive_matching APIs. This is a set of utility functions to
find matched archive_entry objects. This is based on libarchive_fe/matching.[ch]
I added serveral interfaces for wchar_t, and matching file stamps and owners.

I also plan to use that at archive_read_disk instead of
archive_read_disk_set_name_filter_callback function, which I recently added.

SVN-Revision: 4162

14 years agoRemove an unnecessary comparison and minor tweaks.
Michihiro NAKAJIMA [Sun, 15 Jan 2012 08:27:19 +0000 (03:27 -0500)] 
Remove an unnecessary comparison and minor tweaks.

SVN-Revision: 4154

14 years agoSimply, read Mac metadata only when enable_copyfile is true.
Michihiro NAKAJIMA [Sun, 15 Jan 2012 08:08:41 +0000 (03:08 -0500)] 
Simply, read Mac metadata only when enable_copyfile is true.

SVN-Revision: 4153

14 years agoMove an operation saving file times used for restoring atime after
Michihiro NAKAJIMA [Sun, 15 Jan 2012 07:55:44 +0000 (02:55 -0500)] 
Move an operation saving file times used for restoring atime after
a nodump detection.

SVN-Revision: 4152

14 years agoImprove a directory traversals test for restoring atime. Additional patterns are
Michihiro NAKAJIMA [Sun, 15 Jan 2012 07:10:28 +0000 (02:10 -0500)] 
Improve a directory traversals test for restoring atime. Additional patterns are
without reading file contents and with nodump flags.

SVN-Revision: 4151

14 years agoMake sure we check nodump flag and skip it if so, before invoking a meta data
Michihiro NAKAJIMA [Sun, 15 Jan 2012 06:41:04 +0000 (01:41 -0500)] 
Make sure we check nodump flag and skip it if so, before invoking a meta data
filter callback, which would call archive_read_disk_descend().

SVN-Revision: 4150

14 years agoLibarchive 3.0.3 v3.0.3
Tim Kientzle [Fri, 13 Jan 2012 05:32:07 +0000 (00:32 -0500)] 
Libarchive 3.0.3

SVN-Revision: 4139

14 years agoMerge r4085 from trunk: Simplify finalizing the file size when
Tim Kientzle [Thu, 12 Jan 2012 06:46:14 +0000 (01:46 -0500)] 
Merge r4085 from trunk:  Simplify finalizing the file size when
writing files on Windows.

SVN-Revision: 4138

14 years agoRemove the unused system types from the public headers. We stripped
Tim Kientzle [Thu, 12 Jan 2012 06:20:17 +0000 (01:20 -0500)] 
Remove the unused system types from the public headers.  We stripped
out almost all of the system-specific ino_t, uid_t, gid_t, etc, types
from the libarchive public API, so these definitions are no longer
needed.
In practice, those types are broken on enough systems that it just
wasn't worth trying to use them.

SVN-Revision: 4137

14 years agoRename isoent_rr_move_dir parameter isoent => curent
Brad King [Wed, 11 Jan 2012 13:16:05 +0000 (08:16 -0500)] 
Rename isoent_rr_move_dir parameter isoent => curent

The PGI compiler confuses parameter name "isoent" with "struct isoent".
Rename the parameter to "curent" to avoid confusion.

SVN-Revision: 4136

14 years agoInclude linux/types.h before linux/fiemap.h
Brad King [Wed, 11 Jan 2012 13:15:59 +0000 (08:15 -0500)] 
Include linux/types.h before linux/fiemap.h

Some Linux API versions do not perform this inclusion automatically,
so types like __u64 needed by the latter are not available.

SVN-Revision: 4135

14 years agoDefine _XOPEN_SOURCE=500 on HP-UX
Brad King [Wed, 11 Jan 2012 13:15:53 +0000 (08:15 -0500)] 
Define _XOPEN_SOURCE=500 on HP-UX

The HP-UX <wchar.h> header provides 'mbstate_t' in C89/C90 mode only if
_XOPEN_SOURCE is defined to exactly 500.  Type 'mbstate_t' was
introduced in C89/C90 Normative Amendment 1, aka C94/C95, adding support
international character sets.  It is part of C99 but not C89/C90.

SVN-Revision: 4134

14 years agoCleanup after ZLIB_WINAPI check
Brad King [Wed, 11 Jan 2012 13:15:49 +0000 (08:15 -0500)] 
Cleanup after ZLIB_WINAPI check

Clear CMAKE_REQUIRED_(INCLUDES|LIBRARIES) so that the rest of the checks
after this one do not try to link zlib.

SVN-Revision: 4133

14 years agoCheck for 'struct statvfs' member 'f_iosize'
Brad King [Wed, 11 Jan 2012 13:15:42 +0000 (08:15 -0500)] 
Check for 'struct statvfs' member 'f_iosize'

Configure the result as definition HAVE_STRUCT_STATVFS_F_IOSIZE and use
the member only if it exists.  At least one platform (IRIX) provides
struct statvfs without this member.

SVN-Revision: 4132

14 years agoDo not use ST_NOATIME if not defined
Brad King [Wed, 11 Jan 2012 13:15:36 +0000 (08:15 -0500)] 
Do not use ST_NOATIME if not defined

Use the same pattern already used elsewhere in archive_read_disk_posix.c
to use ST_NOATIME only when defined.

SVN-Revision: 4131

14 years agoFix var decl after statement in archive_string.c
Brad King [Wed, 11 Jan 2012 13:15:31 +0000 (08:15 -0500)] 
Fix var decl after statement in archive_string.c

When HAVE_MBRTOWC is true we declare an extra local variable.  Move the
unused argument cast to the end of the invalid_mbs function.

SVN-Revision: 4130

14 years agoFix Windows NT API usage in VS 6
Brad King [Wed, 11 Jan 2012 13:15:25 +0000 (08:15 -0500)] 
Fix Windows NT API usage in VS 6

VS 6 warns verbosely when WINVER >= 0x0500.  Avoid defining WINVER and
_WIN32_WINNT to higher than 0x0400 on VS 6.  Provide missing API
declarations in archive_windows.h when we do not get them from
<windows.h>.  Provide GetVolumePathNameW because VS 6 does not declare
it regardless of the API version.

SVN-Revision: 4129

14 years agoCast mode constants to mode_t in case it is signed
Brad King [Wed, 11 Jan 2012 13:15:20 +0000 (08:15 -0500)] 
Cast mode constants to mode_t in case it is signed

At least one compiler (Borland) defines mode_t as just "short" which is
signed.  This breaks code like

  switch(archive_entry_filetype(e)) {
    case AE_IFREG:
    ...
  }

if AE_IFREG and other constants have a longer signed type (int) because
sign extension of the mode_t return type from archive_entry_filetype
changes its value.  Avoid the problem by ensuring the type of the
constants matches mode_t.

SVN-Revision: 4128

14 years agoReplace integer constant LL suffix with cast to int64_t
Brad King [Wed, 11 Jan 2012 13:15:14 +0000 (08:15 -0500)] 
Replace integer constant LL suffix with cast to int64_t

The LL suffix is not portable.  Use an explicit cast instead.

SVN-Revision: 4127

14 years agoDeclare mbstate_t and wcrtomb for Borland
Brad King [Wed, 11 Jan 2012 13:15:09 +0000 (08:15 -0500)] 
Declare mbstate_t and wcrtomb for Borland

The Borland C++ 5.81 runtime library provides wcrtomb but only the C++
header <cwchar> actually declares the API.  Since this is C code we
cannot use the header, so declare it ourselves.

SVN-Revision: 4126

14 years agoImplement custom lseek for Borland
Brad King [Wed, 11 Jan 2012 13:15:03 +0000 (08:15 -0500)] 
Implement custom lseek for Borland

Restore Windows 64-bit lseek removed by upstream svn revision 3826
(Cast away __la_lseek(), use _lseeki64() instead, 2011-11-21).  We
need it on Borland.

SVN-Revision: 4125

14 years agoFix typo in CheckFileOffsetBits
Brad King [Wed, 11 Jan 2012 13:14:57 +0000 (08:14 -0500)] 
Fix typo in CheckFileOffsetBits

s/Cheking/Checking/

Author: Rolf Eike Beer <eike@sf-mail.de>

SVN-Revision: 4124

14 years agoIssue 223. Revise r4120 and merge r4122 from trunk.
Michihiro NAKAJIMA [Wed, 11 Jan 2012 07:21:25 +0000 (02:21 -0500)] 
Issue 223. Revise r4120 and merge r4122 from trunk.

SVN-Revision: 4123

14 years agoBe more portable way to test if the current filesytem is mounted with noatime option.
Michihiro NAKAJIMA [Wed, 11 Jan 2012 07:14:29 +0000 (02:14 -0500)] 
Be more portable way to test if the current filesytem is mounted with noatime option.

SVN-Revision: 4122

14 years agoAvoid possibility to pass zero to the first argument of calloc().
Michihiro NAKAJIMA [Wed, 11 Jan 2012 01:02:23 +0000 (20:02 -0500)] 
Avoid possibility to pass zero to the first argument of calloc().
Clang Static Analyzer complaned of that.

SVN-Revision: 4121

14 years agoIssue 223. Merge from r4119 from trunk.
Michihiro NAKAJIMA [Tue, 10 Jan 2012 23:11:02 +0000 (18:11 -0500)] 
Issue 223. Merge from r4119 from trunk.

SVN-Revision: 4120

14 years agoDo not try a test restoring atime when the filesytem is mounted with noatime option.
Michihiro NAKAJIMA [Tue, 10 Jan 2012 10:10:03 +0000 (05:10 -0500)] 
Do not try a test restoring atime when the filesytem is mounted with noatime option.

SVN-Revision: 4119

14 years agoMerge fixes for Issue 222 from trunk: Write entry data correctly
Tim Kientzle [Tue, 10 Jan 2012 07:17:48 +0000 (02:17 -0500)] 
Merge fixes for Issue 222 from trunk:  Write entry data correctly
when writing sparse files to Pax archives using GNU tar 1.0 sparse format.

SVN-Revision: 4118

14 years agoMerge from trunk: whitespace cleanup.
Tim Kientzle [Tue, 10 Jan 2012 07:11:46 +0000 (02:11 -0500)] 
Merge from trunk: whitespace cleanup.

SVN-Revision: 4117

14 years agoMerge from trunk: Allow building on systems that lack PATH_MAX definition.
Tim Kientzle [Tue, 10 Jan 2012 07:10:05 +0000 (02:10 -0500)] 
Merge from trunk: Allow building on systems that lack PATH_MAX definition.

SVN-Revision: 4116

14 years agoMerge from trunk: always-true comparison.
Tim Kientzle [Tue, 10 Jan 2012 07:05:12 +0000 (02:05 -0500)] 
Merge from trunk: always-true comparison.

SVN-Revision: 4115

14 years agoMerge from trunk: Minor compiler warning cleanup.
Tim Kientzle [Tue, 10 Jan 2012 07:04:23 +0000 (02:04 -0500)] 
Merge from trunk:  Minor compiler warning cleanup.

SVN-Revision: 4114

14 years agoRecord already-merged changes.
Tim Kientzle [Tue, 10 Jan 2012 07:01:29 +0000 (02:01 -0500)] 
Record already-merged changes.

SVN-Revision: 4113

14 years agoRecord already-merged change.
Tim Kientzle [Tue, 10 Jan 2012 06:48:26 +0000 (01:48 -0500)] 
Record already-merged change.

SVN-Revision: 4112

14 years agoRecord already-merged changes.
Tim Kientzle [Tue, 10 Jan 2012 06:44:41 +0000 (01:44 -0500)] 
Record already-merged changes.

SVN-Revision: 4111

14 years agoMerge spelling fixes from trunk.
Tim Kientzle [Tue, 10 Jan 2012 06:42:09 +0000 (01:42 -0500)] 
Merge spelling fixes from trunk.

SVN-Revision: 4110

14 years agoRecord already-merged change.
Tim Kientzle [Tue, 10 Jan 2012 06:40:42 +0000 (01:40 -0500)] 
Record already-merged change.

SVN-Revision: 4109

14 years agoRecord already-merged changes.
Tim Kientzle [Tue, 10 Jan 2012 06:38:49 +0000 (01:38 -0500)] 
Record already-merged changes.

SVN-Revision: 4108

14 years agoMerge r4106 to fix Issue 221.
Tim Kientzle [Tue, 10 Jan 2012 04:53:50 +0000 (23:53 -0500)] 
Merge r4106 to fix Issue 221.

SVN-Revision: 4107

14 years agoAllow archive_*_free(NULL) to succeed.
Tim Kientzle [Tue, 10 Jan 2012 04:49:19 +0000 (23:49 -0500)] 
Allow archive_*_free(NULL) to succeed.

SVN-Revision: 4106

14 years agoFix a handling of spase file more. It wrote extra bytes(adding sparse hole)
Michihiro NAKAJIMA [Mon, 9 Jan 2012 06:42:25 +0000 (01:42 -0500)] 
Fix a handling of spase file more.  It wrote extra bytes(adding sparse hole)
when sparse file data was incompletely written.

SVN-Revision: 4103

14 years agoAdd a test for archiving sparse files with pax writer.
Michihiro NAKAJIMA [Mon, 9 Jan 2012 06:01:48 +0000 (01:01 -0500)] 
Add a test for archiving sparse files with pax writer.

SVN-Revision: 4102

14 years agoIssue 222: Ouch! Pax writer doesn't correctly disassemble sparse
Tim Kientzle [Mon, 9 Jan 2012 05:47:16 +0000 (00:47 -0500)] 
Issue 222: Ouch!  Pax writer doesn't correctly disassemble sparse
data when writing it out to the archive.

There's clearly a test missing somewhere around here...

SVN-Revision: 4101

14 years agoMerge r4097 from trunk.
Michihiro NAKAJIMA [Mon, 9 Jan 2012 04:30:31 +0000 (23:30 -0500)] 
Merge r4097 from trunk.

SVN-Revision: 4100

14 years agoFix a handling of sparse files in bsdtar.(Not issue 222)
Michihiro NAKAJIMA [Mon, 9 Jan 2012 04:14:25 +0000 (23:14 -0500)] 
Fix a handling of sparse files in bsdtar.(Not issue 222)

SVN-Revision: 4098

14 years agoIf linux major version is 3 or later we can test sparse files.
Michihiro NAKAJIMA [Mon, 9 Jan 2012 03:03:19 +0000 (22:03 -0500)] 
If linux major version is 3 or later we can test sparse files.

SVN-Revision: 4097

14 years agoMerge Ulrich Spoerlein's spelling fixes from trunk.
Tim Kientzle [Sun, 8 Jan 2012 00:47:52 +0000 (19:47 -0500)] 
Merge Ulrich Spoerlein's spelling fixes from trunk.

SVN-Revision: 4095

14 years agoLast of Ulrich Spoerlein's spelling fixes.
Tim Kientzle [Sun, 8 Jan 2012 00:45:39 +0000 (19:45 -0500)] 
Last of Ulrich Spoerlein's spelling fixes.

SVN-Revision: 4094

14 years agoSpelling fixes from Ulrich Spoerlein
Tim Kientzle [Sun, 8 Jan 2012 00:45:09 +0000 (19:45 -0500)] 
Spelling fixes from Ulrich Spoerlein

SVN-Revision: 4093

14 years agoSpelling fixes from Ulrich Spoerlein.
Tim Kientzle [Sun, 8 Jan 2012 00:43:56 +0000 (19:43 -0500)] 
Spelling fixes from Ulrich Spoerlein.

SVN-Revision: 4092

14 years agoIntroduce archive_read_disk_disable_mac_copyfile() to eliminate the mac
Michihiro NAKAJIMA [Sat, 7 Jan 2012 08:00:12 +0000 (03:00 -0500)] 
Introduce archive_read_disk_disable_mac_copyfile() to eliminate the mac
specific code handling of a resource fork file whose filename has "._" prefix
from bsdtar.

SVN-Revision: 4091

14 years agoThe size of output buffer should be the multiple number of the write block size
Michihiro NAKAJIMA [Fri, 6 Jan 2012 05:53:29 +0000 (00:53 -0500)] 
The size of output buffer should be the multiple number of the write block size
in order to reduce an extra copy of output data at archive_write.c.

SVN-Revision: 4090

14 years agoSwitch directory traversals code in bsdtar from tar/tree.[ch] to the new one in libar...
Michihiro NAKAJIMA [Thu, 5 Jan 2012 08:07:22 +0000 (03:07 -0500)] 
Switch directory traversals code in bsdtar from tar/tree.[ch] to the new one in libarchive library.
This can fix issue 211. This reduce platform specific code in bsdtar, especially a check of
nodump flag, and, of course, a use of Windows APIs.

SVN-Revision: 4089

14 years agoMake sure remaining asynchronous reads are canceled whenever something unexpected...
Michihiro NAKAJIMA [Thu, 5 Jan 2012 07:35:24 +0000 (02:35 -0500)] 
Make sure remaining asynchronous reads are canceled whenever something unexpected sequence happen.

SVN-Revision: 4088

14 years agoClean up: style fix and remove unneeded statements and definitions.
Michihiro NAKAJIMA [Wed, 4 Jan 2012 06:52:24 +0000 (01:52 -0500)] 
Clean up: style fix and remove unneeded statements and definitions.

SVN-Revision: 4086

14 years agoRemove POSIX specific code about taking care of ftruncate failure.
Michihiro NAKAJIMA [Wed, 4 Jan 2012 06:43:12 +0000 (01:43 -0500)] 
Remove POSIX specific code about taking care of ftruncate failure.

SVN-Revision: 4085

14 years agoUse OVERLAOPED data with WriteFile API instead of SetFilePointer API to set the file...
Michihiro NAKAJIMA [Wed, 4 Jan 2012 06:36:59 +0000 (01:36 -0500)] 
Use OVERLAOPED data with WriteFile API instead of SetFilePointer API to set the file offset.

SVN-Revision: 4084

14 years agoImprove handing a wildcard which has "//?/" prefix.
Michihiro NAKAJIMA [Wed, 4 Jan 2012 05:39:09 +0000 (00:39 -0500)] 
Improve handing a wildcard which has "//?/" prefix.

SVN-Revision: 4083

14 years agoAvoid a warning on Visual Studio.
Michihiro NAKAJIMA [Wed, 4 Jan 2012 04:58:14 +0000 (23:58 -0500)] 
Avoid a warning on Visual Studio.

SVN-Revision: 4082

14 years agoIssue 219: 'size' variable should be signed, to detect overflow.
Tim Kientzle [Wed, 4 Jan 2012 03:21:54 +0000 (22:21 -0500)] 
Issue 219: 'size' variable should be signed, to detect overflow.

SVN-Revision: 4077

14 years agoStyle fix. <space> ==> <tab>.
Michihiro NAKAJIMA [Wed, 4 Jan 2012 01:46:33 +0000 (20:46 -0500)] 
Style fix. <space> ==> <tab>.

SVN-Revision: 4076

14 years agoClean up; remove unused including files and macros, which originally came from POSIX...
Michihiro NAKAJIMA [Wed, 4 Jan 2012 01:27:07 +0000 (20:27 -0500)] 
Clean up; remove unused including files and macros, which originally came from POSIX version, on Windows.

SVN-Revision: 4075

14 years agoImplement asynchronous read in directory traversals on Windows.
Michihiro NAKAJIMA [Wed, 4 Jan 2012 01:18:44 +0000 (20:18 -0500)] 
Implement asynchronous read in directory traversals on Windows.

SVN-Revision: 4074

14 years agoFix one of issue 219; remove an unnecessary check.
Michihiro NAKAJIMA [Tue, 3 Jan 2012 21:50:07 +0000 (16:50 -0500)] 
Fix one of issue 219; remove an unnecessary check.

SVN-Revision: 4073

14 years agoIn the directory traversals on Windows, a unit size of reading data should be a secto...
Michihiro NAKAJIMA [Tue, 3 Jan 2012 04:59:04 +0000 (23:59 -0500)] 
In the directory traversals on Windows, a unit size of reading data should be a sector size to be able
to use FILE_FLAG_NO_BUFFERING such as POSIX O_DIRECT flag for improving reading performance.

SVN-Revision: 4072

14 years agoRename archive_read_disk_set_time_filter_callback to archive_read_disk_set_metadata_f...
Michihiro NAKAJIMA [Sun, 1 Jan 2012 22:03:31 +0000 (17:03 -0500)] 
Rename archive_read_disk_set_time_filter_callback to archive_read_disk_set_metadata_filter_callback.

SVN-Revision: 4069

14 years agoSet uname and gname before calling a time filter callback.
Michihiro NAKAJIMA [Sun, 1 Jan 2012 21:27:53 +0000 (16:27 -0500)] 
Set uname and gname before calling a time filter callback.

SVN-Revision: 4068

14 years agoAdd a test for --nodump option.
Michihiro NAKAJIMA [Sat, 31 Dec 2011 22:06:37 +0000 (17:06 -0500)] 
Add a test for --nodump option.

SVN-Revision: 4056

14 years agoIntroduce canNodump and assertNodump to bsdtar_test and bsdcpio_test.
Michihiro NAKAJIMA [Sat, 31 Dec 2011 21:39:51 +0000 (16:39 -0500)] 
Introduce canNodump and assertNodump to bsdtar_test and bsdcpio_test.

SVN-Revision: 4054

14 years agoEnable canNodump and assertNodump on linux and move them into test/main.c
Michihiro NAKAJIMA [Sat, 31 Dec 2011 21:37:38 +0000 (16:37 -0500)] 
Enable canNodump and assertNodump on linux and move them into test/main.c

SVN-Revision: 4053

14 years agoIntroduce archive_read_disk_honor_nodump() to eliminate the platform
Michihiro NAKAJIMA [Sat, 31 Dec 2011 19:29:09 +0000 (14:29 -0500)] 
Introduce archive_read_disk_honor_nodump() to eliminate the platform
dependent code testing nodump flag from bsdtar and bsdpax.

SVN-Revision: 4052

14 years agoMerge r4050 from trunk to fix Issue 212.
Tim Kientzle [Sat, 31 Dec 2011 18:54:34 +0000 (13:54 -0500)] 
Merge r4050 from trunk to fix Issue 212.

SVN-Revision: 4051