]>
git.ipfire.org Git - thirdparty/libarchive.git/log
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.
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.
Brad King [Wed, 11 Jan 2012 13:16:05 +0000 (08:16 -0500)]
Rename isoent_rr_move_dir parameter isoent => curent
The PGI compiler confuses parameter name "isoent" with "struct isoent".
Rename the parameter to "curent" to avoid confusion.
SVN-Revision: 4136
Brad King [Wed, 11 Jan 2012 13:15:14 +0000 (08:15 -0500)]
Replace integer constant LL suffix with cast to int64_t
The LL suffix is not portable. Use an explicit cast instead.
SVN-Revision: 4127
Tim Kientzle [Mon, 23 Jan 2012 05:06:04 +0000 (00:06 -0500)]
Rename read_open_memory2 to read_open_memory_minimal, which is
a bit more descriptive.
SVN-Revision: 4192
Michihiro NAKAJIMA [Wed, 11 Jan 2012 01:02:23 +0000 (20:02 -0500)]
Avoid possibility to pass zero to the first argument of calloc().
Clang Static Analyzer complaned of that.
SVN-Revision: 4121
Andres Mejia [Sun, 5 Feb 2012 20:10:15 +0000 (15:10 -0500)]
Update URL section in test files for RPMs.
Tim Kientzle [Sun, 29 Jan 2012 18:18:35 +0000 (13:18 -0500)]
Issue 234: Fix typos in comments
SVN-Revision: 4214
Andres Mejia [Thu, 2 Feb 2012 22:36:43 +0000 (17:36 -0500)]
Remove duplicate SYNOPSIS section.
SVN-Revision: 4228
Brad King [Wed, 11 Jan 2012 13:15:09 +0000 (08:15 -0500)]
Declare mbstate_t and wcrtomb for Borland
The Borland C++ 5.81 runtime library provides wcrtomb but only the C++
header <cwchar> actually declares the API. Since this is C code we
cannot use the header, so declare it ourselves.
SVN-Revision: 4126
Brad King [Wed, 11 Jan 2012 13:15:03 +0000 (08:15 -0500)]
Implement custom lseek for Borland
Restore Windows 64-bit lseek removed by upstream svn revision 3826
(Cast away __la_lseek(), use _lseeki64() instead, 2011-11-21). We
need it on Borland.
SVN-Revision: 4125
Andres Mejia [Thu, 2 Feb 2012 22:36:25 +0000 (17:36 -0500)]
Add library section for all library function manpages.
SVN-Revision: 4227
Andres Mejia [Thu, 2 Feb 2012 00:46:25 +0000 (19:46 -0500)]
Remove LIBRARY section from manpages.
Using .Lb seems redundant to what NAME section already provides.
SVN-Revision: 4225
Brad King [Wed, 11 Jan 2012 13:14:57 +0000 (08:14 -0500)]
Fix typo in CheckFileOffsetBits
s/Cheking/Checking/
Author: Rolf Eike Beer <eike@sf-mail.de>
SVN-Revision: 4124
Andres Mejia [Sun, 5 Feb 2012 21:04:37 +0000 (16:04 -0500)]
Add generated dist tarball to .gitignore.
Andres Mejia [Sun, 5 Feb 2012 21:02:35 +0000 (16:02 -0500)]
Add generated doc files to .gitignore.
Andres Mejia [Sun, 5 Feb 2012 19:23:31 +0000 (14:23 -0500)]
Add generated files from cmake to .gitignore.
Andres Mejia [Sun, 5 Feb 2012 19:19:10 +0000 (14:19 -0500)]
Add .gitignore file.
Michihiro NAKAJIMA [Thu, 9 Feb 2012 19:49:06 +0000 (04:49 +0900)]
Add a description of 7-Zip into README.
Andres Mejia [Sun, 5 Feb 2012 20:04:09 +0000 (15:04 -0500)]
Update README, pointing to new home for development and issue tracking.
Michihiro NAKAJIMA [Thu, 15 Mar 2012 05:49:37 +0000 (14:49 +0900)]
Issue 249: Uncompressed CAB fails to read subfile when archive has certain structure.
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.
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.
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.
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.
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.
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.
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.
Andres Mejia [Mon, 6 Feb 2012 00:30:37 +0000 (19:30 -0500)]
Fix crypto checks in cmake builds.
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
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
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
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
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
Michihiro NAKAJIMA [Tue, 6 Mar 2012 09:55:18 +0000 (18:55 +0900)]
Issue 247:Unicode filenames inside RAR not working.
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.
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.
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.
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$
Michihiro NAKAJIMA [Sun, 26 Feb 2012 03:16:53 +0000 (12:16 +0900)]
Fix a comparison of file names in ISO images.
Michihiro NAKAJIMA [Sat, 25 Feb 2012 09:38:13 +0000 (18:38 +0900)]
Fix a wrong check on a result of lseek.
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.
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.
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 '/'.
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.
Michihiro NAKAJIMA [Mon, 20 Feb 2012 07:51:40 +0000 (16:51 +0900)]
Properly remove leading slash letters and Windows drive letters in cpio.
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.
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.
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
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.
Michihiro NAKAJIMA [Wed, 15 Feb 2012 20:37:10 +0000 (05:37 +0900)]
Fix test failure without zlib.
Michihiro NAKAJIMA [Wed, 15 Feb 2012 19:27:43 +0000 (04:27 +0900)]
Fix issue 242:libarchive-3.0.3 fails to build with --without-zlib
Michihiro NAKAJIMA [Tue, 14 Feb 2012 22:15:50 +0000 (07:15 +0900)]
Fix issue 241:CAB decompression not 64bit compatible.
Michihiro NAKAJIMA [Sat, 11 Feb 2012 14:42:13 +0000 (23:42 +0900)]
Fix build failure on FreeBSD/powerpc64.
Michihiro NAKAJIMA [Mon, 13 Feb 2012 20:45:06 +0000 (05:45 +0900)]
Fix issue 237.
Properly set a clear error message when archive_{write,read}_set_options failed.
Michihiro NAKAJIMA [Tue, 14 Feb 2012 07:05:25 +0000 (16:05 +0900)]
Fix build failure in aggressive warnings on FreeBSD/amd64.
Michihiro NAKAJIMA [Thu, 9 Feb 2012 20:11:24 +0000 (05:11 +0900)]
Fix remaining build failure on FreeBSD Current.
Michihiro NAKAJIMA [Thu, 9 Feb 2012 15:56:49 +0000 (00:56 +0900)]
Fix build failure in aggressive warnings
Michihiro NAKAJIMA [Thu, 9 Feb 2012 01:32:08 +0000 (10:32 +0900)]
If a zip archive file is corruped, the compression type can be negative and
it can cause a segfault.
Tim Kientzle [Tue, 24 Jan 2012 05:18:00 +0000 (00:18 -0500)]
Don't do direct comparison of timestamps that
are in local time.
SVN-Revision: 4198
Michihiro NAKAJIMA [Wed, 8 Feb 2012 23:45:22 +0000 (08:45 +0900)]
Fix build failure with -Wcast-qual GCC option since it happend on FreeBSD current.
Michihiro NAKAJIMA [Wed, 8 Feb 2012 23:12:29 +0000 (08:12 +0900)]
Fix build failure with -Wmissing-prototypes GCC option since it happend on FreeBSD current.
Michihiro NAKAJIMA [Wed, 8 Feb 2012 22:55:10 +0000 (07:55 +0900)]
Fix build failure with -Wshadow GCC option since it happend on FreeBSD current.
Michihiro NAKAJIMA [Wed, 8 Feb 2012 22:20:28 +0000 (07:20 +0900)]
Fix build failure with -Wextra -Wunused GCC options since it happend on FreeBSD current.
Michihiro NAKAJIMA [Mon, 30 Jan 2012 06:19:37 +0000 (01:19 -0500)]
Merged revision(s) 4216 from trunk:
Issue 236.
bsdtar creates invalid 7zip archives if there are no empty files.
SVN-Revision: 4217
Tim Kientzle [Tue, 24 Jan 2012 06:52:48 +0000 (01:52 -0500)]
Merge fix for Issue 226 from trunk.
SVN-Revision: 4203
Tim Kientzle [Tue, 24 Jan 2012 05:23:53 +0000 (00:23 -0500)]
Issue 225: The seeking Zip reader should fall back on
the filename to determine whether the current file
is a directory if there is not a POSIX mode value stored.
SVN-Revision: 4199
Michihiro NAKAJIMA [Thu, 19 Jan 2012 08:53:30 +0000 (03:53 -0500)]
Issue 224:Mishandling CD9660 images with RockRidge extensions from FreeBSD makefs.
Merge r4181 from trunk.
SVN-Revision: 4182
Tim Kientzle [Fri, 13 Jan 2012 05:32:07 +0000 (00:32 -0500)]
Libarchive 3.0.3
SVN-Revision: 4139
Tim Kientzle [Thu, 12 Jan 2012 06:46:14 +0000 (01:46 -0500)]
Merge r4085 from trunk: Simplify finalizing the file size when
writing files on Windows.
SVN-Revision: 4138
Michihiro NAKAJIMA [Wed, 11 Jan 2012 07:21:25 +0000 (02:21 -0500)]
Issue 223. Revise r4120 and merge r4122 from trunk.
SVN-Revision: 4123
Michihiro NAKAJIMA [Tue, 10 Jan 2012 23:11:02 +0000 (18:11 -0500)]
Issue 223. Merge from r4119 from trunk.
SVN-Revision: 4120
Tim Kientzle [Tue, 10 Jan 2012 07:17:48 +0000 (02:17 -0500)]
Merge fixes for Issue 222 from trunk: Write entry data correctly
when writing sparse files to Pax archives using GNU tar 1.0 sparse format.
SVN-Revision: 4118
Tim Kientzle [Tue, 10 Jan 2012 07:11:46 +0000 (02:11 -0500)]
Merge from trunk: whitespace cleanup.
SVN-Revision: 4117
Tim Kientzle [Tue, 10 Jan 2012 07:10:05 +0000 (02:10 -0500)]
Merge from trunk: Allow building on systems that lack PATH_MAX definition.
SVN-Revision: 4116
Tim Kientzle [Tue, 10 Jan 2012 07:05:12 +0000 (02:05 -0500)]
Merge from trunk: always-true comparison.
SVN-Revision: 4115
Tim Kientzle [Tue, 10 Jan 2012 07:04:23 +0000 (02:04 -0500)]
Merge from trunk: Minor compiler warning cleanup.
SVN-Revision: 4114
Tim Kientzle [Tue, 10 Jan 2012 07:01:29 +0000 (02:01 -0500)]
Record already-merged changes.
SVN-Revision: 4113
Tim Kientzle [Tue, 10 Jan 2012 06:48:26 +0000 (01:48 -0500)]
Record already-merged change.
SVN-Revision: 4112
Tim Kientzle [Tue, 10 Jan 2012 06:44:41 +0000 (01:44 -0500)]
Record already-merged changes.
SVN-Revision: 4111
Tim Kientzle [Tue, 10 Jan 2012 06:42:09 +0000 (01:42 -0500)]
Merge spelling fixes from trunk.
SVN-Revision: 4110
Tim Kientzle [Tue, 10 Jan 2012 06:40:42 +0000 (01:40 -0500)]
Record already-merged change.
SVN-Revision: 4109
Tim Kientzle [Tue, 10 Jan 2012 06:38:49 +0000 (01:38 -0500)]
Record already-merged changes.
SVN-Revision: 4108
Tim Kientzle [Tue, 10 Jan 2012 04:53:50 +0000 (23:53 -0500)]
Merge r4106 to fix Issue 221.
SVN-Revision: 4107
Michihiro NAKAJIMA [Mon, 9 Jan 2012 04:30:31 +0000 (23:30 -0500)]
Merge r4097 from trunk.
SVN-Revision: 4100
Tim Kientzle [Sun, 8 Jan 2012 00:47:52 +0000 (19:47 -0500)]
Merge Ulrich Spoerlein's spelling fixes from trunk.
SVN-Revision: 4095
Tim Kientzle [Sat, 31 Dec 2011 18:54:34 +0000 (13:54 -0500)]
Merge r4050 from trunk to fix Issue 212.
SVN-Revision: 4051
Tim Kientzle [Fri, 30 Dec 2011 23:51:15 +0000 (18:51 -0500)]
Merge r4047 from trunk to fix Issue 218.
SVN-Revision: 4048
Tim Kientzle [Fri, 30 Dec 2011 21:56:37 +0000 (16:56 -0500)]
Merge r4045 from trunk to fix Issue 217.
SVN-Revision: 4046
Michihiro NAKAJIMA [Fri, 30 Dec 2011 19:08:53 +0000 (14:08 -0500)]
Issue 216: bsdtar output truncated.
Merge r4042 from trunk.
SVN-Revision: 4043
Tim Kientzle [Fri, 30 Dec 2011 06:54:03 +0000 (01:54 -0500)]
Issue 214: Don't require MNT_NOATIME
SVN-Revision: 4038
Tim Kientzle [Fri, 30 Dec 2011 06:49:55 +0000 (01:49 -0500)]
Merge from trunk: Don't use copyfile() when it's not available.
SVN-Revision: 4036
Tim Kientzle [Thu, 29 Dec 2011 03:01:55 +0000 (22:01 -0500)]
Require CMake 2.8 and drop the workaround for older versions.
SVN-Revision: 4028
Tim Kientzle [Thu, 29 Dec 2011 02:49:32 +0000 (21:49 -0500)]
Merge from trunk: Use a more portable grep incantation.
SVN-Revision: 4026
Michihiro NAKAJIMA [Wed, 28 Dec 2011 17:00:43 +0000 (12:00 -0500)]
Issue 210. Merge from r4022 from trunk.
SVN-Revision: 4023
Michihiro NAKAJIMA [Wed, 28 Dec 2011 16:41:32 +0000 (11:41 -0500)]
Issue 206. Merge from r4020 from trunk.
SVN-Revision: 4021
Michihiro NAKAJIMA [Tue, 27 Dec 2011 17:10:55 +0000 (12:10 -0500)]
Issue 208: test_write_compress_program hangs.
Merge r4018 from trunk.
SVN-Revision: 4019
Michihiro NAKAJIMA [Mon, 26 Dec 2011 23:44:19 +0000 (18:44 -0500)]
Issue 204: Merge r4014 from trunk.
SVN-Revision: 4015
Michihiro NAKAJIMA [Mon, 26 Dec 2011 20:15:28 +0000 (15:15 -0500)]
Set CMAKE_BUILD_TYPE to "Release".
SVN-Revision: 4013
Michihiro NAKAJIMA [Mon, 26 Dec 2011 19:22:48 +0000 (14:22 -0500)]
Merge r4011 from trunk.
SVN-Revision: 4012