]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
14 years agoClarify that Jan Psota's test reflects invalid results
Tim Kientzle [Sat, 12 Feb 2011 20:29:44 +0000 (15:29 -0500)] 
Clarify that Jan Psota's test reflects invalid results
for "bsdtar compare" because that operation is not supported
by bsdtar.

SVN-Revision: 2975

14 years agoDocument some of the other items in the contrib directory.
Tim Kientzle [Sat, 12 Feb 2011 20:24:43 +0000 (15:24 -0500)] 
Document some of the other items in the contrib directory.

SVN-Revision: 2974

14 years agoCast size_t values to int so we can print them with %d.
Tim Kientzle [Sat, 12 Feb 2011 20:20:06 +0000 (15:20 -0500)] 
Cast size_t values to int so we can print them with %d.

SVN-Revision: 2973

14 years agoDon't iterate past the end of an octal field on
Tim Kientzle [Sat, 12 Feb 2011 20:18:15 +0000 (15:18 -0500)] 
Don't iterate past the end of an octal field on
a damaged archive.

SVN-Revision: 2972

14 years agoDocument the transition plan for archive_read_finish to be
Tim Kientzle [Sat, 12 Feb 2011 19:26:48 +0000 (14:26 -0500)] 
Document the transition plan for archive_read_finish to be
renamed to archive_read_free.

SVN-Revision: 2967

14 years agoRestore basic documentation for archive_read_finish
Tim Kientzle [Sat, 12 Feb 2011 19:23:29 +0000 (14:23 -0500)] 
Restore basic documentation for archive_read_finish
and archive_write_finish so that developers who need
to support libarchive 2.x won't be too confused
by the name change.

SVN-Revision: 2966

14 years agoarchive_write_header() requires the pathname to be set.
Tim Kientzle [Sat, 12 Feb 2011 19:11:36 +0000 (14:11 -0500)] 
archive_write_header() requires the pathname to be set.

SVN-Revision: 2965

14 years agoFrom Issue 138: properly cast before assigning unsigned long to int.
Tim Kientzle [Fri, 11 Feb 2011 07:07:29 +0000 (02:07 -0500)] 
From Issue 138: properly cast before assigning unsigned long to int.

SVN-Revision: 2964

14 years agoChange mode and compress to int to match other option-processing variables.
Tim Kientzle [Fri, 11 Feb 2011 07:06:52 +0000 (02:06 -0500)] 
Change mode and compress to int to match other option-processing variables.
Remove unused symlink_mode var.

SVN-Revision: 2963

14 years agoImprove an error message.
Tim Kientzle [Fri, 11 Feb 2011 06:54:32 +0000 (01:54 -0500)] 
Improve an error message.

SVN-Revision: 2962

14 years agoIf no name is available, don't store one.
Tim Kientzle [Fri, 11 Feb 2011 06:46:54 +0000 (01:46 -0500)] 
If no name is available, don't store one.

SVN-Revision: 2961

14 years agoDetect when no format is set and return an error.
Tim Kientzle [Fri, 11 Feb 2011 06:46:33 +0000 (01:46 -0500)] 
Detect when no format is set and return an error.

SVN-Revision: 2960

14 years agoSimply set -1 to a file offset not to appear before any directories;
Michihiro NAKAJIMA [Wed, 9 Feb 2011 12:30:56 +0000 (07:30 -0500)] 
Simply set -1 to a file offset not to appear before any directories;
some version of xorriso set its parent directory offset to the offset
of empty files.
Add a test for reading the iso images made by that xorriso.

SVN-Revision: 2959

14 years agoFollowup on Issue 134:
Tim Kientzle [Sun, 6 Feb 2011 05:45:30 +0000 (00:45 -0500)] 
Followup on Issue 134:
 1) Port test_open_failure to libarchive 2.8 branch to test
    the problem reported in Issue 134.
    This test also shows that archive_read_open() sometimes
    fails to report open errors correctly.
 2) Fix the bug in archive_read.c
 3) Comment out the tests that close functions are invoked
    promptly when open fails; that's fully fixed in libarchive 3.0,
    but I don't think it's worth fixing here.

SVN-Revision: 2958

14 years agoDon't compress the Zip file in this test.
Tim Kientzle [Sun, 6 Feb 2011 05:39:37 +0000 (00:39 -0500)] 
Don't compress the Zip file in this test.

SVN-Revision: 2957

14 years agoExtend test_open_failure to verify the case documented in Issue 134.
Tim Kientzle [Sun, 6 Feb 2011 05:38:41 +0000 (00:38 -0500)] 
Extend test_open_failure to verify the case documented in Issue 134.
This tests archive_write_free() after an open failure with zip format.

SVN-Revision: 2956

14 years agoIssue 134: Fix libarchive 2.8 crashing in archive_write_finish() when
Tim Kientzle [Sun, 6 Feb 2011 05:36:18 +0000 (00:36 -0500)] 
Issue 134:  Fix libarchive 2.8 crashing in archive_write_finish() when
the open has failed and we're trying to write Zip format.

SVN-Revision: 2955

14 years agoAdditional information on test failures.
Tim Kientzle [Sun, 30 Jan 2011 06:04:27 +0000 (01:04 -0500)] 
Additional information on test failures.

SVN-Revision: 2954

14 years agoImplement POSIX readdir_r checks in CMakeLists.txt.
Tim Kientzle [Thu, 27 Jan 2011 06:29:22 +0000 (01:29 -0500)] 
Implement POSIX readdir_r checks in CMakeLists.txt.
Fix a mistake in the configure.ac version.

SVN-Revision: 2953

14 years agoOnly recognize the POSIX-compliant version of readdir_r.
Tim Kientzle [Thu, 27 Jan 2011 05:55:06 +0000 (00:55 -0500)] 
Only recognize the POSIX-compliant version of readdir_r.
Some systems have a different prototype that we don't support.

SVN-Revision: 2952

14 years agoFix typo and comment.
Michihiro NAKAJIMA [Thu, 27 Jan 2011 03:19:27 +0000 (22:19 -0500)] 
Fix typo and comment.

SVN-Revision: 2951

14 years agoIssue 130: Typos and cross-reference errors in man pages.
Tim Kientzle [Wed, 26 Jan 2011 05:33:16 +0000 (00:33 -0500)] 
Issue 130:  Typos and cross-reference errors in man pages.

SVN-Revision: 2950

14 years agoHaving a "windows.h" header does not make you a Windows platform.
Tim Kientzle [Wed, 26 Jan 2011 04:25:25 +0000 (23:25 -0500)] 
Having a "windows.h" header does not make you a Windows platform.
(In particular, SCO 5 seems to have a header with that name.)

SVN-Revision: 2949

14 years agoProperly restore birthtime on Windows; use W32API directly in
Michihiro NAKAJIMA [Tue, 25 Jan 2011 22:36:17 +0000 (17:36 -0500)] 
Properly restore birthtime on Windows; use W32API directly in
archive_write_disk.c and remove __la_futimes()/__la_utimes()
functions and related definitions, which were used in
archive_write_disk.c only.

SVN-Revision: 2948

14 years agoAvoid the warning about uninitialized variable which
Michihiro NAKAJIMA [Tue, 25 Jan 2011 20:09:41 +0000 (15:09 -0500)] 
Avoid the warning about uninitialized variable which
some compiler complain about, although it is actually
unnecessary.

SVN-Revision: 2947

14 years agoImprove checking of statfs in LSB.
Michihiro NAKAJIMA [Tue, 25 Jan 2011 19:55:43 +0000 (14:55 -0500)] 
Improve checking of statfs in LSB.
Use HAVE_SYS_STATFS_H to use statfs on linux instead of HAVE_SYS_VFS_H
and add checking of HAVE_SYS_STATVFS_H to use statvfs.

SVN-Revision: 2946

14 years agoDon't leave out required test files.
Tim Kientzle [Tue, 25 Jan 2011 05:15:27 +0000 (00:15 -0500)] 
Don't leave out required test files.

SVN-Revision: 2945

14 years agoWhen fetching the file contents from disk, obey local system
Tim Kientzle [Mon, 24 Jan 2011 04:57:05 +0000 (23:57 -0500)] 
When fetching the file contents from disk, obey local system
limitations.  (This should probably be rewritten to use
archive_read_disk_entry_from_file().)

SVN-Revision: 2944

14 years agoBe consistent in when we choose to use the deep-directory logic.
Tim Kientzle [Mon, 24 Jan 2011 04:55:58 +0000 (23:55 -0500)] 
Be consistent in when we choose to use the deep-directory logic.

SVN-Revision: 2943

14 years agoStart using int64_t for uid/gid variables and int for mode variables.
Tim Kientzle [Mon, 24 Jan 2011 04:55:26 +0000 (23:55 -0500)] 
Start using int64_t for uid/gid variables and int for mode variables.
The case to consider here is when a system with narrow types is
used to modify an archive that was created and will later be extracted
on a system with wide types.  If we're not actually dealing with
the local filesystem, we should not be constrained by its limitations.

SVN-Revision: 2942

14 years agoSome platoforms do not define NAME_MAX macro and some platforms define but
Michihiro NAKAJIMA [Mon, 24 Jan 2011 04:41:33 +0000 (23:41 -0500)] 
Some platoforms do not define NAME_MAX macro and some platforms define but
its value is wrong. Avoid those problems.

SVN-Revision: 2941

14 years agoIf the offset of a file entry is zero, set -1 to the offset, which is
Michihiro NAKAJIMA [Sun, 23 Jan 2011 20:25:48 +0000 (15:25 -0500)] 
If the offset of a file entry is zero, set -1 to the offset, which is
calculated from its location, to make sure the entry will appear after
directory entries.
Some ISO image writer(xorriso) set zero to the location of a symlink entry.
It causes that our ISO-reader cannot read following directory entries at all
since we expect directory entries is located before file entries and we
are sorting all entry in an ISO image by the offset to read the contents
of the entries in stream.

SVN-Revision: 2940

14 years agoEnsure that int64_t, int32_t, int16_t, intmax_t, uint64_t, uint32_t,
Tim Kientzle [Sun, 23 Jan 2011 06:14:21 +0000 (01:14 -0500)] 
Ensure that int64_t, int32_t, int16_t, intmax_t, uint64_t, uint32_t,
uint16_t, and uintmax_t are all defined by probing the available
integer types and their sizes during the configure, then using that
information to typedef the required types at compile time.

SVN-Revision: 2939

14 years agoOn Windows, set 'Creation time' to both birthtime and ctime, because
Michihiro NAKAJIMA [Sun, 23 Jan 2011 01:32:42 +0000 (20:32 -0500)] 
On Windows, set 'Creation time' to both birthtime and ctime, because
CRT stat() Microsoft provides set 'Creation time' to st_ctime.
It seems we should do that not to confuse applications about ctime.

SVN-Revision: 2938

14 years agoEliminate a bunch of off_t uses.
Tim Kientzle [Sat, 22 Jan 2011 23:05:58 +0000 (18:05 -0500)] 
Eliminate a bunch of off_t uses.

Most of these are from the libarchive 2 API that's no longer supported.
A few are places where int64_t offsets need to be mapped down to system
APIs that might only be 32 bits; those are a little trickier.

SVN-Revision: 2937

14 years agoAdd autoconf logic to ensure we have int32_t, uint32_t, int16_t, and uint16_t
Tim Kientzle [Sat, 22 Jan 2011 22:20:35 +0000 (17:20 -0500)] 
Add autoconf logic to ensure we have int32_t, uint32_t, int16_t, and uint16_t

SVN-Revision: 2936

14 years agoOn SCO 5, use "long long" as the 64-bit integer type in the public
Tim Kientzle [Sat, 22 Jan 2011 07:37:51 +0000 (02:37 -0500)] 
On SCO 5, use "long long" as the 64-bit integer type in the public
headers and don't try to include inttypes.h

SVN-Revision: 2935

14 years agoWork around missing wmemcmp()
Tim Kientzle [Sat, 22 Jan 2011 07:35:58 +0000 (02:35 -0500)] 
Work around missing wmemcmp()

SVN-Revision: 2934

14 years agoCorrect arguments order of assertion_utimes() function.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 16:31:00 +0000 (11:31 -0500)] 
Correct arguments order of assertion_utimes() function.

SVN-Revision: 2933

14 years agoEliminate some warnings on Visual Studio.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 15:35:24 +0000 (10:35 -0500)] 
Eliminate some warnings on Visual Studio.

SVN-Revision: 2932

14 years agoUse O_NOATIME flag to open() operation if we can.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 14:15:24 +0000 (09:15 -0500)] 
Use O_NOATIME flag to open() operation if we can.

SVN-Revision: 2931

14 years agoFix build error on linux.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 13:28:06 +0000 (08:28 -0500)] 
Fix build error on linux.

SVN-Revision: 2930

14 years agoAdd the ability to restore atime to the directory traversals.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 12:55:50 +0000 (07:55 -0500)] 
Add the ability to restore atime to the directory traversals.

SVN-Revision: 2929

14 years agoDrop unneeded O_NOFOLLOW because we already know what
Michihiro NAKAJIMA [Thu, 20 Jan 2011 11:04:38 +0000 (06:04 -0500)] 
Drop unneeded O_NOFOLLOW because we already know what
current file is not symlink.

SVN-Revision: 2928

14 years agoAvoid build error about unused get_xfer_size() function.
Michihiro NAKAJIMA [Wed, 19 Jan 2011 15:11:32 +0000 (10:11 -0500)] 
Avoid build error about unused get_xfer_size() function.

SVN-Revision: 2927

14 years agoTry to eliminate fchdir() operation as much as we can in the directory
Michihiro NAKAJIMA [Wed, 19 Jan 2011 14:48:24 +0000 (09:48 -0500)] 
Try to eliminate fchdir() operation as much as we can in the directory
traversals, which is a new API for the read disk object.

SVN-Revision: 2926

14 years agoUse readlinkat() function if platform has.
Michihiro NAKAJIMA [Wed, 19 Jan 2011 12:04:51 +0000 (07:04 -0500)] 
Use readlinkat() function if platform has.

SVN-Revision: 2925

14 years agoUse extattr_list_fd/extattr_get_fd to get extended attributes on FreeBSD
Michihiro NAKAJIMA [Wed, 19 Jan 2011 11:36:24 +0000 (06:36 -0500)] 
Use extattr_list_fd/extattr_get_fd to get extended attributes on FreeBSD
if a file descriptor is specified.

SVN-Revision: 2924

14 years agoUse flistxattr/fgetxattr to get extended attributes on Linux
Michihiro NAKAJIMA [Wed, 19 Jan 2011 11:27:17 +0000 (06:27 -0500)] 
Use flistxattr/fgetxattr to get extended attributes on Linux
if a file descriptor is specified.

SVN-Revision: 2923

14 years agoAdd the experimental code using O_DIRECT in the read disk object and
Michihiro NAKAJIMA [Tue, 18 Jan 2011 22:01:34 +0000 (17:01 -0500)] 
Add the experimental code using O_DIRECT in the read disk object and
it's disabled for now.

SVN-Revision: 2922

14 years agoDo not set a default value to struct fileystem.xfer_align and related
Michihiro NAKAJIMA [Tue, 18 Jan 2011 21:11:00 +0000 (16:11 -0500)] 
Do not set a default value to struct fileystem.xfer_align and related
variables when we could not get a filesystem alignment because of a lack
of statfs/statvfs family of functions to know what we can trust the alignment.

SVN-Revision: 2921

14 years agoUpdate comment for setup_current_filesystem().
Michihiro NAKAJIMA [Tue, 18 Jan 2011 19:56:53 +0000 (14:56 -0500)] 
Update comment for setup_current_filesystem().

SVN-Revision: 2920

14 years ago_PC_REC_XFER_* macros used for pathconf() are defined but not supported on Cygwin.
Michihiro NAKAJIMA [Tue, 18 Jan 2011 19:11:33 +0000 (14:11 -0500)] 
_PC_REC_XFER_* macros used for pathconf() are defined but not supported on Cygwin.

SVN-Revision: 2919

14 years agoReduce performing fchdir().
Michihiro NAKAJIMA [Tue, 18 Jan 2011 13:13:19 +0000 (08:13 -0500)] 
Reduce performing fchdir().
For example, when the disk read object was opened with
archive_read_disk_open("file.txt")(not a directory),
performing fchdir() is really unneeded.

SVN-Revision: 2918

14 years agopathconf(_PC_REC_INCR_XFER_SIZE) on some platform does not return
Michihiro NAKAJIMA [Tue, 18 Jan 2011 11:35:10 +0000 (06:35 -0500)] 
pathconf(_PC_REC_INCR_XFER_SIZE) on some platform does not return
a proper value.

SVN-Revision: 2917

14 years agoAt this time struct statvfs.f_namemax is usually not initialized,
Michihiro NAKAJIMA [Tue, 18 Jan 2011 11:28:35 +0000 (06:28 -0500)] 
At this time struct statvfs.f_namemax is usually not initialized,
use struct statfs.f_namelen instead.

SVN-Revision: 2916

14 years agoFix build warning on the platform which does not have getvfsbyname().
Michihiro NAKAJIMA [Tue, 18 Jan 2011 09:53:33 +0000 (04:53 -0500)] 
Fix build warning on the platform which does not have getvfsbyname().

SVN-Revision: 2915

14 years agostruct filesystem.name_max appears only HAVE_READDIR_R is defined.
Michihiro NAKAJIMA [Mon, 17 Jan 2011 16:19:25 +0000 (11:19 -0500)] 
struct filesystem.name_max appears only HAVE_READDIR_R is defined.

SVN-Revision: 2914

14 years agoMake sure do not use broken symlink path.
Michihiro NAKAJIMA [Mon, 17 Jan 2011 16:07:54 +0000 (11:07 -0500)] 
Make sure do not use broken symlink path.

SVN-Revision: 2913

14 years agoTweak setup_current_filesystem() for FreeBSD to be able to be used
Michihiro NAKAJIMA [Mon, 17 Jan 2011 15:52:52 +0000 (10:52 -0500)] 
Tweak setup_current_filesystem() for FreeBSD to be able to be used
for OpenBSD and Mac OS X.

SVN-Revision: 2912

14 years agoAdjust a read buffer address to the current filesystem alignment.
Michihiro NAKAJIMA [Mon, 17 Jan 2011 14:46:10 +0000 (09:46 -0500)] 
Adjust a read buffer address to the current filesystem alignment.

SVN-Revision: 2911

14 years agoPush down the code gettting maximum filename length, which is available
Michihiro NAKAJIMA [Mon, 17 Jan 2011 10:55:14 +0000 (05:55 -0500)] 
Push down the code gettting maximum filename length, which is available
by statvfs()/statfs().

SVN-Revision: 2910

14 years agoFix build error on some platforme which has standard statvfs only.
Michihiro NAKAJIMA [Mon, 17 Jan 2011 10:06:44 +0000 (05:06 -0500)] 
Fix build error on some platforme which has standard statvfs only.

SVN-Revision: 2909

14 years agoRemove unneeded initialization on Windows. I forgot this in r2899.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 23:56:36 +0000 (18:56 -0500)] 
Remove unneeded initialization on Windows. I forgot this in r2899.

SVN-Revision: 2902

14 years agoRevert previous change. I was wrong.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 23:42:04 +0000 (18:42 -0500)] 
Revert previous change. I was wrong.

SVN-Revision: 2901

14 years agoDo not read an unused variable.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 23:19:20 +0000 (18:19 -0500)] 
Do not read an unused variable.

SVN-Revision: 2900

14 years agoRemove the wrong initialization which caused invalid memory access.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 23:16:08 +0000 (18:16 -0500)] 
Remove the wrong initialization which caused invalid memory access.

SVN-Revision: 2899

14 years agoFix typo.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 21:10:09 +0000 (16:10 -0500)] 
Fix typo.

SVN-Revision: 2898

14 years agoGet a block size and an alignment of a filesystem for open() to
Michihiro NAKAJIMA [Sun, 16 Jan 2011 20:10:31 +0000 (15:10 -0500)] 
Get a block size and an alignment of a filesystem for open() to
use O_DIRECT flag.

SVN-Revision: 2897

14 years agoCorrectoly gather the file system statistics where the target file of
Michihiro NAKAJIMA [Sun, 16 Jan 2011 15:52:14 +0000 (10:52 -0500)] 
Correctoly gather the file system statistics where the target file of
a symbolic link is.

SVN-Revision: 2896

14 years agoUse openat() operations at the directory traversals.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 14:53:35 +0000 (09:53 -0500)] 
Use openat() operations at the directory traversals.

SVN-Revision: 2895

14 years agoIssue 127: Always initialize restore_pwd so it always gets
Tim Kientzle [Sat, 15 Jan 2011 04:18:48 +0000 (23:18 -0500)] 
Issue 127:  Always initialize restore_pwd so it always gets
cleaned up correctly, even on platforms that don't use edit_deep_directories.

SVN-Revision: 2888

14 years agoIssue 128: Don't initialize a static vtable more than once.
Tim Kientzle [Sat, 15 Jan 2011 04:13:39 +0000 (23:13 -0500)] 
Issue 128:  Don't initialize a static vtable more than once.

SVN-Revision: 2887

14 years agoAdd loop check to the directory traversals.
Michihiro NAKAJIMA [Fri, 14 Jan 2011 12:08:30 +0000 (07:08 -0500)] 
Add loop check to the directory traversals.

SVN-Revision: 2886

14 years agoSimply reduce "#ifdef HAVE_FCHDIR" lines.
Michihiro NAKAJIMA [Fri, 14 Jan 2011 07:07:47 +0000 (02:07 -0500)] 
Simply reduce "#ifdef HAVE_FCHDIR" lines.

SVN-Revision: 2885

14 years agoAvoid the difference between posix and Windows about behavior of
Michihiro NAKAJIMA [Thu, 13 Jan 2011 17:01:09 +0000 (12:01 -0500)] 
Avoid the difference between posix and Windows about behavior of
directory traversals; posix version changes working directory
everywhere while traversing a directory tree, but Windows version
does not at all. The difference will probably make user confused.
Change posix version behavior close to Windows version by restoring
working directory when the function returns. This change includes
the intention removing chdir() operation by using openat()-style
operations if the platform supports it.

SVN-Revision: 2884

14 years agoClean up style. no funcational changes.
Michihiro NAKAJIMA [Thu, 13 Jan 2011 10:35:20 +0000 (05:35 -0500)] 
Clean up style. no funcational changes.

SVN-Revision: 2883

14 years agoWe have already had GNU tar writer, and so it is unnecessary to change
Michihiro NAKAJIMA [Thu, 13 Jan 2011 09:50:56 +0000 (04:50 -0500)] 
We have already had GNU tar writer, and so it is unnecessary to change
a writing format from GNU tar to ustar when using -u or -r options.

SVN-Revision: 2882

14 years agoRemove dated comment or comment for posix platform.
Michihiro NAKAJIMA [Thu, 13 Jan 2011 06:28:47 +0000 (01:28 -0500)] 
Remove dated comment or comment for posix platform.

SVN-Revision: 2881

14 years agoRemove unneeded off_t from archive_read_disk_windows.
Michihiro NAKAJIMA [Wed, 12 Jan 2011 17:05:47 +0000 (12:05 -0500)] 
Remove unneeded off_t from archive_read_disk_windows.

SVN-Revision: 2880

14 years agoSet PATH_MAX to the size the 2nd argument of getcwd function instead of zero.
Michihiro NAKAJIMA [Wed, 12 Jan 2011 16:53:55 +0000 (11:53 -0500)] 
Set PATH_MAX to the size the 2nd argument of getcwd function instead of zero.
If the size is zero, Solaris getcwd will return NULL because
the size will be used for malloc argument as allocating memory
size.

SVN-Revision: 2879

14 years agoMake an archive_read_data_block of archive_read_disk handle a sparse file.
Michihiro NAKAJIMA [Wed, 12 Jan 2011 15:55:16 +0000 (10:55 -0500)] 
Make an archive_read_data_block of archive_read_disk handle a sparse file.

SVN-Revision: 2878

14 years agoFix a distribution file name.
Michihiro NAKAJIMA [Wed, 12 Jan 2011 14:17:11 +0000 (09:17 -0500)] 
Fix a distribution file name.

SVN-Revision: 2877

14 years agoProve that statfs is available.
Michihiro NAKAJIMA [Wed, 12 Jan 2011 09:24:43 +0000 (04:24 -0500)] 
Prove that statfs is available.

SVN-Revision: 2876

14 years agoUpdate a test for directory traversals;
Michihiro NAKAJIMA [Tue, 11 Jan 2011 16:35:59 +0000 (11:35 -0500)] 
Update a test for directory traversals;
 1. add a test for archive_read_disk_set_symlink_hybrid(),
 2. add a test for archive_read_disk_set_symlink_logical().

SVN-Revision: 2875

14 years agoFix a symlink handling of directory traversals after reopening a disk reader.
Michihiro NAKAJIMA [Tue, 11 Jan 2011 13:14:46 +0000 (08:14 -0500)] 
Fix a symlink handling of directory traversals after reopening a disk reader.

SVN-Revision: 2874

14 years agoImprove directory traversals to be able to reopen.
Michihiro NAKAJIMA [Tue, 11 Jan 2011 11:25:40 +0000 (06:25 -0500)] 
Improve directory traversals to be able to reopen.

SVN-Revision: 2873

14 years agouse assertEqualInt instead; when it fails, it actually gives useful data
Brian Harring [Tue, 11 Jan 2011 06:04:52 +0000 (01:04 -0500)] 
use assertEqualInt instead; when it fails, it actually gives useful data

SVN-Revision: 2868

14 years agoChange a compression type of test_option_keep_newer_files.tgz from gzip
Michihiro NAKAJIMA [Mon, 10 Jan 2011 11:15:34 +0000 (06:15 -0500)] 
Change a compression type of test_option_keep_newer_files.tgz from gzip
to compress.

SVN-Revision: 2867

14 years agoAs discussed in Issue 125, we're misusing CHECK_SYMBOL_EXISTS to
Tim Kientzle [Sat, 8 Jan 2011 22:15:08 +0000 (17:15 -0500)] 
As discussed in Issue 125, we're misusing CHECK_SYMBOL_EXISTS to
test the usability of various functions.  CHECK_SYMBOL_EXISTS
doesn't attempt to link anything, so can't verify that the symbol
is actually present in libraries.

In particular, this causes problems in some cross-compile
environments (such as the LSB build environment), where the
system headers may define some symbols (such as major()) that
can't be linked against the cross libraries.

SVN-Revision: 2866

14 years agoInitialize a loop counter.
Michihiro NAKAJIMA [Thu, 6 Jan 2011 11:23:46 +0000 (06:23 -0500)] 
Initialize a loop counter.

SVN-Revision: 2865

14 years agoProperly reset working directory when a directory traversals object is
Michihiro NAKAJIMA [Thu, 6 Jan 2011 11:18:29 +0000 (06:18 -0500)] 
Properly reset working directory when a directory traversals object is
released even if it would be broken off.

SVN-Revision: 2864

14 years agoSkip a test if platform does not have cat command.
Michihiro NAKAJIMA [Thu, 6 Jan 2011 03:59:38 +0000 (22:59 -0500)] 
Skip a test if platform does not have cat command.

SVN-Revision: 2863

14 years agoFix compling error. A const pointer cannot be used to free().
Michihiro NAKAJIMA [Thu, 6 Jan 2011 03:51:04 +0000 (22:51 -0500)] 
Fix compling error. A const pointer cannot be used to free().

SVN-Revision: 2862

14 years agoChange a compression type of test_compat_mac_gnutar.tgz.uu from gzip
Michihiro NAKAJIMA [Wed, 5 Jan 2011 16:19:30 +0000 (11:19 -0500)] 
Change a compression type of test_compat_mac_gnutar.tgz.uu from gzip
to compress so that test_compat_mac_gnutar does not fail on Windows platform,
which does not have libz by default.

SVN-Revision: 2861

14 years agoRemove posix code from archive_read_disk_windows.
Michihiro NAKAJIMA [Wed, 5 Jan 2011 03:03:50 +0000 (22:03 -0500)] 
Remove posix code from archive_read_disk_windows.

SVN-Revision: 2860

14 years agoImprove r2857; If symlink is broken, use its directory path instead.
Michihiro NAKAJIMA [Wed, 5 Jan 2011 02:46:21 +0000 (21:46 -0500)] 
Improve r2857; If symlink is broken, use its directory path instead.

SVN-Revision: 2859

14 years agoAdd a nil terminator size to the size of archive_string when
Michihiro NAKAJIMA [Mon, 3 Jan 2011 16:00:21 +0000 (11:00 -0500)] 
Add a nil terminator size to the size of archive_string when
using archive_string_ensure function.

SVN-Revision: 2858

14 years agoDo not find out a filesystem status when the symlink is broken.
Michihiro NAKAJIMA [Mon, 3 Jan 2011 09:54:49 +0000 (04:54 -0500)] 
Do not find out a filesystem status when the symlink is broken.
statfs will be failed by its brokenness.

SVN-Revision: 2857

14 years agoIf a platform cannot handle a symbolic link, do not archive a symlink file.
Michihiro NAKAJIMA [Mon, 3 Jan 2011 08:23:47 +0000 (03:23 -0500)] 
If a platform cannot handle a symbolic link, do not archive a symlink file.

SVN-Revision: 2856