]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agoDo not always compile for ARCHIVE_HASH_* on CMake build system.
Michihiro NAKAJIMA [Mon, 10 May 2010 13:10:28 +0000 (09:10 -0400)] 
Do not always compile for ARCHIVE_HASH_* on CMake build system.
Put the results in the CMake Cache.

SVN-Revision: 2376

16 years agoRewrite the hash function detection. Build an actual test program using
Joerg Sonnenberger [Sun, 9 May 2010 23:48:04 +0000 (19:48 -0400)] 
Rewrite the hash function detection. Build an actual test program using
archive_hash.h and link against libcrypto if needed.

Fixes issue #73 and #86.

SVN-Revision: 2375

16 years agoImprove the sample code in archive_write.3
Tim Kientzle [Sun, 9 May 2010 00:35:34 +0000 (20:35 -0400)] 
Improve the sample code in archive_write.3

SVN-Revision: 2374

16 years agoAdd lzip write filter and --lzip option to bsdtar.
Michihiro NAKAJIMA [Thu, 6 May 2010 02:32:28 +0000 (22:32 -0400)] 
Add lzip write filter and --lzip option to bsdtar.

SVN-Revision: 2373

16 years agoAdd a compatibity test for lzip.
Michihiro NAKAJIMA [Wed, 5 May 2010 06:40:07 +0000 (02:40 -0400)] 
Add a compatibity test for lzip.

SVN-Revision: 2371

16 years agoFor liblzma initialization for lzip, use lzma_raw_decoder() instead
Michihiro NAKAJIMA [Wed, 5 May 2010 06:37:05 +0000 (02:37 -0400)] 
For liblzma initialization for lzip, use lzma_raw_decoder() instead
of lzma_alone_decoder(), because lzma_code() refuse some dictionary
size, which lzip uses.

SVN-Revision: 2370

16 years agoFix comments.
Michihiro NAKAJIMA [Tue, 4 May 2010 14:41:15 +0000 (10:41 -0400)] 
Fix comments.

SVN-Revision: 2369

16 years agoAdd support for lzip (read filter).
Michihiro NAKAJIMA [Tue, 4 May 2010 14:33:46 +0000 (10:33 -0400)] 
Add support for lzip (read filter).

SVN-Revision: 2368

16 years agoRename a variable name from lzma_stram_init to lzma_stream_init_data.
Michihiro NAKAJIMA [Tue, 4 May 2010 13:52:00 +0000 (09:52 -0400)] 
Rename a variable name from lzma_stram_init to lzma_stream_init_data.

SVN-Revision: 2367

16 years agoGive a value to HAVE_GETGRNAM_R and HAVE_GETPWNAM_R.
Michihiro NAKAJIMA [Tue, 4 May 2010 13:40:46 +0000 (09:40 -0400)] 
Give a value to HAVE_GETGRNAM_R and HAVE_GETPWNAM_R.

SVN-Revision: 2366

16 years agoFix build error with liblzma on MSVC.
Michihiro NAKAJIMA [Tue, 4 May 2010 09:54:05 +0000 (05:54 -0400)] 
Fix build error with liblzma on MSVC.

SVN-Revision: 2365

16 years agoRewrite the procedure finding a hardlink target on ISO writer.
Michihiro NAKAJIMA [Mon, 3 May 2010 06:41:03 +0000 (02:41 -0400)] 
Rewrite the procedure finding a hardlink target on ISO writer.

SVN-Revision: 2363

16 years agoCmake updates:
Tim Kientzle [Mon, 3 May 2010 02:55:27 +0000 (22:55 -0400)] 
Cmake updates:
 * Remove optarg, optind checks which are no longer used
 * Remove CreateHardLink{A,W} checks, since these are probed at runtime
 * Add defines for getgrnam_r getpwnam_r

SVN-Revision: 2362

16 years agoFix 'make dist': build/windows no longer exists
Tim Kientzle [Mon, 3 May 2010 02:54:16 +0000 (22:54 -0400)] 
Fix 'make dist': build/windows no longer exists

SVN-Revision: 2361

16 years agoTest that ISO writer can treat the entry which has a wrong path, and
Michihiro NAKAJIMA [Sun, 2 May 2010 13:35:43 +0000 (09:35 -0400)] 
Test that ISO writer can treat the entry which has a wrong path, and
does not change its output.

SVN-Revision: 2360

16 years agoWhile entries are added, return ARCHIVE_FAILED if the circumstance
Michihiro NAKAJIMA [Sun, 2 May 2010 13:20:05 +0000 (09:20 -0400)] 
While entries are added, return ARCHIVE_FAILED if the circumstance
is continuable.

SVN-Revision: 2359

16 years agoTest tar --gid --gname --uid --uname options
Tim Kientzle [Sun, 2 May 2010 06:33:00 +0000 (02:33 -0400)] 
Test tar --gid --gname --uid --uname options
Fix a couple of bugs they uncovered.

SVN-Revision: 2358

16 years agoRemove uid= and gid= options from ISO writer.
Michihiro NAKAJIMA [Sun, 2 May 2010 04:42:56 +0000 (00:42 -0400)] 
Remove uid= and gid= options from ISO writer.

Suggested by: Tim Kientzle

SVN-Revision: 2357

16 years agoTweak the result of comparing identifiers for __archive_rb_*
Michihiro NAKAJIMA [Sun, 2 May 2010 04:15:37 +0000 (00:15 -0400)] 
Tweak the result of comparing identifiers for __archive_rb_*

SVN-Revision: 2356

16 years agoUse ARCHIVE_RB_TREE_FOREACH() macro.
Michihiro NAKAJIMA [Sun, 2 May 2010 04:01:06 +0000 (00:01 -0400)] 
Use ARCHIVE_RB_TREE_FOREACH() macro.
Temporary code caused SEGFAULTS since __archive_rb_tree_iterate() was fixed.

SVN-Revision: 2355

16 years agoMove the private ACL parser declaration out of the public header.
Tim Kientzle [Sun, 2 May 2010 03:54:02 +0000 (23:54 -0400)] 
Move the private ACL parser declaration out of the public header.
It should never have been here in the first place.

SVN-Revision: 2354

16 years agoClarify the explanation of archive_write_finish_entry.
Tim Kientzle [Sun, 2 May 2010 03:51:22 +0000 (23:51 -0400)] 
Clarify the explanation of archive_write_finish_entry.

SVN-Revision: 2353

16 years agoRemove the old manually-maintained Windows build files, now that the
Tim Kientzle [Sun, 2 May 2010 03:50:49 +0000 (23:50 -0400)] 
Remove the old manually-maintained Windows build files, now that the
cmake build system has proven itself.

SVN-Revision: 2352

16 years agoSince extattrs get written to disk at file close, the test here really
Tim Kientzle [Sun, 2 May 2010 03:49:46 +0000 (23:49 -0400)] 
Since extattrs get written to disk at file close, the test here really
needs to verify the result of write_finish_entry.

SVN-Revision: 2351

16 years agoAdd cmake test for EXTATTR_NAMESPACE_USER to fix extattr support on FreeBSD in cmake...
Tim Kientzle [Sun, 2 May 2010 03:48:44 +0000 (23:48 -0400)] 
Add cmake test for EXTATTR_NAMESPACE_USER to fix extattr support on FreeBSD in cmake build.

SVN-Revision: 2350

16 years agoAdd --gid, --gname, --uid, --uname options to tar.
Tim Kientzle [Sat, 1 May 2010 21:18:38 +0000 (17:18 -0400)] 
Add --gid, --gname, --uid, --uname options to tar.

These allow you to override the user/group information both
when creating an archive and when restoring an archive.
I've also reimplemented --numeric-owner to be a synonym
for --gname="" --uname="".

Still needs tests...

SVN-Revision: 2349

16 years ago-vV is a synonym for -v
Tim Kientzle [Sat, 1 May 2010 17:47:01 +0000 (13:47 -0400)] 
-vV is a synonym for -v

SVN-Revision: 2348

16 years agoSome Solaris systems seem to give root a gid of 1.
Tim Kientzle [Sat, 1 May 2010 17:46:26 +0000 (13:46 -0400)] 
Some Solaris systems seem to give root a gid of 1.

SVN-Revision: 2347

16 years agotest cpio -0
Tim Kientzle [Sat, 1 May 2010 16:44:25 +0000 (12:44 -0400)] 
test cpio -0

SVN-Revision: 2346

16 years agoFix archive_rb_iterate for the min/max case.
Joerg Sonnenberger [Fri, 30 Apr 2010 13:59:24 +0000 (09:59 -0400)] 
Fix archive_rb_iterate for the min/max case.

SVN-Revision: 2345

16 years agoUse __archive_rb_tree_init() instead of directly initialization.
Michihiro NAKAJIMA [Thu, 29 Apr 2010 08:47:30 +0000 (04:47 -0400)] 
Use __archive_rb_tree_init() instead of directly initialization.

SVN-Revision: 2343

16 years agoUse custom include guard
Joerg Sonnenberger [Thu, 29 Apr 2010 05:32:43 +0000 (01:32 -0400)] 
Use custom include guard

SVN-Revision: 2342

16 years agoSplit the procedure, which is removing a child from children chain and
Michihiro NAKAJIMA [Thu, 29 Apr 2010 05:07:33 +0000 (01:07 -0400)] 
Split the procedure, which is removing a child from children chain and
red black tree, from isoent_rr_move().

SVN-Revision: 2341

16 years agoAdd some test pattern to ISO writer.
Michihiro NAKAJIMA [Thu, 29 Apr 2010 04:48:31 +0000 (00:48 -0400)] 
Add some test pattern to ISO writer.

- Check adding entries to the same directory(not root directory) works.

SVN-Revision: 2340

16 years agoSwitch red black tree routine to use __archive_rb_* functions.
Michihiro NAKAJIMA [Thu, 29 Apr 2010 03:31:40 +0000 (23:31 -0400)] 
Switch red black tree routine to use __archive_rb_* functions.

SVN-Revision: 2339

16 years agoAdd __archive_ prefix to rb_tree_remove_node().
Michihiro NAKAJIMA [Thu, 29 Apr 2010 03:23:38 +0000 (23:23 -0400)] 
Add __archive_ prefix to rb_tree_remove_node().

SVN-Revision: 2338

16 years agoUnbreak build on Windows.
Michihiro NAKAJIMA [Thu, 29 Apr 2010 03:14:22 +0000 (23:14 -0400)] 
Unbreak build on Windows.

SVN-Revision: 2337

16 years agoHook up archive_rb.[ch] to the build.
Joerg Sonnenberger [Wed, 28 Apr 2010 18:16:39 +0000 (14:16 -0400)] 
Hook up archive_rb.[ch] to the build.

SVN-Revision: 2336

16 years agoPort NetBSD's rb.c. Changes here are:
Joerg Sonnenberger [Wed, 28 Apr 2010 18:05:20 +0000 (14:05 -0400)] 
Port NetBSD's rb.c. Changes here are:
- Use archive_ prefix for types and __archive_ prefix for the functions
  to avoid conflicts with system headers.
- No debug code, statistics and only the "small" code.
- No stdbool.h.

The only real assumption is that pointers have 4 bytes alignment.

SVN-Revision: 2335

16 years agoRewrite the shortcut of finding a parent entry.
Michihiro NAKAJIMA [Wed, 28 Apr 2010 14:25:32 +0000 (10:25 -0400)] 
Rewrite the shortcut of finding a parent entry.

SVN-Revision: 2334

16 years agoRemove unused code.
Michihiro NAKAJIMA [Wed, 28 Apr 2010 13:20:12 +0000 (09:20 -0400)] 
Remove unused code.

SVN-Revision: 2333

16 years agorb_INSERT() can tell us if there is the same entry.
Michihiro NAKAJIMA [Wed, 28 Apr 2010 13:15:17 +0000 (09:15 -0400)] 
rb_INSERT() can tell us if there is the same entry.

SVN-Revision: 2332

16 years agoFix a build failure.
Michihiro NAKAJIMA [Wed, 28 Apr 2010 12:10:20 +0000 (08:10 -0400)] 
Fix a build failure.

SVN-Revision: 2331

16 years agoFix a comment terminater.
Michihiro NAKAJIMA [Wed, 28 Apr 2010 12:03:25 +0000 (08:03 -0400)] 
Fix a comment terminater.

SVN-Revision: 2330

16 years agoCheck if there is the same name entry before inserting a new entry.
Michihiro NAKAJIMA [Wed, 28 Apr 2010 11:58:49 +0000 (07:58 -0400)] 
Check if there is the same name entry before inserting a new entry.

SVN-Revision: 2329

16 years agoMake sure the return value of get_path_component() is valid.
Michihiro NAKAJIMA [Wed, 28 Apr 2010 11:52:20 +0000 (07:52 -0400)] 
Make sure the return value of get_path_component() is valid.

SVN-Revision: 2328

16 years agoDo not access a released memory.
Michihiro NAKAJIMA [Wed, 28 Apr 2010 11:21:35 +0000 (07:21 -0400)] 
Do not access a released memory.

SVN-Revision: 2327

16 years agoRewrite the code building ISO9660/joliet identifiers to use red black tree.
Michihiro NAKAJIMA [Wed, 28 Apr 2010 09:42:48 +0000 (05:42 -0400)] 
Rewrite the code building ISO9660/joliet identifiers to use red black tree.

This change gives a very good performance to ISO writer.

SVN-Revision: 2326

16 years agoNormalize red block tree routine.
Michihiro NAKAJIMA [Wed, 28 Apr 2010 05:47:54 +0000 (01:47 -0400)] 
Normalize red block tree routine.

SVN-Revision: 2325

16 years agoInitial implement of red black tree to speed up making ISO image with
Michihiro NAKAJIMA [Wed, 28 Apr 2010 04:37:53 +0000 (00:37 -0400)] 
Initial implement of red black tree to speed up making ISO image with
many entries(about over 100K) in a directory.
In my environment this is twice as fast as previous way.

SVN-Revision: 2324

16 years agoRemove relaxed-filenames option.
Michihiro NAKAJIMA [Tue, 27 Apr 2010 11:16:42 +0000 (07:16 -0400)] 
Remove relaxed-filenames option.

SVN-Revision: 2321

16 years agoSpeed up a lot of directory traversal.
Michihiro NAKAJIMA [Tue, 27 Apr 2010 07:43:56 +0000 (03:43 -0400)] 
Speed up a lot of directory traversal.

This change is one of fixing issue 81 but still laying it.

SVN-Revision: 2320

16 years agoRemove an allow-pvd-lowercase option.
Michihiro NAKAJIMA [Tue, 27 Apr 2010 06:09:03 +0000 (02:09 -0400)] 
Remove an allow-pvd-lowercase option.

SVN-Revision: 2319

16 years agoUnbreak build on the system which does not have zlib.
Michihiro NAKAJIMA [Tue, 27 Apr 2010 05:19:48 +0000 (01:19 -0400)] 
Unbreak build on the system which does not have zlib.

SVN-Revision: 2318

16 years agoClean up the code finding a child from its parent directory.
Michihiro NAKAJIMA [Tue, 27 Apr 2010 04:43:26 +0000 (00:43 -0400)] 
Clean up the code finding a child from its parent directory.

SVN-Revision: 2317

16 years agoMake sure that fd has a valid value.
Joerg Sonnenberger [Mon, 26 Apr 2010 20:26:40 +0000 (16:26 -0400)] 
Make sure that fd has a valid value.

SVN-Revision: 2316

16 years agoMove isoent_find_entry() to proper place for maintenance.
Michihiro NAKAJIMA [Mon, 26 Apr 2010 12:55:59 +0000 (08:55 -0400)] 
Move isoent_find_entry() to proper place for maintenance.

SVN-Revision: 2315

16 years agoFix memory leaks.
Michihiro NAKAJIMA [Mon, 26 Apr 2010 09:47:20 +0000 (05:47 -0400)] 
Fix memory leaks.

SVN-Revision: 2313

16 years agoThe type of a zisofs option is now boolean.
Michihiro NAKAJIMA [Mon, 26 Apr 2010 05:03:58 +0000 (01:03 -0400)] 
The type of a zisofs option is now boolean.

SVN-Revision: 2310

16 years agoRemove an allow-period option.
Michihiro NAKAJIMA [Mon, 26 Apr 2010 04:58:29 +0000 (00:58 -0400)] 
Remove an allow-period option.

Suggested by : Tim Kientzle

SVN-Revision: 2309

16 years agoadd test_filter_count to cmake... dual build frameworks--. thanks to ggcueroad for...
Brian Harring [Mon, 26 Apr 2010 03:27:41 +0000 (23:27 -0400)] 
add test_filter_count to cmake... dual build frameworks--.  thanks to ggcueroad for the heads up.

SVN-Revision: 2303

16 years agoRemove an allow-sharp-tilde option.
Michihiro NAKAJIMA [Mon, 26 Apr 2010 03:26:04 +0000 (23:26 -0400)] 
Remove an allow-sharp-tilde option.

Suggested by : Tim Kientzle

SVN-Revision: 2302

16 years agoRemove an allow-multidot option.
Michihiro NAKAJIMA [Mon, 26 Apr 2010 03:20:42 +0000 (23:20 -0400)] 
Remove an allow-multidot option.

Suggested by : Tim Kientzle

SVN-Revision: 2301

16 years agoRemove an allow-lowercase option.
Michihiro NAKAJIMA [Mon, 26 Apr 2010 03:14:56 +0000 (23:14 -0400)] 
Remove an allow-lowercase option.

Suggested by : Tim Kientzle

SVN-Revision: 2300

16 years agoRemove an allow-ldot option.
Michihiro NAKAJIMA [Mon, 26 Apr 2010 03:10:26 +0000 (23:10 -0400)] 
Remove an allow-ldot option.

Suggested by : Tim Kientzle

SVN-Revision: 2299

16 years agoadd the test implementation I missed in the last commit
Brian Harring [Mon, 26 Apr 2010 01:54:56 +0000 (21:54 -0400)] 
add the test implementation I missed in the last commit

SVN-Revision: 2295

16 years agofix archive_filter_count to actually work; implementation of this aparently was never...
Brian Harring [Mon, 26 Apr 2010 01:44:24 +0000 (21:44 -0400)] 
fix archive_filter_count to actually work; implementation of this aparently was never finished, vtable stubs never had any implementation for this functionality, thus an instant segfault on invocatoin

SVN-Revision: 2294

16 years agoget_parent_and_basename() is used when HAVE_ZLIB_H(for zisofs support) is defined.
Michihiro NAKAJIMA [Sun, 25 Apr 2010 13:23:30 +0000 (09:23 -0400)] 
get_parent_and_basename() is used when HAVE_ZLIB_H(for zisofs support) is defined.

SVN-Revision: 2293

16 years agoUnbreak build on cygwin.
Michihiro NAKAJIMA [Sun, 25 Apr 2010 13:13:52 +0000 (09:13 -0400)] 
Unbreak build on cygwin.

SVN-Revision: 2292

16 years agoTo be simple, remove zisofs-exclude option.
Michihiro NAKAJIMA [Sun, 25 Apr 2010 10:00:12 +0000 (06:00 -0400)] 
To be simple, remove zisofs-exclude option.

SVN-Revision: 2278

16 years agoFix an ISO writer test failure, which cannot write correct UCS2 identifications,...
Michihiro NAKAJIMA [Sun, 25 Apr 2010 09:27:19 +0000 (05:27 -0400)] 
Fix an ISO writer test failure, which cannot write correct UCS2 identifications, on Windows.

SVN-Revision: 2276

16 years agoTo be simple, remove zisofs=indirect option.
Michihiro NAKAJIMA [Sun, 25 Apr 2010 09:14:57 +0000 (05:14 -0400)] 
To be simple, remove zisofs=indirect option.

Suggested by: Tim Kientzle

SVN-Revision: 2275

16 years agoUnbreak build on Visual Studio.
Michihiro NAKAJIMA [Sun, 25 Apr 2010 08:34:33 +0000 (04:34 -0400)] 
Unbreak build on Visual Studio.

SVN-Revision: 2272

16 years agoSort the list of long options.
Tim Kientzle [Sun, 25 Apr 2010 06:04:56 +0000 (02:04 -0400)] 
Sort the list of long options.

SVN-Revision: 2271

16 years agoMerge r2250:
Joerg Sonnenberger [Fri, 23 Apr 2010 20:37:10 +0000 (16:37 -0400)] 
Merge r2250:
Reorder sections to canonical order. Escape backslashes.

SVN-Revision: 2270

16 years agoOnly include the FreeBSD-style extended attribute support, if
Joerg Sonnenberger [Mon, 19 Apr 2010 22:27:50 +0000 (18:27 -0400)] 
Only include the FreeBSD-style extended attribute support, if
EXTATTR_NAMESPACE_USER is defined. It is missing on FreeBSD 4 and
DragonFly. Reported by Antonio Huete Jimenez as NetBSD's pkg/43175.

SVN-Revision: 2269

16 years agothis could stand review, but should be right; setting ret to ARCHIVE_FAILED here...
Brian Harring [Mon, 19 Apr 2010 05:24:01 +0000 (01:24 -0400)] 
this could stand review, but should be right; setting ret to ARCHIVE_FAILED here is a pointless no op so archive_format_gnutar_header assignment shortly after wipes the ret... potentially this should be set to a warn and then combined w/ the other returns

SVN-Revision: 2268

16 years agotypo in the code assigning to the wrong var; realistically ret2 probably isn't needed...
Brian Harring [Mon, 19 Apr 2010 05:13:04 +0000 (01:13 -0400)] 
typo in the code assigning to the wrong var; realistically ret2 probably isn't needed, but preserving the original intent (just fixing it to work)

SVN-Revision: 2267

16 years agos/ /\t/g to match normal formatting of other sources
Brian Harring [Mon, 19 Apr 2010 05:07:15 +0000 (01:07 -0400)] 
s/        /\t/g to match normal formatting of other sources

SVN-Revision: 2266

16 years agoIf the local filesystem is set up for NFS4 ACLs, then the POSIX.1e ACL test should...
Tim Kientzle [Sun, 18 Apr 2010 23:42:28 +0000 (19:42 -0400)] 
If the local filesystem is set up for NFS4 ACLs, then the POSIX.1e ACL test should be skipped.

SVN-Revision: 2265

16 years agoBasic implementation of a GNU tar-compatible writer. This uses
Tim Kientzle [Sun, 18 Apr 2010 05:56:53 +0000 (01:56 -0400)] 
Basic implementation of a GNU tar-compatible writer.  This uses
the header conventions used by GNU tar 1.13 and later.  In particular:
 * name and linkname are permitted to fill their respective fields
   (Earlier GNU tar guaranteed a trailing null)
 * mode field does not include the file type
   (Earlier GNU tar included file type bits in the mode field)
 * Most fields are filled with leading '0' characters
   (Earlier GNU tar used leading spaces)

SVN-Revision: 2264

16 years agoDon't set atime and ctime unless the header actually specifies them.
Tim Kientzle [Sun, 18 Apr 2010 05:36:35 +0000 (01:36 -0400)] 
Don't set atime and ctime unless the header actually specifies them.

SVN-Revision: 2263

16 years agoIntroduce a shared __archive_write_nulls() method and remove
Tim Kientzle [Sun, 18 Apr 2010 01:20:13 +0000 (21:20 -0400)] 
Introduce a shared __archive_write_nulls() method and remove
the duplicate copies of this function.

SVN-Revision: 2262

16 years agoReorder sections to canonical order. Escape backslashes.
Joerg Sonnenberger [Mon, 12 Apr 2010 19:06:51 +0000 (15:06 -0400)] 
Reorder sections to canonical order. Escape backslashes.

SVN-Revision: 2250

16 years agoReorder sections to canonical order.
Joerg Sonnenberger [Mon, 12 Apr 2010 19:06:23 +0000 (15:06 -0400)] 
Reorder sections to canonical order.

SVN-Revision: 2249

16 years agowrong file path, should be keep_newer_files not keep_newer
Brian Harring [Mon, 12 Apr 2010 10:14:10 +0000 (06:14 -0400)] 
wrong file path, should be keep_newer_files not keep_newer

SVN-Revision: 2247

16 years agoTest tar -n
Tim Kientzle [Mon, 12 Apr 2010 02:37:06 +0000 (22:37 -0400)] 
Test tar -n

SVN-Revision: 2244

16 years ago--keep-newer-files is the correct option name.
Tim Kientzle [Mon, 12 Apr 2010 02:11:28 +0000 (22:11 -0400)] 
--keep-newer-files is the correct option name.

SVN-Revision: 2243

16 years agoCorrect the documentation: -X does not obey --null
Tim Kientzle [Mon, 12 Apr 2010 02:04:05 +0000 (22:04 -0400)] 
Correct the documentation: -X does not obey --null

SVN-Revision: 2242

16 years agoTest for tar -U and documentation corrections.
Tim Kientzle [Mon, 12 Apr 2010 01:58:50 +0000 (21:58 -0400)] 
Test for tar -U and documentation corrections.

SVN-Revision: 2241

16 years agoTest tar -O
Tim Kientzle [Mon, 12 Apr 2010 00:20:02 +0000 (20:20 -0400)] 
Test tar -O

SVN-Revision: 2240

16 years agoIf it's not an error to skip an older file, then don't set an error message.
Tim Kientzle [Mon, 12 Apr 2010 00:17:26 +0000 (20:17 -0400)] 
If it's not an error to skip an older file, then don't set an error message.

SVN-Revision: 2239

16 years agoFix tar -k by making it not an error if you specify
Tim Kientzle [Sun, 11 Apr 2010 23:53:29 +0000 (19:53 -0400)] 
Fix tar -k by making it not an error if you specify
ARCHIVE_EXTRACT_NO_OVERWRITE and the file already exists.

SVN-Revision: 2238

16 years agoRemove a debugging shim.
Tim Kientzle [Sun, 11 Apr 2010 23:38:59 +0000 (19:38 -0400)] 
Remove a debugging shim.

SVN-Revision: 2237

16 years agoTest -H and -L options to tar.
Tim Kientzle [Sun, 11 Apr 2010 23:36:59 +0000 (19:36 -0400)] 
Test -H and -L options to tar.

SVN-Revision: 2236

16 years agoDon't try to write a body if libarchive won't accept it.
Tim Kientzle [Sun, 11 Apr 2010 22:46:21 +0000 (18:46 -0400)] 
Don't try to write a body if libarchive won't accept it.

SVN-Revision: 2235

16 years agoFix tar --keep-newer
Tim Kientzle [Sun, 11 Apr 2010 21:29:32 +0000 (17:29 -0400)] 
Fix tar --keep-newer

This solution isn't ideal; bsdtar does the right thing now
(doesn't overwrite and exits without error) but it should
display a warning message about the failure to extract
the file.

SVN-Revision: 2234

16 years agoIf we're not creating the file because of the NEWER test, tell the
Tim Kientzle [Sun, 11 Apr 2010 21:18:09 +0000 (17:18 -0400)] 
If we're not creating the file because of the NEWER test, tell the
writer not to bother sending us the file data.

SVN-Revision: 2233

16 years agoDon't bother trying to write data into a zero-sized file.
Tim Kientzle [Sun, 11 Apr 2010 21:16:38 +0000 (17:16 -0400)] 
Don't bother trying to write data into a zero-sized file.

SVN-Revision: 2232

16 years agoIssue 83: Directory timestamps truncated to microsecond resolution.
Tim Kientzle [Sun, 11 Apr 2010 19:11:36 +0000 (15:11 -0400)] 
Issue 83:  Directory timestamps truncated to microsecond resolution.

This patch reworks the time-restore logic to use the same
system calls in both the end-of-archive cleanup pass and
the regular file restore case.  This ensures consistent
timestamp restores for both cases.  It also isolates the
BSD birthtime support into one place so it will be consistently
applied.

Submitted by: a.bocaniciu  computer.org

SVN-Revision: 2231