]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
15 years ago- Value stored to 'err' is never read.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:41:53 +0000 (14:41 -0500)] 
- Value stored to 'err' is never read.
- Value stored to 'dest' is never read.

Found by Clang Static Analyzer.

SVN-Revision: 1603

15 years ago- Value stored to 'line' is never read.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:36:57 +0000 (14:36 -0500)] 
- Value stored to 'line' is never read.
- Value stored to 'h' is never read.
- Value stored to 'old_entry' during its initialization is never read.
- Value stored to 'dest' is never read.

Found by Clang Static Analyzer.

SVN-Revision: 1602

15 years agoValue stored to 'r' is never read.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:24:12 +0000 (14:24 -0500)] 
Value stored to 'r' is never read.

Found by Clang Static Analyzer.

SVN-Revision: 1601

15 years agoValue stored to 'ar' is never read.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:18:54 +0000 (14:18 -0500)] 
Value stored to 'ar' is never read.

Found by Clang Static Analyzer.

SVN-Revision: 1600

15 years agoValue stored to 'l' is never read.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:15:11 +0000 (14:15 -0500)] 
Value stored to 'l' is never read.

Found by Clang Static Analyzer.

SVN-Revision: 1599

15 years agoValue stored to 'read_avail' is never read.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:09:20 +0000 (14:09 -0500)] 
Value stored to 'read_avail' is never read.

Found by Clang Static Analyzer.

SVN-Revision: 1598

15 years agoReturn ARCHIVE_FATAL if BZ2_bzDecompressEnd failed.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:06:43 +0000 (14:06 -0500)] 
Return ARCHIVE_FATAL if BZ2_bzDecompressEnd failed.

Found by Clang Static Analyzer.

SVN-Revision: 1597

15 years ago- Value stored to 'filter' is never read.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:00:01 +0000 (14:00 -0500)] 
- Value stored to 'filter' is never read.
- Value stored to 'dummy_buffer' is never read.

Found by Clang Static Analyzer.

SVN-Revision: 1596

15 years agoValue stored to 'target_block_length' is never read.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 18:47:56 +0000 (13:47 -0500)] 
Value stored to 'target_block_length' is never read.

Found by Clang Static Analyzer.

SVN-Revision: 1595

15 years agoReturn ARCHIVE_WARN properly if large inode number was truncated.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 18:36:26 +0000 (13:36 -0500)] 
Return ARCHIVE_WARN properly if large inode number was truncated.

Found by Clang Static Analyzer.

SVN-Revision: 1594

15 years agoRemove duplicate code.
Michihiro NAKAJIMA [Sun, 8 Nov 2009 11:52:49 +0000 (06:52 -0500)] 
Remove duplicate code.

SVN-Revision: 1593

15 years agoIt is better that all of functions of checking volume descriptor
Michihiro NAKAJIMA [Sun, 8 Nov 2009 10:44:57 +0000 (05:44 -0500)] 
It is better that all of functions of checking volume descriptor
have the same interface.

SVN-Revision: 1592

15 years agoIf a volume description is found, do not try checking of another
Michihiro NAKAJIMA [Sun, 8 Nov 2009 10:23:59 +0000 (05:23 -0500)] 
If a volume description is found, do not try checking of another
volume description.

SVN-Revision: 1591

15 years agoThanks to Xavier for pointing out that the security.capability xattr
Tim Kientzle [Sun, 8 Nov 2009 07:06:02 +0000 (02:06 -0500)] 
Thanks to Xavier for pointing out that the security.capability xattr
on Linux must be restored last.  Let's try moving xattr restore to
after file data and see if that works any better; we may end up having
to do a full xattr restore both before and after the file data.

This also changes the behavior of xattr restore failures; they now
cause warnings when the entry is finished (which can be as late as
archive_write_close()) rather than when the header is written.

SVN-Revision: 1590

15 years agoBe a little more careful about identifying mdoc-format manpages.
Tim Kientzle [Sun, 8 Nov 2009 02:33:34 +0000 (21:33 -0500)] 
Be a little more careful about identifying mdoc-format manpages.
In particular, I recently had the update script pick up and try
to convert libarchive.so.5. Ouch.

SVN-Revision: 1589

15 years agoFix a couple of markup errors and clarify the discussion of miscellaneous
Tim Kientzle [Sun, 8 Nov 2009 02:32:03 +0000 (21:32 -0500)] 
Fix a couple of markup errors and clarify the discussion of miscellaneous
tar extensions.

SVN-Revision: 1588

15 years agoMake the CTest integration simpler and a little more robust
Tim Kientzle [Sat, 7 Nov 2009 23:35:18 +0000 (18:35 -0500)] 
Make the CTest integration simpler and a little more robust
by just reading list.h directly into cmake.  This only requires
a suitable "DEFINE_TEST" macro.

SVN-Revision: 1587

15 years agoCDash support, thanks to Brad King.
Tim Kientzle [Sat, 7 Nov 2009 23:08:41 +0000 (18:08 -0500)] 
CDash support, thanks to Brad King.

SVN-Revision: 1586

15 years agoMinGW defines a value of S_IFBLK which is both useless and wrong.
Tim Kientzle [Sat, 7 Nov 2009 07:31:15 +0000 (02:31 -0500)] 
MinGW defines a value of S_IFBLK which is both useless and wrong.
Comment out this sanity-check on MinGW.  (It already doesn't apply
to VC++ because Microsoft doesn't define S_IFBLK.)

test_entry sanity-checks that S_IFBLK has the expected value on every
platform, even though libarchive per se doesn't depend on this.  So far,
MinGW is the only platform that's ever broken one of these checks, which
is reassuring, since it means that clients can reasonably pass unaltered
st_mode values into libarchive.  Even on MinGW, it will work, since
MinGW can never actually set S_IFBLK (Windows filesystems don't support it).

SVN-Revision: 1585

15 years agoImprove detecting LZMA stream data.
Michihiro NAKAJIMA [Fri, 6 Nov 2009 15:16:19 +0000 (10:16 -0500)] 
Improve detecting LZMA stream data.
- Checking of the first byte of LZMA stream.
  * lzma of XZ Utils with option -e records 0x5d in the first byte.
  * It is possible that lzma of LZMA SDK records various data in the
    first byte.
- Checking of second and third bytes of LZMA stream.
  * lzma of LZMA SDK with option -d12,-d13,-d14 and -d15 records
    0x1000,0x2000,0x4000 and 0x8000 in second through fifth bytes
    of LZMA stream. It means second and third bytes are not always
    zero.
- Checking of sixth through fourteenth bytes of LZMA stream.
  * This bytes are recorded uncompressed size and lzma of XZ Utils
    always records -1 in this field.

SVN-Revision: 1584

16 years agoadd support for setting timestamps with ns resolution. utimensat and
Björn Jacke [Fri, 6 Nov 2009 11:42:45 +0000 (06:42 -0500)] 
add support for setting timestamps with ns resolution. utimensat and
futimens are defined in POSIX.1-2008. They are available on Linux since
glibc 2.6 and kernel 2.6.22.

SVN-Revision: 1583

16 years agoCast away a minor type mismatch.
Tim Kientzle [Fri, 6 Nov 2009 06:04:21 +0000 (01:04 -0500)] 
Cast away a minor type mismatch.

SVN-Revision: 1582

16 years agoAdd some tests for LZMA as other compression.
Michihiro NAKAJIMA [Thu, 5 Nov 2009 12:01:48 +0000 (07:01 -0500)] 
Add some tests for LZMA as other compression.

SVN-Revision: 1581

16 years agoWhitespace fix.
Tim Kientzle [Thu, 5 Nov 2009 05:44:42 +0000 (00:44 -0500)] 
Whitespace fix.

SVN-Revision: 1580

16 years agoCompression of test data for ISO reader switch from bzip2/gz to compress
Michihiro NAKAJIMA [Mon, 2 Nov 2009 06:48:54 +0000 (01:48 -0500)] 
Compression of test data for ISO reader switch from bzip2/gz to compress
so that all of ISO reader tests can be worked on every platform.

SVN-Revision: 1579

16 years agoRename LOCALE_DE to LOCALE_UTF8, since the code assumes it's a UTF8 locale. Set...
Tim Kientzle [Mon, 2 Nov 2009 04:39:11 +0000 (23:39 -0500)] 
Rename LOCALE_DE to LOCALE_UTF8, since the code assumes it's a UTF8 locale.  Set it to NULL on Windows, change some of the tests to skip when this is NULL.  This removes most of the assertion failures in test_entry.

SVN-Revision: 1578

16 years agoInclude needsAscent on the initial stack entry so that we correctly chdir() back...
Tim Kientzle [Mon, 2 Nov 2009 04:37:25 +0000 (23:37 -0500)] 
Include needsAscent on the initial stack entry so that we correctly chdir() back to our starting directory when the traversal is complete.

On Windows, handle wildcard setup in tree_open().

SVN-Revision: 1577

16 years agoRevert from previous change of tar/tree.c. It's my local hack.
Michihiro NAKAJIMA [Mon, 2 Nov 2009 03:04:10 +0000 (22:04 -0500)] 
Revert from previous change of tar/tree.c. It's my local hack.

SVN-Revision: 1576

16 years agoTo be robust when ISO image is broken.
Michihiro NAKAJIMA [Mon, 2 Nov 2009 02:59:56 +0000 (21:59 -0500)] 
To be robust when ISO image is broken.

SVN-Revision: 1575

16 years agoUse CP_ACP instead of CP_THREAD_ACP.
Tim Kientzle [Mon, 2 Nov 2009 02:42:21 +0000 (21:42 -0500)] 
Use CP_ACP instead of CP_THREAD_ACP.

SVN-Revision: 1574

16 years agoFuzz the mtree reader: Extract the sample file and add it to the list of fuzz-test...
Tim Kientzle [Sun, 1 Nov 2009 22:27:45 +0000 (17:27 -0500)] 
Fuzz the mtree reader: Extract the sample file and add it to the list of fuzz-test inputs.

SVN-Revision: 1573

16 years agoFix the name of one of the distfiles.
Tim Kientzle [Sun, 1 Nov 2009 21:51:33 +0000 (16:51 -0500)] 
Fix the name of one of the distfiles.

SVN-Revision: 1572

16 years agoExtend the fuzz tester:
Tim Kientzle [Sun, 1 Nov 2009 21:49:53 +0000 (16:49 -0500)] 
Extend the fuzz tester:
 * Test gzip reader
 * Test xz reader
 * Test cpio_bin format

SVN-Revision: 1571

16 years agoExtend the fuzz tester:
Tim Kientzle [Sun, 1 Nov 2009 21:46:24 +0000 (16:46 -0500)] 
Extend the fuzz tester:
 * Compress test_fuzz_1.iso so we can save space in source control and so we can fuzz a compressed file.
 * Extract the "ar" sample file so we can use it in the fuzz tester.

SVN-Revision: 1570

16 years agoUse the format_raw handler to decompress files before trying to
Tim Kientzle [Sun, 1 Nov 2009 18:07:03 +0000 (13:07 -0500)] 
Use the format_raw handler to decompress files before trying to
fuzz them.  This will allow us to re-use more of the ISO sample files,
for instance.

SVN-Revision: 1569

16 years ago-vvv should be full verbosity just like -vv.
Tim Kientzle [Sun, 1 Nov 2009 18:05:18 +0000 (13:05 -0500)] 
-vvv should be full verbosity just like -vv.

SVN-Revision: 1568

16 years agoDo not reject a directory entry which couldn't find the original place of
Michihiro NAKAJIMA [Sun, 1 Nov 2009 08:47:46 +0000 (03:47 -0500)] 
Do not reject a directory entry which couldn't find the original place of
itself.

SVN-Revision: 1567

16 years agoThe file queue which has "CL" extension(called cl_files) must use its
Michihiro NAKAJIMA [Sun, 1 Nov 2009 07:46:57 +0000 (02:46 -0500)] 
The file queue which has "CL" extension(called cl_files) must use its
cl_offset(which indicates a offset of the relocated directory entry)
for heap key. The function relocate_dir()'s algorithm expects cl_files
in order of cl_offset.

SVN-Revision: 1566

16 years agoMake the __FBSDID() handling more platform-agnostic by using
Tim Kientzle [Sun, 1 Nov 2009 06:56:20 +0000 (01:56 -0500)] 
Make the __FBSDID() handling more platform-agnostic by using
HAVE_SYS_CDEFS_H to control the inclusion of sys/cdefs.h and
defining a fake __FBSDID() macro if we need one.  In particular,
this deals a lot more gracefully with systems that are not
FreeBSD but use FreeBSD-derived system headers.

See Issue 46 on libarchive.googlecode.com for discussion.
Submitted by: cpr420

SVN-Revision: 1565

16 years agoWhitespace fix.
Tim Kientzle [Sun, 1 Nov 2009 06:48:39 +0000 (01:48 -0500)] 
Whitespace fix.

SVN-Revision: 1564

16 years agoAvoid %j and uintmax in cpio.
Tim Kientzle [Sun, 1 Nov 2009 02:36:25 +0000 (22:36 -0400)] 
Avoid %j and uintmax in cpio.

SVN-Revision: 1563

16 years agoTrying to figure out what printf modifiers to use on what platforms to
Tim Kientzle [Sun, 1 Nov 2009 02:14:14 +0000 (22:14 -0400)] 
Trying to figure out what printf modifiers to use on what platforms to
display 64-bit values is getting to be  real PITA.  Just roll our
own conversion and use that.

SVN-Revision: 1562

16 years agoGet int64_t on Haiku.
Tim Kientzle [Sat, 31 Oct 2009 22:47:51 +0000 (18:47 -0400)] 
Get int64_t on Haiku.

SVN-Revision: 1561

16 years agoBe a little more selective when verifying mode values. In particular,
Tim Kientzle [Sat, 31 Oct 2009 22:45:33 +0000 (18:45 -0400)] 
Be a little more selective when verifying mode values.  In particular,
ignore extra high-order bits that are added by Haiku's BFS filesystem.

SVN-Revision: 1560

16 years agoWindows build fix.
Tim Kientzle [Sat, 31 Oct 2009 20:03:25 +0000 (16:03 -0400)] 
Windows build fix.

SVN-Revision: 1559

16 years agoarchive_entry_copy_bhfi should only be built on Windows.
Tim Kientzle [Sat, 31 Oct 2009 19:24:09 +0000 (15:24 -0400)] 
archive_entry_copy_bhfi should only be built on Windows.

SVN-Revision: 1558

16 years agoFix some compiler warnings: Mostly just removing unused parameters.
Tim Kientzle [Sat, 31 Oct 2009 17:35:00 +0000 (13:35 -0400)] 
Fix some compiler warnings: Mostly just removing unused parameters.

SVN-Revision: 1557

16 years agoSkip hardlink checks on Haiku, remove some ancient hacks to get
Tim Kientzle [Sat, 31 Oct 2009 17:19:37 +0000 (13:19 -0400)] 
Skip hardlink checks on Haiku, remove some ancient hacks to get
libarchive_test to work against libarchive pre-1.9.

SVN-Revision: 1556

16 years agoSkip the root uname test on both Cygwin and Haiku (neither of which has
Tim Kientzle [Sat, 31 Oct 2009 17:18:31 +0000 (13:18 -0400)] 
Skip the root uname test on both Cygwin and Haiku (neither of which has
predictable usernames for UID 0, so this test doesn't work on either one).

SVN-Revision: 1555

16 years agoTweak for Haiku.
Tim Kientzle [Sat, 31 Oct 2009 17:17:14 +0000 (13:17 -0400)] 
Tweak for Haiku.

SVN-Revision: 1554

16 years agoShuffle the major/minor/makedev support a bit; this should work
Tim Kientzle [Sat, 31 Oct 2009 17:16:37 +0000 (13:16 -0400)] 
Shuffle the major/minor/makedev support a bit; this should work
on both Windows and Haiku.

SVN-Revision: 1553

16 years agoSynchronize the test harnesses and force atime tests to always pass
Tim Kientzle [Sat, 31 Oct 2009 17:14:50 +0000 (13:14 -0400)] 
Synchronize the test harnesses and force atime tests to always pass
on Haiku (which doesn't support atime).

SVN-Revision: 1552

16 years agoAdd extra text before the uuencoded data.
Michihiro NAKAJIMA [Sat, 31 Oct 2009 05:37:10 +0000 (01:37 -0400)] 
Add extra text before the uuencoded data.

SVN-Revision: 1551

16 years agoBug fix. Bidding failed when a character of the end of buffer which
Michihiro NAKAJIMA [Sat, 31 Oct 2009 05:03:48 +0000 (01:03 -0400)] 
Bug fix. Bidding failed when a character of the end of buffer which
was checked for bidding was '\n' but not the end of file.

SVN-Revision: 1550

16 years agoImprove directory order; make sure a directory entry is exposed
Michihiro NAKAJIMA [Sat, 31 Oct 2009 03:13:50 +0000 (23:13 -0400)] 
Improve directory order; make sure a directory entry is exposed
after its parent especially sub directories under the rr_moved
directory.

SVN-Revision: 1549

16 years agoFix a bug; use relevant function for reading create time.
Michihiro NAKAJIMA [Fri, 30 Oct 2009 12:22:36 +0000 (08:22 -0400)] 
Fix a bug; use relevant function for reading create time.

SVN-Revision: 1548

16 years agoAdd a test uudecode filter decodes a data of the Base64 encoding.
Michihiro NAKAJIMA [Fri, 30 Oct 2009 10:46:33 +0000 (06:46 -0400)] 
Add a test uudecode filter decodes a data of the Base64 encoding.

SVN-Revision: 1547

16 years agoMake sure a line is fully read before checking it for bidding
Michihiro NAKAJIMA [Fri, 30 Oct 2009 10:31:07 +0000 (06:31 -0400)] 
Make sure a line is fully read before checking it for bidding
for uudecode.

SVN-Revision: 1546

16 years agoMake sure uudecode filter handles lines which are broken
Michihiro NAKAJIMA [Fri, 30 Oct 2009 06:57:36 +0000 (02:57 -0400)] 
Make sure uudecode filter handles lines which are broken
across multiple reads.

Suggested by Tim.

SVN-Revision: 1545

16 years agoMore sanity check for ISO 9660.
Michihiro NAKAJIMA [Thu, 22 Oct 2009 06:05:57 +0000 (02:05 -0400)] 
More sanity check for ISO 9660.
Add check for Enhanced Volume Descriptor and other Supplementary Volume
Descriptor.

SVN-Revision: 1543

16 years agoAdd uudecode filter.
Michihiro NAKAJIMA [Tue, 20 Oct 2009 06:16:28 +0000 (02:16 -0400)] 
Add uudecode filter.

SVN-Revision: 1542

16 years agoSet return parameters.
Michihiro NAKAJIMA [Sun, 18 Oct 2009 05:31:20 +0000 (01:31 -0400)] 
Set return parameters.

SVN-Revision: 1541

16 years agoFix memory leak.
Michihiro NAKAJIMA [Sun, 18 Oct 2009 04:47:49 +0000 (00:47 -0400)] 
Fix memory leak.

SVN-Revision: 1540

16 years agoImprove queueing SUSP "CE" requests; it uses heapsort for performance now.
Michihiro NAKAJIMA [Fri, 16 Oct 2009 19:35:40 +0000 (15:35 -0400)] 
Improve queueing SUSP "CE" requests; it uses heapsort for performance now.

SVN-Revision: 1539

16 years agoFile size is no longer needed to check whether we have to set hardlink
Michihiro NAKAJIMA [Fri, 16 Oct 2009 17:08:47 +0000 (13:08 -0400)] 
File size is no longer needed to check whether we have to set hardlink
information to the file or not.

SVN-Revision: 1538

16 years agoAdd support for multi extent.
Michihiro NAKAJIMA [Fri, 16 Oct 2009 16:42:36 +0000 (12:42 -0400)] 
Add support for multi extent.

e.g.
-- Reuslt of previous bsdtar.
%bsdtar tvf test_read_format_iso_multi_extent.iso
dr-xr-xr-x  2 1      2        2048  1  2  1970 .
-r--r--r--  1 1      2      129024  1  2  1970 file
-r--r--r--  1 1      2      129024  1  2  1970 file
-r--r--r--  1 1      2        4232  1  2  1970 file

-- After patch.
%bsdtar tvf test_read_format_iso_multi_extent.iso
dr-xr-xr-x  2 1      2        2048  1  2  1970 .
-r--r--r--  1 1      2      262280  1  2  1970 file

SVN-Revision: 1537

16 years agosvn:ignore Makefiles in these directories.
Tim Kientzle [Fri, 16 Oct 2009 05:54:32 +0000 (01:54 -0400)] 
svn:ignore Makefiles in these directories.
In particular, let's try not to have anyone accidentally checkin the
cmake-generated Makefiles.

SVN-Revision: 1536

16 years agoRemove the FreeBSD-specific Makefiles.
Tim Kientzle [Fri, 16 Oct 2009 05:51:37 +0000 (01:51 -0400)] 
Remove the FreeBSD-specific Makefiles.

SVN-Revision: 1535

16 years agoWindows build fixes from Bill Hoffman.
Tim Kientzle [Fri, 16 Oct 2009 03:54:55 +0000 (23:54 -0400)] 
Windows build fixes from Bill Hoffman.

SVN-Revision: 1534

16 years agoFile size is no longer used in heapsort; next_cache_entry function
Michihiro NAKAJIMA [Fri, 16 Oct 2009 00:03:07 +0000 (20:03 -0400)] 
File size is no longer used in heapsort; next_cache_entry function
can recogize that there are empty files among hardlink files which
are not empty.

SVN-Revision: 1533

16 years agoWhen location has negative value, it can be used for file number.
Michihiro NAKAJIMA [Thu, 15 Oct 2009 22:00:43 +0000 (18:00 -0400)] 
When location has negative value, it can be used for file number.

SVN-Revision: 1532

16 years agoUnify cache_files and pending_dirs.
Michihiro NAKAJIMA [Thu, 15 Oct 2009 15:58:08 +0000 (11:58 -0400)] 
Unify cache_files and pending_dirs.

SVN-Revision: 1531

16 years agoHeap routine is converted to be common function so that
Michihiro NAKAJIMA [Thu, 15 Oct 2009 14:28:09 +0000 (10:28 -0400)] 
Heap routine is converted to be common function so that
iso9660->re_dirs and iso9660->cl_fiels use it for performance.

SVN-Revision: 1530

16 years agoImprove handling of Rockridge extensions' rr_moved directory and
Michihiro NAKAJIMA [Thu, 15 Oct 2009 11:37:18 +0000 (07:37 -0400)] 
Improve handling of Rockridge extensions' rr_moved directory and
following sub directories.
Add corresponding test.
Unfortunately, some tests need tweaks due to difference of ordering of
hardlink files(which have the same offset); it's characteristic of heap.

SVN-Revision: 1529

16 years agoSlightly simplify reading Directory Record.
Michihiro NAKAJIMA [Thu, 15 Oct 2009 11:14:18 +0000 (07:14 -0400)] 
Slightly simplify reading Directory Record.

SVN-Revision: 1528

16 years agoMinor fix.
Michihiro NAKAJIMA [Wed, 14 Oct 2009 19:11:27 +0000 (15:11 -0400)] 
Minor fix.

SVN-Revision: 1527

16 years agoTell user about SUSP "CE" extension has invalid value if occur.
Michihiro NAKAJIMA [Wed, 14 Oct 2009 19:06:28 +0000 (15:06 -0400)] 
Tell user about SUSP "CE" extension has invalid value if occur.

SVN-Revision: 1526

16 years agoSiplify some code.
Michihiro NAKAJIMA [Wed, 14 Oct 2009 18:16:28 +0000 (14:16 -0400)] 
Siplify some code.

SVN-Revision: 1525

16 years agoSplit reading data which is recorded by SUSP CE extension.
Michihiro NAKAJIMA [Wed, 14 Oct 2009 16:43:55 +0000 (12:43 -0400)] 
Split reading data which is recorded by SUSP CE extension.

SVN-Revision: 1524

16 years agoMake sure that it does not lost number by overflow.
Michihiro NAKAJIMA [Wed, 14 Oct 2009 15:22:32 +0000 (11:22 -0400)] 
Make sure that it does not lost number by overflow.

SVN-Revision: 1523

16 years agoRename some variable name from location to offset, which is apt for processing.
Michihiro NAKAJIMA [Wed, 14 Oct 2009 15:08:35 +0000 (11:08 -0400)] 
Rename some variable name from location to offset, which is apt for processing.

SVN-Revision: 1522

16 years agoMinor change to reduce difference from proper supporting rr_move directory,
Michihiro NAKAJIMA [Wed, 14 Oct 2009 11:27:45 +0000 (07:27 -0400)] 
Minor change to reduce difference from proper supporting rr_move directory,
which I'm going to commit.
This change does not affect any results.

SVN-Revision: 1521

16 years agoEliminate compiling warning on Visual Studio.
Michihiro NAKAJIMA [Wed, 14 Oct 2009 10:37:54 +0000 (06:37 -0400)] 
Eliminate compiling warning on Visual Studio.

SVN-Revision: 1520

16 years agoAdd check that int32_t is available, and define it if not.
Michihiro NAKAJIMA [Wed, 14 Oct 2009 10:34:54 +0000 (06:34 -0400)] 
Add check that int32_t is available, and define it if not.

SVN-Revision: 1519

16 years agoAvoid core dump.
Michihiro NAKAJIMA [Wed, 14 Oct 2009 10:10:00 +0000 (06:10 -0400)] 
Avoid core dump.

SVN-Revision: 1518

16 years agoSplit a part of reading subdirectories from
Michihiro NAKAJIMA [Tue, 13 Oct 2009 19:47:40 +0000 (15:47 -0400)] 
Split a part of reading subdirectories from
archive_read_format_iso9660_read_header function.
This is preparation of support RRIP "CL" and "RE" extensions
for proper handling of "rr_moved" directory.

SVN-Revision: 1517

16 years agoRename struct vd parameter names from `sector_number' to `location' and
Michihiro NAKAJIMA [Tue, 13 Oct 2009 19:18:31 +0000 (15:18 -0400)] 
Rename struct vd parameter names from `sector_number' to `location' and
 from `block_size' to `size'.

SVN-Revision: 1516

16 years agoStyle fix.
Michihiro NAKAJIMA [Tue, 13 Oct 2009 19:04:56 +0000 (15:04 -0400)] 
Style fix.

SVN-Revision: 1515

16 years agoAdd sanity check.
Michihiro NAKAJIMA [Tue, 13 Oct 2009 18:56:31 +0000 (14:56 -0400)] 
Add sanity check.

SVN-Revision: 1514

16 years agoFix a bug; reading extensions recorded by SUSP CE extension
Michihiro NAKAJIMA [Tue, 13 Oct 2009 17:50:32 +0000 (13:50 -0400)] 
Fix a bug; reading extensions recorded by SUSP CE extension
did not work and sometimes stole file contents.
Add test for this case.

libarchive 2.7.* have had these following bugs.
1. When length of symlink name is longer than about 70,
   it cannot get modify/access times recorded by "TF" extension
   and maybe next file is stolen a part of its contents by
   that process.
2. When length of file name is longer than about 80,
   it cannot get modify/access times recorded by "TF" extension
   and maybe it's stolen a part of its contents by that process.
3. When length of file name is longer than about 100,
   it cannot get file mode, user id and group id recorded by "PX"
   extension and as above.
4. When length of file name is longer than about 142,
   it gets wrong file name(shorter name) and as above.

Condition of stealing file contents:
  if file->offset - iso9660->current_position < file->ce_size
  in next_entry_seek function, that process consumed file contents
  of which were data of extensions.

That process read wrong data whether that process consumed file
contents or not.

SVN-Revision: 1513

16 years agoCalculate nlinks and use it instead of nlinks reocrded by Rock Ridge extensions.
Michihiro NAKAJIMA [Mon, 12 Oct 2009 20:02:50 +0000 (16:02 -0400)] 
Calculate nlinks and use it instead of nlinks reocrded by Rock Ridge extensions.

SVN-Revision: 1512

16 years agoFix Rockridge option name in test.
Michihiro NAKAJIMA [Mon, 12 Oct 2009 10:25:13 +0000 (06:25 -0400)] 
Fix Rockridge option name in test.

SVN-Revision: 1511

16 years agoIf FILE SERIAL NUMBER of RRIP "PX" extension is recorded in ISO images,
Michihiro NAKAJIMA [Mon, 12 Oct 2009 10:23:34 +0000 (06:23 -0400)] 
If FILE SERIAL NUMBER of RRIP "PX" extension is recorded in ISO images,
use it instead of file offset to find out hardlink target.

SVN-Revision: 1510

16 years agoRename Rock Ridge option name from `rock-ridge' to `rockridge' and `Rockridge'.
Michihiro NAKAJIMA [Mon, 12 Oct 2009 05:29:38 +0000 (01:29 -0400)] 
Rename Rock Ridge option name from `rock-ridge' to `rockridge' and `Rockridge'.

SVN-Revision: 1509

16 years agoOn Linux, the example code requires _FILE_OFFSET_BITS.
Tim Kientzle [Mon, 12 Oct 2009 00:26:08 +0000 (20:26 -0400)] 
On Linux, the example code requires _FILE_OFFSET_BITS.

SVN-Revision: 1507

16 years agoEliminate compiling warning on Visual Studio.
Michihiro NAKAJIMA [Sun, 11 Oct 2009 20:37:14 +0000 (16:37 -0400)] 
Eliminate compiling warning on Visual Studio.

SVN-Revision: 1505

16 years agoCheck Boot Reocrd and Volume Partition format so that ISO reader does not
Michihiro NAKAJIMA [Sun, 11 Oct 2009 20:17:57 +0000 (16:17 -0400)] 
Check Boot Reocrd and Volume Partition format so that ISO reader does not
ignore iso-image files which are recorded Boot Record or Volume Partition.

SVN-Revision: 1504

16 years agoRRIP "RR" extension is obsolete; it appeared only early version of
Michihiro NAKAJIMA [Sun, 11 Oct 2009 11:51:06 +0000 (07:51 -0400)] 
RRIP "RR" extension is obsolete; it appeared only early version of
RRIP standard. Do not use it for seenRockridge flag. Use other
RRIP extensions instead.

SVN-Revision: 1503

16 years agoThe 5th parameter of RRIP "PX" extension is not inode.
Michihiro NAKAJIMA [Sun, 11 Oct 2009 11:17:05 +0000 (07:17 -0400)] 
The 5th parameter of RRIP "PX" extension is not inode.
RRIP Standrd says that parameter, FILE SERIAL NUMBER, shall have the same
meaning as and may be used for the st_ino field of POSIX:5.6.1.
It can treat as inode but not value of inode of directories or files.

SVN-Revision: 1502

16 years agoEliminate double negative condition.
Michihiro NAKAJIMA [Sun, 11 Oct 2009 10:38:08 +0000 (06:38 -0400)] 
Eliminate double negative condition.

SVN-Revision: 1501