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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

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

SVN-Revision: 2898

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 years agoSkip a test for MSZIP of CAB reader if libarchive compiled without libz.
Michihiro NAKAJIMA [Mon, 3 Jan 2011 08:11:57 +0000 (03:11 -0500)] 
Skip a test for MSZIP of CAB reader if libarchive compiled without libz.

SVN-Revision: 2855

15 years agoCorrectly detect Windows full paths.
Michihiro NAKAJIMA [Mon, 3 Jan 2011 07:22:12 +0000 (02:22 -0500)] 
Correctly detect Windows full paths.

SVN-Revision: 2854

15 years agoExtend tar/test/test_option_r to verify the bug that Michihiro found
Tim Kientzle [Sun, 2 Jan 2011 20:03:04 +0000 (15:03 -0500)] 
Extend tar/test/test_option_r to verify the bug that Michihiro found
with -r brokenness.
This turns out to be a bug in the core archive_read I/O not correctly
tracking the current file position under some circumstances.
Extend libarchive/test/test_read_position to verify file position
tracking both with and without a registered skip function.
Fix the bug:  When libarchive falls back to regular reads to fill
out an internal skip request, it failed to count those
bytes toward the current file position.

SVN-Revision: 2853

15 years agoExtend the test of bsdtar -r to exercise larger file contents.
Tim Kientzle [Sun, 2 Jan 2011 19:16:59 +0000 (14:16 -0500)] 
Extend the test of bsdtar -r to exercise larger file contents.
This does not reproduce the problem that Michihiro recently found,
but it's an improvement in the test, so it's worth checking in.

SVN-Revision: 2852

15 years agoEliminate a warning.
Michihiro NAKAJIMA [Sat, 1 Jan 2011 10:32:41 +0000 (05:32 -0500)] 
Eliminate a warning.

SVN-Revision: 2851

15 years agoPrevent a segmentation fault caused by a broken ISO image, and
Michihiro NAKAJIMA [Sat, 1 Jan 2011 07:55:03 +0000 (02:55 -0500)] 
Prevent a segmentation fault caused by a broken ISO image, and
improve error handling of this case.

SVN-Revision: 2850

15 years agoSupport --numeric-owner for tar extraction as well as archive creation.
Tim Kientzle [Fri, 31 Dec 2010 17:57:48 +0000 (12:57 -0500)] 
Support --numeric-owner for tar extraction as well as archive creation.
This just involves reworking tar's extraction routines slightly to use
archive_read_extract2() with a custom-configured archive_write_disk
object, instead of the more convenient archive_read_extract()
interface that automatically builds a standard archive_write_disk
object.

SVN-Revision: 2849

15 years agoliblzma 5.0 provides a better solution for memory usage limit in decoding.
Michihiro NAKAJIMA [Fri, 31 Dec 2010 11:30:20 +0000 (06:30 -0500)] 
liblzma 5.0 provides a better solution for memory usage limit in decoding.

SVN-Revision: 2848

15 years agoPrevent buffer over flow in decoding LZX when reading broken CAB file.
Michihiro NAKAJIMA [Fri, 31 Dec 2010 09:28:46 +0000 (04:28 -0500)] 
Prevent buffer over flow in decoding LZX when reading broken CAB file.

SVN-Revision: 2847

15 years agoIf the size field is negative (which can happen with base-256
Tim Kientzle [Fri, 31 Dec 2010 08:45:46 +0000 (03:45 -0500)] 
If the size field is negative (which can happen with base-256
extended headers), truncate it to zero and return an error.

SVN-Revision: 2846

15 years agoCorrectly format the value -9223372036854775808.
Tim Kientzle [Fri, 31 Dec 2010 05:09:18 +0000 (00:09 -0500)] 
Correctly format the value -9223372036854775808.

SVN-Revision: 2845

15 years agoAdd a lzh test data file in the distribution.
Michihiro NAKAJIMA [Thu, 30 Dec 2010 13:42:12 +0000 (08:42 -0500)] 
Add a lzh test data file in the distribution.

SVN-Revision: 2844

15 years agoPrevent another infinity loop in ISO 9660 reader.
Michihiro NAKAJIMA [Thu, 30 Dec 2010 12:01:21 +0000 (07:01 -0500)] 
Prevent another infinity loop in ISO 9660 reader.

SVN-Revision: 2843

15 years agoFix a buffer over flow at reading bit lengths of huffman code of LZX when
Michihiro NAKAJIMA [Thu, 30 Dec 2010 10:14:46 +0000 (05:14 -0500)] 
Fix a buffer over flow at reading bit lengths of huffman code of LZX when
reading broken CAB file.

SVN-Revision: 2842

15 years agoMake a check strict to SUSP CE extension.
Michihiro NAKAJIMA [Thu, 30 Dec 2010 09:12:07 +0000 (04:12 -0500)] 
Make a check strict to SUSP CE extension.

SVN-Revision: 2841

15 years agoPrevent inifity loop when reading broken CAB file.
Michihiro NAKAJIMA [Thu, 30 Dec 2010 08:18:57 +0000 (03:18 -0500)] 
Prevent inifity loop when reading broken CAB file.

SVN-Revision: 2840

15 years agoDo not trust a compression type in CAB file.
Michihiro NAKAJIMA [Thu, 30 Dec 2010 07:56:56 +0000 (02:56 -0500)] 
Do not trust a compression type in CAB file.

SVN-Revision: 2839

15 years agoAdd the ability to decode LZX, which is one of compression type of MS Cabinet file.
Michihiro NAKAJIMA [Wed, 29 Dec 2010 14:38:03 +0000 (09:38 -0500)] 
Add the ability to decode LZX, which is one of compression type of MS Cabinet file.

SVN-Revision: 2838

15 years agoAvoid compling error by mingw32-gcc.
Michihiro NAKAJIMA [Sat, 25 Dec 2010 03:43:38 +0000 (22:43 -0500)] 
Avoid compling error by mingw32-gcc.

SVN-Revision: 2837

15 years agoRename some macro names. Those conflict with macro in stdio.h on msys.
Michihiro NAKAJIMA [Fri, 24 Dec 2010 16:14:02 +0000 (11:14 -0500)] 
Rename some macro names. Those conflict with macro in stdio.h on msys.

SVN-Revision: 2836

15 years agoCorrect spelling.
Michihiro NAKAJIMA [Fri, 24 Dec 2010 09:29:00 +0000 (04:29 -0500)] 
Correct spelling.

SVN-Revision: 2835

15 years agoRemove a check for archive_entry_mtime from cab reader test.
Michihiro NAKAJIMA [Thu, 23 Dec 2010 08:26:50 +0000 (03:26 -0500)] 
Remove a check for archive_entry_mtime from cab reader test.
I realized that DOS date/time cannot be tested on any timezone.

SVN-Revision: 2834

15 years agoUpdate how to make sample files for cab reader test.
Michihiro NAKAJIMA [Thu, 23 Dec 2010 08:17:00 +0000 (03:17 -0500)] 
Update how to make sample files for cab reader test.

SVN-Revision: 2833

15 years agoAdd support for Microsoft Cabinet(.cab) format.
Michihiro NAKAJIMA [Wed, 22 Dec 2010 16:01:31 +0000 (11:01 -0500)] 
Add support for Microsoft Cabinet(.cab) format.

Currently, this code supports STORE and MSZIP.
This reader always decompress recorded data even if archive_read_data
function is not called at all, because all blocks, which are
splited in 32768 bytes of uncompresssed data, need uncompressed
data of previous block to be decompressed, and there is no chance
that the format reader in libarchive knows that a caller application
such as bsdtar performs listing up filenames or finding one to
extract a specific file.

SVN-Revision: 2832

15 years agoAdd support for lha/lzh archive format.
Michihiro NAKAJIMA [Mon, 20 Dec 2010 08:59:25 +0000 (03:59 -0500)] 
Add support for lha/lzh archive format.

SVN-Revision: 2831

15 years agoIssue 124: Correct some references to getpwuid and getgrgid.
Tim Kientzle [Mon, 20 Dec 2010 04:44:41 +0000 (23:44 -0500)] 
Issue 124:  Correct some references to getpwuid and getgrgid.

SVN-Revision: 2830

15 years agoMake sure a check of a filename in joliet extension does not access
Michihiro NAKAJIMA [Fri, 17 Dec 2010 04:27:08 +0000 (23:27 -0500)] 
Make sure a check of a filename in joliet extension does not access
invalid address.

SVN-Revision: 2829

15 years agoRemove unneeded assignment. 'seenJoliet' has already had the same value.
Michihiro NAKAJIMA [Thu, 16 Dec 2010 13:39:42 +0000 (08:39 -0500)] 
Remove unneeded assignment. 'seenJoliet' has already had the same value.

SVN-Revision: 2828

15 years agoMake sure a returned pointer is not NULL.
Michihiro NAKAJIMA [Thu, 16 Dec 2010 13:17:56 +0000 (08:17 -0500)] 
Make sure a returned pointer is not NULL.

SVN-Revision: 2827

15 years agoFix a wrong scope to hex.
Michihiro NAKAJIMA [Thu, 16 Dec 2010 12:36:18 +0000 (07:36 -0500)] 
Fix a wrong scope to hex.

SVN-Revision: 2826

15 years agoRemove dead code.
Michihiro NAKAJIMA [Thu, 16 Dec 2010 12:32:39 +0000 (07:32 -0500)] 
Remove dead code.

SVN-Revision: 2825

15 years agoAvoid clang static analyze error at archive_entry_sparse.c
Michihiro NAKAJIMA [Thu, 16 Dec 2010 12:15:28 +0000 (07:15 -0500)] 
Avoid clang static analyze error at archive_entry_sparse.c
though I do not think what the nalayzer pointed out will happen.

SVN-Revision: 2824

15 years agoFix a test that breaks on systems where GID 17 is actually
Tim Kientzle [Sat, 11 Dec 2010 18:56:34 +0000 (13:56 -0500)] 
Fix a test that breaks on systems where GID 17 is actually
used.  Leave comments about some additional cases that would
be nice to test if someone can figure out a good way to do
so (a way that won't break on Windows, for example).

SVN-Revision: 2821

15 years agoFix issue 119.
Michihiro NAKAJIMA [Tue, 7 Dec 2010 06:40:51 +0000 (01:40 -0500)] 
Fix issue 119.
Change the file location check that a file location does not exceed
volume block. New one is that a file content does not exceed volume
block(end of an ISO image). It is better than previous check even
if the issue did not happen.

While reading an ISO image generated by an older version of mkisofs
utility, a file location indicates the end the ISO image if its file
size is zero and it is the last file of all files of the ISO image,
so it is possible that the location value is the same as the number
of the total block of the ISO image.

SVN-Revision: 2820

15 years agoFix issue 119.
Michihiro NAKAJIMA [Tue, 7 Dec 2010 06:36:39 +0000 (01:36 -0500)] 
Fix issue 119.
Change the file location check that a file location does not exceed
volume block. New one is that a file content does not exceed volume
block(end of an ISO image). It is better than previous check even
if the issue did not happen.

While reading an ISO image generated by an older version of mkisofs
utility, a file location indicates the end the ISO image if its file
size is zero and it is the last file of all files of the ISO image,
so it is possible that the location value is the same as the number
of the total block of the ISO image.

SVN-Revision: 2819

15 years agoRename archive_wstrappend_mbs to archive_wstrcpy_mbs to better reflect what it actual...
Tim Kientzle [Tue, 7 Dec 2010 05:19:50 +0000 (00:19 -0500)] 
Rename archive_wstrappend_mbs to archive_wstrcpy_mbs to better reflect what it actually does.

SVN-Revision: 2818

15 years agoMerge r2814 from trunk: Fix Issue 121
Tim Kientzle [Tue, 7 Dec 2010 05:06:01 +0000 (00:06 -0500)] 
Merge r2814 from trunk: Fix Issue 121

SVN-Revision: 2817

15 years agoDon't try to copy entry data if the entry has zero size.
Tim Kientzle [Tue, 7 Dec 2010 05:02:31 +0000 (00:02 -0500)] 
Don't try to copy entry data if the entry has zero size.
In particular, this causes "Cannot write to empty file" errors
when extracting GNU tar extended 'D' directory entries.

SVN-Revision: 2816

15 years agoProperly set a wcs length.
Michihiro NAKAJIMA [Mon, 6 Dec 2010 13:19:37 +0000 (08:19 -0500)] 
Properly set a wcs length.

SVN-Revision: 2815

15 years agoClear the "contents" data before parsing the next mtree entry.
Tim Kientzle [Sun, 5 Dec 2010 23:35:40 +0000 (18:35 -0500)] 
Clear the "contents" data before parsing the next mtree entry.

This may be the cause of the problem reported in Issue 121.

SVN-Revision: 2814

15 years agoFirst part of the NFS4 ACL support.
Tim Kientzle [Sun, 5 Dec 2010 20:50:03 +0000 (15:50 -0500)] 
First part of the NFS4 ACL support.

This renames a few things to acknowledge that there really
is more than one kind of ACL in the world and extends
the basic ACL storage to support the NFS4/NTFS ACL
mode bits.  The ACL storage has also gained some
error checks to ensure that a single ACL does not have
both NFS4/NTFS and POSIX.1e ACEs.

SVN-Revision: 2813

15 years agoMerge r2811 from trunk: Don't try to verify that compression-level=0
Tim Kientzle [Sun, 5 Dec 2010 20:30:23 +0000 (15:30 -0500)] 
Merge r2811 from trunk:  Don't try to verify that compression-level=0
produces larger results than the default compression, since this isn't
true for all versions of liblzma.

SVN-Revision: 2812

15 years agoDon't assert that compression-level=0 produces larger file
Tim Kientzle [Sun, 5 Dec 2010 20:28:34 +0000 (15:28 -0500)] 
Don't assert that compression-level=0 produces larger file
than the default compression, since the actual result varies
depending on the version of liblzma.

SVN-Revision: 2811

15 years agoAdjust cut-off condition to correctly return INT_MAX for large integers.
Joerg Sonnenberger [Sun, 5 Dec 2010 00:54:03 +0000 (19:54 -0500)] 
Adjust cut-off condition to correctly return INT_MAX for large integers.
Found by Maksymilian Arciemowicz <cxib@securityreason.com>.

SVN-Revision: 2810

15 years agoRestore ACLs after calls to chmod().
Tim Kientzle [Mon, 29 Nov 2010 02:50:17 +0000 (21:50 -0500)] 
Restore ACLs after calls to chmod().

In particular, current versions of ZFS on Solaris and
FreeBSD erase ACLs on each call to chmod, so ACL
restore has to follow chmod calls on those platforms.

SVN-Revision: 2809