]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
14 years agoFix issue 238.
Michihiro NAKAJIMA [Sun, 5 Feb 2012 19:51:16 +0000 (04:51 +0900)] 
Fix issue 238.
Skip the setup sparse on linux without a check of errno if
ioctl(,FS_IOC_FIEMAP,) failed because the errno is not fixed
, for example, some file system returns ENOTTY, another returns
EOPNOTSUPP, or EINVAL and so on. We cannot decide what errno
exactly indicates an unsupported error.

14 years agoSimlify a string conversion from WCS to MBS on Windows.
Michihiro NAKAJIMA [Mon, 12 Mar 2012 11:02:29 +0000 (20:02 +0900)] 
Simlify a string conversion from WCS to MBS on Windows.

14 years agoMove a definition of HAVE_LINUX_TYPES_H in build/cmake/config.h.in after HAVE_LINUX_M...
Michihiro NAKAJIMA [Sun, 11 Mar 2012 15:00:59 +0000 (00:00 +0900)] 
Move a definition of HAVE_LINUX_TYPES_H in build/cmake/config.h.in after HAVE_LINUX_MAGIC_H to be in alphabetical order.

14 years agoAdd a check of linux/types.h into configure.ac, which has already been added
Michihiro NAKAJIMA [Sun, 11 Mar 2012 14:56:24 +0000 (23:56 +0900)] 
Add a check of linux/types.h into configure.ac, which has already been added
into CMakeLists.txt.

14 years agoSimplify a check whether the current filesystem libarchive_test is running
Michihiro NAKAJIMA [Sun, 11 Mar 2012 14:26:47 +0000 (23:26 +0900)] 
Simplify a check whether the current filesystem libarchive_test is running
supports FIEMAP on linux; do not check an errno ioctl() returns to use the
same logic to a check of sparse support as libarchive does.

14 years agoMove a definition of HAVE_LINUX_TYPES_H in build/cmake/config.h.in after HAVE_LINUX_M...
Michihiro NAKAJIMA [Sun, 11 Mar 2012 15:00:59 +0000 (00:00 +0900)] 
Move a definition of HAVE_LINUX_TYPES_H in build/cmake/config.h.in after HAVE_LINUX_MAGIC_H to be in alphabetical order.

14 years agoAdd a check of linux/types.h into configure.ac, which has already been added
Michihiro NAKAJIMA [Sun, 11 Mar 2012 14:56:24 +0000 (23:56 +0900)] 
Add a check of linux/types.h into configure.ac, which has already been added
into CMakeLists.txt.

14 years agoSimplify a check whether the current filesystem libarchive_test is running
Michihiro NAKAJIMA [Sun, 11 Mar 2012 14:26:47 +0000 (23:26 +0900)] 
Simplify a check whether the current filesystem libarchive_test is running
supports FIEMAP on linux; do not check an errno ioctl() returns to use the
same logic to a check of sparse support as libarchive does.

14 years agoAvoid the error which Clang Static Analyzer says "Function call argument is an uninit...
Michihiro NAKAJIMA [Tue, 28 Feb 2012 10:06:38 +0000 (19:06 +0900)] 
Avoid the error which Clang Static Analyzer says "Function call argument is an uninitialized value" but actually it might not happen.

14 years agoFix a long standing warning at archive_ppmd7.c on Visual Studio.
Michihiro NAKAJIMA [Sun, 19 Feb 2012 00:06:28 +0000 (09:06 +0900)] 
Fix a long standing warning at archive_ppmd7.c on Visual Studio.

14 years agoAvoid a miss detection of iconv prototype after we started using
Michihiro NAKAJIMA [Wed, 22 Feb 2012 07:19:16 +0000 (16:19 +0900)] 
Avoid a miss detection of iconv prototype after we started using
CMAKE_C_FLAGS_DEBUG.

14 years agoFix crypto checks in cmake builds.
Andres Mejia [Mon, 6 Feb 2012 00:30:37 +0000 (19:30 -0500)] 
Fix crypto checks in cmake builds.

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

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

SVN-Revision: 4135

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

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

SVN-Revision: 4134

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

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

SVN-Revision: 4133

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

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

SVN-Revision: 4132

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

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

SVN-Revision: 4129

14 years agoRemove an outdated comment.
Michihiro NAKAJIMA [Thu, 8 Mar 2012 04:16:50 +0000 (13:16 +0900)] 
Remove an outdated comment.

14 years agoProperly reuse rar->filename.
Michihiro NAKAJIMA [Thu, 8 Mar 2012 04:13:53 +0000 (13:13 +0900)] 
Properly reuse rar->filename.

14 years agoIssue 247:Unicode filenames inside RAR not working.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:55:18 +0000 (18:55 +0900)] 
Issue 247:Unicode filenames inside RAR not working.

14 years agoAdd a unicode filename sample for test_read_format_rar for issue 247.
Michihiro NAKAJIMA [Wed, 7 Mar 2012 07:55:47 +0000 (16:55 +0900)] 
Add a unicode filename sample for test_read_format_rar for issue 247.

14 years agoAdditional fix to issue 247(Unicode filenames in RAR).
Michihiro NAKAJIMA [Wed, 7 Mar 2012 04:00:24 +0000 (13:00 +0900)] 
Additional fix to issue 247(Unicode filenames in RAR).

14 years agoIntroduce archive_write_add_fitler() 9/head
Ondrej Holy [Tue, 6 Mar 2012 19:43:27 +0000 (20:43 +0100)] 
Introduce archive_write_add_fitler()
- a convenience function to set the filter based on the code.

14 years agoDo not overwrite CMAKE_BUILD_TYPE if it has already been set.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 03:58:28 +0000 (12:58 +0900)] 
Do not overwrite CMAKE_BUILD_TYPE if it has already been set.
Record CMAKE_BUILD_TYPE in CACHE so that you can edit CMAKE_BUILD_TYPE
easily through GUI.

14 years agoIssue 247:Unicode filenames inside RAR not working.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:55:18 +0000 (18:55 +0900)] 
Issue 247:Unicode filenames inside RAR not working.

14 years agoMove CMAKE_MINIMUM_REQUIRED to the top of CMakeLists.txt to avoid warnings
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:51:19 +0000 (18:51 +0900)] 
Move CMAKE_MINIMUM_REQUIRED to the top of CMakeLists.txt to avoid warnings
on Cygwin.

14 years agoCMakePushCheckState module appeared from CMake 2.8.6.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:38:36 +0000 (18:38 +0900)] 
CMakePushCheckState module appeared from CMake 2.8.6.

14 years agoDo not overwrite CMAKE_BUILD_TYPE if it has already been set.
Michihiro NAKAJIMA [Tue, 6 Mar 2012 03:58:28 +0000 (12:58 +0900)] 
Do not overwrite CMAKE_BUILD_TYPE if it has already been set.
Record CMAKE_BUILD_TYPE in CACHE so that you can edit CMAKE_BUILD_TYPE
easily through GUI.

14 years agoFind out what macro is needed or acceptable to use a external library
Michihiro NAKAJIMA [Mon, 5 Mar 2012 10:30:26 +0000 (19:30 +0900)] 
Find out what macro is needed or acceptable to use a external library
such as zlib on CMake build system On Windows. Because if the library
is static library, a macro must be defined to use it on Windows.

14 years agoUse CMakePushCheckState module to save and restore CMAKE_REQUIRED_* variables,
Michihiro NAKAJIMA [Sun, 4 Mar 2012 02:19:45 +0000 (11:19 +0900)] 
Use CMakePushCheckState module to save and restore CMAKE_REQUIRED_* variables,
which are used in detecting functions and libraries.

14 years agoFix a printf format type for id_t. FreeBSD's id_t is int64_t.
Michihiro NAKAJIMA [Wed, 29 Feb 2012 01:56:57 +0000 (10:56 +0900)] 
Fix a printf format type for id_t. FreeBSD's id_t is int64_t.

14 years agoFix a printf format type for id_t. FreeBSD's id_t is int64_t.
Michihiro NAKAJIMA [Wed, 29 Feb 2012 01:56:57 +0000 (10:56 +0900)] 
Fix a printf format type for id_t. FreeBSD's id_t is int64_t.

14 years agoAvoid the error which Clang Static Analyzer says "Function call argument is an uninit...
Michihiro NAKAJIMA [Tue, 28 Feb 2012 10:06:38 +0000 (19:06 +0900)] 
Avoid the error which Clang Static Analyzer says "Function call argument is an uninitialized value" but actually it might not happen.

14 years agoMerge pull request #6 from jsonn/master
Joerg Sonnenberger [Tue, 28 Feb 2012 18:24:30 +0000 (10:24 -0800)] 
Merge pull request #6 from jsonn/master

Basic sanity checks to prevent new format string issues in the future

14 years agoAllow format string checking with GCC. 6/head
Joerg Sonnenberger [Tue, 28 Feb 2012 15:48:01 +0000 (16:48 +0100)] 
Allow format string checking with GCC.

14 years agoProperly call archive_read_close() after archive_read_disk_open().
Michihiro NAKAJIMA [Tue, 28 Feb 2012 08:28:16 +0000 (17:28 +0900)] 
Properly call archive_read_close() after archive_read_disk_open().

14 years agoImprove previous change; reuse a directory traversals object instead of creating...
Michihiro NAKAJIMA [Tue, 28 Feb 2012 07:40:38 +0000 (16:40 +0900)] 
Improve previous change; reuse a directory traversals object instead of creating a new one.

14 years agoFix the problem that bsdtar with new directory traversals code fail
Michihiro NAKAJIMA [Tue, 28 Feb 2012 05:22:15 +0000 (14:22 +0900)] 
Fix the problem that bsdtar with new directory traversals code fail
when creating a newc archive.

14 years agoFix memory leaks found with Clang Static Analyzer. Those could occur when
Michihiro NAKAJIMA [Mon, 27 Feb 2012 09:52:30 +0000 (18:52 +0900)] 
Fix memory leaks found with Clang Static Analyzer. Those could occur when
something error happend.

14 years agoAvoid the error which Clang Static Analyzer says "Null pointer argument in call to...
Michihiro NAKAJIMA [Mon, 27 Feb 2012 10:26:36 +0000 (19:26 +0900)] 
Avoid the error which Clang Static Analyzer says "Null pointer argument in call to string length function" but actually it will not happen.

14 years agoAvoid the memory leak error which Clang Static Analyzer pointed out but actually...
Michihiro NAKAJIMA [Mon, 27 Feb 2012 09:56:19 +0000 (18:56 +0900)] 
Avoid the memory leak error which Clang Static Analyzer pointed out but actually it not memory leak.

14 years agoFix memory leaks found with Clang Static Analyzer. Those could occur when
Michihiro NAKAJIMA [Mon, 27 Feb 2012 09:52:30 +0000 (18:52 +0900)] 
Fix memory leaks found with Clang Static Analyzer. Those could occur when
something error happend.

14 years agoFix the error which Clang Static Analyzer says "Division by zero".
Michihiro NAKAJIMA [Mon, 27 Feb 2012 09:04:09 +0000 (18:04 +0900)] 
Fix the error which Clang Static Analyzer says "Division by zero".

14 years agoFix the error which Clang Static Analyzer says "Assigned value is garbage or undefine...
Michihiro NAKAJIMA [Mon, 27 Feb 2012 08:52:31 +0000 (17:52 +0900)] 
Fix the error which Clang Static Analyzer says "Assigned value is garbage or undefined" but actually it will not happen.

14 years agoFix build failure without zlib on Windows; avoid unreachable code.
Michihiro NAKAJIMA [Mon, 27 Feb 2012 08:29:47 +0000 (17:29 +0900)] 
Fix build failure without zlib on Windows; avoid unreachable code.

14 years agoFix build failure on linux.
Michihiro NAKAJIMA [Sun, 26 Feb 2012 12:05:32 +0000 (21:05 +0900)] 
Fix build failure on linux.

14 years agoImprove directory traversals on Windows to surely clear an archive_entry
Michihiro NAKAJIMA [Sun, 26 Feb 2012 08:15:18 +0000 (17:15 +0900)] 
Improve directory traversals on Windows to surely clear an archive_entry
object when the entry is excluded as well as the POSIX version of this does.

14 years agoVarious manpage metadata fixes
Martin Matuska [Sat, 25 Feb 2012 14:53:45 +0000 (15:53 +0100)] 
Various manpage metadata fixes
- fix manpage dates to reflect latest change
- fix manpage titles
- reduce $FreeBSD: *$ tags to $FreeBSD$

14 years agoFix a comparison of file names in ISO images.
Michihiro NAKAJIMA [Sun, 26 Feb 2012 03:16:53 +0000 (12:16 +0900)] 
Fix a comparison of file names in ISO images.

14 years agoFix a wrong check on a result of lseek.
Michihiro NAKAJIMA [Sat, 25 Feb 2012 09:38:13 +0000 (18:38 +0900)] 
Fix a wrong check on a result of lseek.

14 years agoA header check for iconv.h should be done after AM_ICONV because
Michihiro NAKAJIMA [Wed, 22 Feb 2012 12:28:31 +0000 (21:28 +0900)] 
A header check for iconv.h should be done after AM_ICONV because
a proper include direcotry for iconv.h is set by AM_ICONV.

14 years agoRemove duplicate statements.
Michihiro NAKAJIMA [Sun, 26 Feb 2012 03:42:32 +0000 (12:42 +0900)] 
Remove duplicate statements.

14 years agoFix a comparison of file names in ISO images.
Michihiro NAKAJIMA [Sun, 26 Feb 2012 03:16:53 +0000 (12:16 +0900)] 
Fix a comparison of file names in ISO images.

14 years agoFix build failure with -Wunreachable-code compile option; use a for loop statement...
Michihiro NAKAJIMA [Sat, 25 Feb 2012 11:51:24 +0000 (20:51 +0900)] 
Fix build failure with -Wunreachable-code compile option; use a for loop statement instead of a goto statement.

14 years agoCleanup; use a for loop statement instead of a goto statement.
Michihiro NAKAJIMA [Sat, 25 Feb 2012 11:27:14 +0000 (20:27 +0900)] 
Cleanup; use a for loop statement instead of a goto statement.

14 years agoRemove dead code in parsing Rockridge extension SL.
Michihiro NAKAJIMA [Sat, 25 Feb 2012 11:03:14 +0000 (20:03 +0900)] 
Remove dead code in parsing Rockridge extension SL.

14 years agoImprove directory traversals code for POSIX: split _archive_read_next_header2
Michihiro NAKAJIMA [Sat, 25 Feb 2012 10:36:43 +0000 (19:36 +0900)] 
Improve directory traversals code for POSIX: split _archive_read_next_header2
function into the one and next_entry function to make the code slightly
readable and make sure that entry be cleaned in any situation.

14 years agoFix a wrong check on a result of lseek.
Michihiro NAKAJIMA [Sat, 25 Feb 2012 09:38:13 +0000 (18:38 +0900)] 
Fix a wrong check on a result of lseek.

14 years agoRemove dead code.
Michihiro NAKAJIMA [Sat, 25 Feb 2012 09:33:48 +0000 (18:33 +0900)] 
Remove dead code.

14 years agoMerge pull request #5 from mmatuska/master
Michihiro NAKAJIMA [Sun, 26 Feb 2012 06:59:23 +0000 (22:59 -0800)] 
Merge pull request #5 from mmatuska/master

Various manpage metadata fixes

14 years agoVarious manpage metadata fixes 5/head
Martin Matuska [Sat, 25 Feb 2012 14:53:45 +0000 (15:53 +0100)] 
Various manpage metadata fixes
- fix manpage dates to reflect latest change
- fix manpage titles
- reduce $FreeBSD: *$ tags to $FreeBSD$

14 years agoEnable C4254,C4295,C4514 and C4702 on MSVC.
Michihiro NAKAJIMA [Sat, 25 Feb 2012 07:45:19 +0000 (16:45 +0900)] 
Enable C4254,C4295,C4514 and C4702 on MSVC.

14 years agoMake CMAKE_C_FLAGS_DEBUG readable.
Michihiro NAKAJIMA [Sat, 25 Feb 2012 07:31:48 +0000 (16:31 +0900)] 
Make CMAKE_C_FLAGS_DEBUG readable.

14 years agoAdd NEWS about where the mailing lists have stayed.
Andres Mejia [Fri, 24 Feb 2012 19:20:16 +0000 (14:20 -0500)] 
Add NEWS about where the mailing lists have stayed.

14 years agoAdd -Wformat and -Wformat-security to default CFLAGS for all builds.
Andres Mejia [Fri, 24 Feb 2012 17:02:32 +0000 (12:02 -0500)] 
Add -Wformat and -Wformat-security to default CFLAGS for all builds.
These are security related warnings.

14 years agoMake warnings enabled match what is enabled for cmake builds.
Andres Mejia [Fri, 24 Feb 2012 16:37:28 +0000 (11:37 -0500)] 
Make warnings enabled match what is enabled for cmake builds.

14 years agoEnable bsdtar -s option on Windows with libregex and fix the problem
Michihiro NAKAJIMA [Wed, 22 Feb 2012 11:39:15 +0000 (20:39 +0900)] 
Enable bsdtar -s option on Windows with libregex and fix the problem
which appeared from enabling that at test_option_s.

14 years agoA header check for iconv.h should be done after AM_ICONV because
Michihiro NAKAJIMA [Wed, 22 Feb 2012 12:28:31 +0000 (21:28 +0900)] 
A header check for iconv.h should be done after AM_ICONV because
a proper include direcotry for iconv.h is set by AM_ICONV.

14 years agoEnable bsdtar -s option on Windows with libregex and fix the problem
Michihiro NAKAJIMA [Wed, 22 Feb 2012 11:39:15 +0000 (20:39 +0900)] 
Enable bsdtar -s option on Windows with libregex and fix the problem
which appeared from enabling that at test_option_s.

14 years agoFor MSVC, /WX option should be set to CMAKE_C_FLAGS_{DEBUG,RELEASE}
Michihiro NAKAJIMA [Wed, 22 Feb 2012 07:29:33 +0000 (16:29 +0900)] 
For MSVC, /WX option should be set to CMAKE_C_FLAGS_{DEBUG,RELEASE}
insted of CMAKE_C_FLAGS and CMAKE_REQUIRED_FLAGS.

14 years agoAvoid a miss detection of iconv prototype after we started using
Michihiro NAKAJIMA [Wed, 22 Feb 2012 07:19:16 +0000 (16:19 +0900)] 
Avoid a miss detection of iconv prototype after we started using
CMAKE_C_FLAGS_DEBUG.

14 years agoFix build failure on MSYS: rename a variable name 'time' to 't' since
Michihiro NAKAJIMA [Wed, 22 Feb 2012 06:49:22 +0000 (15:49 +0900)] 
Fix build failure on MSYS: rename a variable name 'time' to 't' since
that 'time' shadows a global declaration.

14 years agoOn Windows, make sure libarchive does not store the Windows style path
Michihiro NAKAJIMA [Tue, 21 Feb 2012 08:18:32 +0000 (17:18 +0900)] 
On Windows, make sure libarchive does not store the Windows style path
separator '\' character into cpio, pax, ustar, gtar and zip archives,
because it is not interoperable between Windows and POSIX platform,
so we should replace '\' character in the pathnames with '/'.

14 years agoOn Windows, make sure libarchive does not store the Windows style path
Michihiro NAKAJIMA [Tue, 21 Feb 2012 08:18:32 +0000 (17:18 +0900)] 
On Windows, make sure libarchive does not store the Windows style path
separator '\' character into cpio, pax, ustar, gtar and zip archives,
because it is not interoperable between Windows and POSIX platform,
so we should replace '\' character in the pathnames with '/'.

14 years agoOn Windows, it is possible that the program name should have a slash '/'
Michihiro NAKAJIMA [Mon, 20 Feb 2012 08:14:57 +0000 (17:14 +0900)] 
On Windows, it is possible that the program name should have a slash '/'
character not only a backslash '\' character. We have to check both
a slash and a backslash to get the running program name of bsdcpio or
bsdtar.

14 years agoProperly remove leading slash letters and Windows drive letters in cpio.
Michihiro NAKAJIMA [Mon, 20 Feb 2012 07:51:40 +0000 (16:51 +0900)] 
Properly remove leading slash letters and Windows drive letters in cpio.

14 years agoCorrect console I/O on Windows. Use CONIN$ and CONOUT$ instead of /dev/tty.
Michihiro NAKAJIMA [Mon, 20 Feb 2012 06:31:20 +0000 (15:31 +0900)] 
Correct console I/O on Windows. Use CONIN$ and CONOUT$ instead of /dev/tty.

14 years agoFix a format parameter for a wide string in archive_write_disk_windows.c.
Michihiro NAKAJIMA [Mon, 20 Feb 2012 06:02:52 +0000 (15:02 +0900)] 
Fix a format parameter for a wide string in archive_write_disk_windows.c.

14 years agoOn Windows, it is possible that the program name should have a slash '/'
Michihiro NAKAJIMA [Mon, 20 Feb 2012 08:14:57 +0000 (17:14 +0900)] 
On Windows, it is possible that the program name should have a slash '/'
character not only a backslash '\' character. We have to check both
a slash and a backslash to get the running program name of bsdcpio or
bsdtar.

14 years agoProperly remove leading slash letters and Windows drive letters in cpio.
Michihiro NAKAJIMA [Mon, 20 Feb 2012 07:51:40 +0000 (16:51 +0900)] 
Properly remove leading slash letters and Windows drive letters in cpio.

14 years agoCorrect console I/O on Windows. Use CONIN$ and CONOUT$ instead of /dev/tty.
Michihiro NAKAJIMA [Mon, 20 Feb 2012 06:31:20 +0000 (15:31 +0900)] 
Correct console I/O on Windows. Use CONIN$ and CONOUT$ instead of /dev/tty.

14 years agoFix a format parameter for a wide string in archive_write_disk_windows.c.
Michihiro NAKAJIMA [Mon, 20 Feb 2012 06:02:52 +0000 (15:02 +0900)] 
Fix a format parameter for a wide string in archive_write_disk_windows.c.

14 years agoEnable built-in functions on MSVC.
Michihiro NAKAJIMA [Sun, 19 Feb 2012 23:39:05 +0000 (08:39 +0900)] 
Enable built-in functions on MSVC.

14 years agoEnable aggressive warnings C4061,C4296,C4389 and C4505 on MSVC.
Michihiro NAKAJIMA [Sun, 19 Feb 2012 23:08:02 +0000 (08:08 +0900)] 
Enable aggressive warnings C4061,C4296,C4389 and C4505 on MSVC.

14 years agoEnable an aggressive warning C4706 on MSVC.
Michihiro NAKAJIMA [Sun, 19 Feb 2012 22:25:00 +0000 (07:25 +0900)] 
Enable an aggressive warning C4706 on MSVC.

14 years agoDo not overwrite the default setting of CMAKE_C_FLAGS{_DEBUG}.
Michihiro NAKAJIMA [Sun, 19 Feb 2012 22:06:52 +0000 (07:06 +0900)] 
Do not overwrite the default setting of CMAKE_C_FLAGS{_DEBUG}.

14 years agoImprove setting for compiling options for Rebug and Release mode.
Michihiro NAKAJIMA [Sun, 19 Feb 2012 21:13:02 +0000 (06:13 +0900)] 
Improve setting for compiling options for Rebug and Release mode.

14 years agoTreat warnings as error on MSVC.
Michihiro NAKAJIMA [Sun, 19 Feb 2012 20:17:27 +0000 (05:17 +0900)] 
Treat warnings as error on MSVC.

14 years agoFix a long standing warning at archive_ppmd7.c on Visual Studio.
Michihiro NAKAJIMA [Sun, 19 Feb 2012 00:06:28 +0000 (09:06 +0900)] 
Fix a long standing warning at archive_ppmd7.c on Visual Studio.

14 years agoOn Visual Studio, Enable Warning 4244: 'conversion' conversion from 'type1'
Michihiro NAKAJIMA [Sat, 18 Feb 2012 19:48:38 +0000 (04:48 +0900)] 
On Visual Studio, Enable Warning 4244: 'conversion' conversion from 'type1'
to 'type2', possible lose of data.

14 years agoImprove test utilities to correctly detect the Windows style of full path that starts...
Michihiro NAKAJIMA [Fri, 30 Dec 2011 17:32:19 +0000 (12:32 -0500)] 
Improve test utilities to correctly detect the Windows style of full path that starts with "c:\".
Building full path name in test utilities should use memmove instead of strcpy because it is
possible that an original path name should overlap itself when moving the path.

SVN-Revision: 4040

14 years agoCorrect a variable type.
Michihiro NAKAJIMA [Sat, 18 Feb 2012 07:23:36 +0000 (16:23 +0900)] 
Correct a variable type.

14 years agoIssue 243: CAB decompression doesn't work when libarchive build with MSVC2010.
Michihiro NAKAJIMA [Fri, 17 Feb 2012 02:21:24 +0000 (11:21 +0900)] 
Issue 243: CAB decompression doesn't work when libarchive build with MSVC2010.
Prevent unexpected code optimization from MSVC /O2 option.
It made CAB reader fail to decompress LZX.

14 years agoIssue 243: CAB decompression doesn't work when libarchive build with MSVC2010.
Michihiro NAKAJIMA [Fri, 17 Feb 2012 02:21:24 +0000 (11:21 +0900)] 
Issue 243: CAB decompression doesn't work when libarchive build with MSVC2010.
Prevent unexpected code optimization from MSVC /O2 option.
It made CAB reader fail to decompress LZX.

14 years agoFix remaining build failure in agressive warnings.
Michihiro NAKAJIMA [Fri, 17 Feb 2012 05:59:54 +0000 (14:59 +0900)] 
Fix remaining build failure in agressive warnings.

14 years agoMake definitions, which I recently added, in archive.h portable.
Michihiro NAKAJIMA [Fri, 17 Feb 2012 02:09:14 +0000 (11:09 +0900)] 
Make definitions, which I recently added, in archive.h portable.

14 years agoFix build failure in aggressive warnings on msys.
Michihiro NAKAJIMA [Thu, 16 Feb 2012 04:17:12 +0000 (13:17 +0900)] 
Fix build failure in aggressive warnings on msys.

14 years agoFix up remaing work to turn to the current directory before access to the
Michihiro NAKAJIMA [Thu, 16 Feb 2012 03:15:48 +0000 (12:15 +0900)] 
Fix up remaing work to turn to the current directory before access to the
current entry path at directory traversals.

14 years agoFix build failure on linux
Michihiro NAKAJIMA [Wed, 15 Feb 2012 21:13:15 +0000 (06:13 +0900)] 
Fix build failure on linux

14 years agoFix test failure without zlib.
Michihiro NAKAJIMA [Wed, 15 Feb 2012 20:37:10 +0000 (05:37 +0900)] 
Fix test failure without zlib.