]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
13 years agoUse syntax highlighting markup from Github's gollum to add code blocks. 1/head
Andres Mejia [Sat, 4 Feb 2012 02:14:21 +0000 (21:14 -0500)] 
Use syntax highlighting markup from Github's gollum to add code blocks.
Fixes issue using <pre> tags for github wiki pages. See
https://github.com/github/gollum, section 'SYNTAX HIGHLIGHTING' for info on
using this markup.

13 years agoUse states to determine if writing literal text for <pre> tags.
Andres Mejia [Sat, 4 Feb 2012 02:13:53 +0000 (21:13 -0500)] 
Use states to determine if writing literal text for <pre> tags.

13 years agoFix spacing for all lines printed out.
Andres Mejia [Sat, 4 Feb 2012 02:13:01 +0000 (21:13 -0500)] 
Fix spacing for all lines printed out.
This removes need to print out extra line per macro.

13 years agoAdd generated files from cmake to .gitignore.
Andres Mejia [Sun, 5 Feb 2012 19:23:31 +0000 (14:23 -0500)] 
Add generated files from cmake to .gitignore.

13 years agoAdd .gitignore file.
Andres Mejia [Sun, 5 Feb 2012 19:19:10 +0000 (14:19 -0500)] 
Add .gitignore file.

13 years agoFix spacing around .Cm macros.
Andres Mejia [Thu, 2 Feb 2012 23:10:14 +0000 (18:10 -0500)] 
Fix spacing around .Cm macros.

SVN-Revision: 4231

13 years agoFix spacing for .Dv macros.
Andres Mejia [Thu, 2 Feb 2012 23:10:08 +0000 (18:10 -0500)] 
Fix spacing for .Dv macros.

SVN-Revision: 4230

13 years agoFix spacing around .Ar and .Cm macros.
Andres Mejia [Thu, 2 Feb 2012 22:48:18 +0000 (17:48 -0500)] 
Fix spacing around .Ar and .Cm macros.

SVN-Revision: 4229

13 years agoRemove duplicate SYNOPSIS section.
Andres Mejia [Thu, 2 Feb 2012 22:36:43 +0000 (17:36 -0500)] 
Remove duplicate SYNOPSIS section.

SVN-Revision: 4228

13 years agoAdd library section for all library function manpages.
Andres Mejia [Thu, 2 Feb 2012 22:36:25 +0000 (17:36 -0500)] 
Add library section for all library function manpages.

SVN-Revision: 4227

13 years agoAdd LIBRARY section in archive_entry manpage.
Andres Mejia [Thu, 2 Feb 2012 20:03:06 +0000 (15:03 -0500)] 
Add LIBRARY section in archive_entry manpage.
This doesn't use .Lb, since the libarchive description needed by groff, i.e.
".ds str-Lb-libarchive Streaming Archive Library (libarchive, \-larchive)"
would not be found on all systems by default.

SVN-Revision: 4226

13 years agoRemove LIBRARY section from manpages.
Andres Mejia [Thu, 2 Feb 2012 00:46:25 +0000 (19:46 -0500)] 
Remove LIBRARY section from manpages.
Using .Lb seems redundant to what NAME section already provides.

SVN-Revision: 4225

13 years agoFix spacing from .Xr directives for mediawiki pages.
Andres Mejia [Thu, 2 Feb 2012 00:34:02 +0000 (19:34 -0500)] 
Fix spacing from .Xr directives for mediawiki pages.

SVN-Revision: 4224

13 years agoFix spacing between lines for mediawiki pages.
Andres Mejia [Thu, 2 Feb 2012 00:25:50 +0000 (19:25 -0500)] 
Fix spacing between lines for mediawiki pages.

SVN-Revision: 4223

13 years agoGet rid of warnings from awk scripts.
Andres Mejia [Thu, 2 Feb 2012 00:03:13 +0000 (19:03 -0500)] 
Get rid of warnings from awk scripts.

SVN-Revision: 4222

13 years agoUse proper format for bold in mediawiki.
Andres Mejia [Thu, 2 Feb 2012 00:03:08 +0000 (19:03 -0500)] 
Use proper format for bold in mediawiki.

SVN-Revision: 4221

13 years agoUse modified mdoc2wiki.awk script to generate wiki pages in mediawiki format.
Andres Mejia [Wed, 1 Feb 2012 23:31:56 +0000 (18:31 -0500)] 
Use modified mdoc2wiki.awk script to generate wiki pages in mediawiki format.

SVN-Revision: 4220

13 years agoUse html2wiki to generate mediawiki pages from generated html pages.
Andres Mejia [Wed, 1 Feb 2012 19:29:19 +0000 (14:29 -0500)] 
Use html2wiki to generate mediawiki pages from generated html pages.
Set use of html2wiki as optional.

SVN-Revision: 4219

13 years agoUse more basic groff options to generate html pages from mdoc pages.
Andres Mejia [Wed, 1 Feb 2012 19:29:15 +0000 (14:29 -0500)] 
Use more basic groff options to generate html pages from mdoc pages.

SVN-Revision: 4218

13 years agoMerge libarchive 3.0
Brad King [Mon, 30 Jan 2012 06:19:37 +0000 (01:19 -0500)] 
Merge libarchive 3.0

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

13 years agoMerged revision(s) 4216 from trunk:
Michihiro NAKAJIMA [Mon, 30 Jan 2012 06:19:37 +0000 (01:19 -0500)] 
Merged revision(s) 4216 from trunk:
Issue 236.
bsdtar creates invalid 7zip archives if there are no empty files.

SVN-Revision: 4217

13 years agoIssue 236.
Michihiro NAKAJIMA [Mon, 30 Jan 2012 06:11:17 +0000 (01:11 -0500)] 
Issue 236.
bsdtar creates invalid 7zip archives if there are no empty files.

SVN-Revision: 4216

13 years agoSet trunk version to 3.0.200a for pre-3.1 development.
Tim Kientzle [Mon, 30 Jan 2012 02:41:45 +0000 (21:41 -0500)] 
Set trunk version to 3.0.200a for pre-3.1 development.
(Mac OS doesn't like 900 here.)

SVN-Revision: 4215

13 years agoIssue 234: Fix typos in comments
Tim Kientzle [Sun, 29 Jan 2012 18:18:35 +0000 (13:18 -0500)] 
Issue 234: Fix typos in comments

SVN-Revision: 4214

13 years agoAdditional tests that for a combination of both archive_matching_newer_mtime_than
Michihiro NAKAJIMA [Wed, 25 Jan 2012 11:25:12 +0000 (06:25 -0500)] 
Additional tests that for a combination of both archive_matching_newer_mtime_than
and archive_matching_older_mtime_than, and also a combination of both
archive_matching_newer_ctime_than and archive_matching_older_ctime_than.

SVN-Revision: 4209

13 years agoSeparate sample files referenced from tests matching mtime or ctime into
Michihiro NAKAJIMA [Wed, 25 Jan 2012 11:08:52 +0000 (06:08 -0500)] 
Separate sample files referenced from tests matching mtime or ctime into
two types, one for mtime tests and other for ctime tests.

SVN-Revision: 4208

13 years agoFurther speed up test_archive_matching_time.
Michihiro NAKAJIMA [Wed, 25 Jan 2012 05:54:12 +0000 (00:54 -0500)] 
Further speed up test_archive_matching_time.

SVN-Revision: 4207

13 years agoSpeed up test_archive_matching_time by stopping making reference files for each
Michihiro NAKAJIMA [Wed, 25 Jan 2012 05:41:15 +0000 (00:41 -0500)] 
Speed up test_archive_matching_time by stopping making reference files for each
tests, wich take time to make sure those files have different ctime. And
make common reference files instead.

SVN-Revision: 4206

13 years agoSplit test_newer_than_file into two functions, test_newer_mtime than_file and
Michihiro NAKAJIMA [Wed, 25 Jan 2012 05:28:46 +0000 (00:28 -0500)] 
Split test_newer_than_file into two functions, test_newer_mtime than_file and
test_newer_ctime_than_file, and split test_older_than_file as well.

SVN-Revision: 4205

13 years agoRemove both MBS and WCS interfaces of archive_matching_pathname_newer_mtime.
Michihiro NAKAJIMA [Tue, 24 Jan 2012 10:00:59 +0000 (05:00 -0500)] 
Remove both MBS and WCS interfaces of archive_matching_pathname_newer_mtime.
I think them will not be used since archive_matching_pathname_newer_mtime is used for
matching entries that are already in an archive file being updated.
And rename archive_matching_pathname_newer_mtime_ae to archive_matching_pathname_newer_mtime.

SVN-Revision: 4204

13 years agoMerge fix for Issue 226 from trunk.
Tim Kientzle [Tue, 24 Jan 2012 06:52:48 +0000 (01:52 -0500)] 
Merge fix for Issue 226 from trunk.

SVN-Revision: 4203

13 years agoIssue 232: Restructure this so that r is correctly set
Tim Kientzle [Tue, 24 Jan 2012 06:43:52 +0000 (01:43 -0500)] 
Issue 232: Restructure this so that r is correctly set
before being used.

SVN-Revision: 4202

13 years agoIssue 226: Fix infinite loop when a data descriptor marking
Tim Kientzle [Tue, 24 Jan 2012 06:05:46 +0000 (01:05 -0500)] 
Issue 226: Fix infinite loop when a data descriptor marking
the end of an uncompressed entry falls exactly at the end of
a block and the seeking Zip reader tries to skip it.

To test this, the test_compat_zip_7 test reads a small sample
XPS file with every block size from 1 byte up to 1000 bytes.
(For this specific bug, an 807-byte block triggers the
problem.)

SVN-Revision: 4201

13 years agoSort entries in the central directory of a Zip archive by its local header offset
Michihiro NAKAJIMA [Tue, 24 Jan 2012 06:04:14 +0000 (01:04 -0500)] 
Sort entries in the central directory of a Zip archive by its local header offset
in order to reduce file seeking(calling __archive_read_seek) for read performance.

SVN-Revision: 4200

13 years agoIssue 225: The seeking Zip reader should fall back on
Tim Kientzle [Tue, 24 Jan 2012 05:23:53 +0000 (00:23 -0500)] 
Issue 225: The seeking Zip reader should fall back on
the filename to determine whether the current file
is a directory if there is not a POSIX mode value stored.

SVN-Revision: 4199

13 years agoDon't do direct comparison of timestamps that
Tim Kientzle [Tue, 24 Jan 2012 05:18:00 +0000 (00:18 -0500)] 
Don't do direct comparison of timestamps that
are in local time.

SVN-Revision: 4198

13 years agoIssue 232: Fix a missing header.
Tim Kientzle [Tue, 24 Jan 2012 05:11:51 +0000 (00:11 -0500)] 
Issue 232: Fix a missing header.

SVN-Revision: 4197

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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.

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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