rsync/rsync.git
17 years agoMy adaptation of Matt's cleanup of the delete_item() code.
Wayne Davison [Sat, 11 Nov 2006 07:03:57 +0000 (07:03 +0000)]
My adaptation of Matt's cleanup of the delete_item() code.
The new code splits out part of the directory deletion into
its own function, delete_dir_contents(), and it outputs more
warnings when something could not be deleted.

17 years agoDocment that --max-delete=0 now works.
Wayne Davison [Sat, 11 Nov 2006 05:09:22 +0000 (05:09 +0000)]
Docment that --max-delete=0 now works.

17 years agoDie if we sent --max-delete=0 to a receiving side that is too old.
Wayne Davison [Sat, 11 Nov 2006 05:09:17 +0000 (05:09 +0000)]
Die if we sent --max-delete=0 to a receiving side that is too old.

17 years agoAllow --max-delete=0 (zero used to be ignored).
Wayne Davison [Sat, 11 Nov 2006 05:09:14 +0000 (05:09 +0000)]
Allow --max-delete=0 (zero used to be ignored).

17 years agoIncreased the PROTOCOL_VERSION to 30.
Wayne Davison [Sat, 11 Nov 2006 05:09:10 +0000 (05:09 +0000)]
Increased the PROTOCOL_VERSION to 30.

17 years agoMention another internal change.
Wayne Davison [Fri, 10 Nov 2006 15:39:03 +0000 (15:39 +0000)]
Mention another internal change.

17 years agoTest --del too.
Wayne Davison [Fri, 10 Nov 2006 15:36:15 +0000 (15:36 +0000)]
Test --del too.

17 years agoFixed the hard-linking of symlinks test (we need to use a symlink
Wayne Davison [Fri, 10 Nov 2006 07:49:02 +0000 (07:49 +0000)]
Fixed the hard-linking of symlinks test (we need to use a symlink
to a non-existent file for the test to work right).

17 years agoChanged how we deal with the alternate-dest directory because
Wayne Davison [Fri, 10 Nov 2006 07:37:51 +0000 (07:37 +0000)]
Changed how we deal with the alternate-dest directory because
some systems change the time on a directory that gets moved.

17 years agoChanged two more references to "st" to "real_st" in the dir-handling
Wayne Davison [Fri, 10 Nov 2006 07:17:20 +0000 (07:17 +0000)]
Changed two more references to "st" to "real_st" in the dir-handling
code.

17 years ago- Fixed a problem where the real stat struct for a newly-created
Wayne Davison [Fri, 10 Nov 2006 07:13:21 +0000 (07:13 +0000)]
- Fixed a problem where the real stat struct for a newly-created
  root-of-transfer directory could get overwritten by the check
  for basis dirs.
- Fixed a potential problem where the stat struct for a new dir
  could get passed uninitialized to delete_in_dir().

17 years agoIf the OS can't hard-link a symlink, tweak the expected output
Wayne Davison [Fri, 10 Nov 2006 06:27:35 +0000 (06:27 +0000)]
If the OS can't hard-link a symlink, tweak the expected output
when using --link-dest.

17 years agoMention latest bug fixes.
Wayne Davison [Fri, 10 Nov 2006 05:07:08 +0000 (05:07 +0000)]
Mention latest bug fixes.

17 years agoChanged to reflect new (more correct) output of what updating is
Wayne Davison [Fri, 10 Nov 2006 05:07:05 +0000 (05:07 +0000)]
Changed to reflect new (more correct) output of what updating is
happening.

17 years agoImproved to test --link-dest (when hard-linking of devices works).
Wayne Davison [Fri, 10 Nov 2006 05:07:02 +0000 (05:07 +0000)]
Improved to test --link-dest (when hard-linking of devices works).

17 years agoAllow all itemize types to change all-dots (no changes) into spaces.
Wayne Davison [Fri, 10 Nov 2006 05:06:59 +0000 (05:06 +0000)]
Allow all itemize types to change all-dots (no changes) into spaces.

17 years ago- Improved try_dests_non() so that it works with all non-regular
Wayne Davison [Fri, 10 Nov 2006 05:06:56 +0000 (05:06 +0000)]
- Improved try_dests_non() so that it works with all non-regular
  files (including dirs).
- Changed the directory-creating code to call try_dests_non() when a
  --*-dest option is used.
- Revamped the device/special-files code to have the same logic as
  the symlink code, making it both simpler and more correct.
- All the above makes us output changes for all items consistently
  when a --*-dest option is used.
- Fixed an output bug in try_dests_reg() and try_dests_non() when
  -ii is enabled (we use to fail to output unchanged files).

17 years agoAdded flag ITEM_MATCHED.
Wayne Davison [Fri, 10 Nov 2006 05:06:53 +0000 (05:06 +0000)]
Added flag ITEM_MATCHED.

17 years agoChanged strcat() calls to strlcat().
Wayne Davison [Fri, 10 Nov 2006 03:34:51 +0000 (03:34 +0000)]
Changed strcat() calls to strlcat().

17 years agoDisable POPT_WCHAR_HACK for now.
Wayne Davison [Thu, 9 Nov 2006 02:55:32 +0000 (02:55 +0000)]
Disable POPT_WCHAR_HACK for now.

17 years agoGot rid of type-casting into isFOO() and toFOO() functions by
Wayne Davison [Thu, 9 Nov 2006 02:39:29 +0000 (02:39 +0000)]
Got rid of type-casting into isFOO() and toFOO() functions by
using static inline functions that take a signed char pointer.

17 years agoImproved the vmefail() code.
Wayne Davison [Thu, 9 Nov 2006 02:37:38 +0000 (02:37 +0000)]
Improved the vmefail() code.

17 years agoFixed a problem with the xstrdup() change.
Wayne Davison [Thu, 9 Nov 2006 02:36:03 +0000 (02:36 +0000)]
Fixed a problem with the xstrdup() change.

17 years agoGet rid of the last strcpy() call by using an static inline function.
Wayne Davison [Thu, 9 Nov 2006 02:34:17 +0000 (02:34 +0000)]
Get rid of the last strcpy() call by using an static inline function.

17 years agoUse a new isSpace() inline function to call isspace() safely
Wayne Davison [Thu, 9 Nov 2006 02:14:38 +0000 (02:14 +0000)]
Use a new isSpace() inline function to call isspace() safely
when using a signed character pointer.

17 years agoNeed to include lib/snprintf.o when building wildtest.
Wayne Davison [Thu, 9 Nov 2006 01:58:28 +0000 (01:58 +0000)]
Need to include lib/snprintf.o when building wildtest.

17 years agoChanged _ABS to be defined as MY_ABS.
Wayne Davison [Thu, 9 Nov 2006 01:55:17 +0000 (01:55 +0000)]
Changed _ABS to be defined as MY_ABS.

17 years agoGot rid of code to twiddle _ABS.
Wayne Davison [Thu, 9 Nov 2006 01:54:59 +0000 (01:54 +0000)]
Got rid of code to twiddle _ABS.

17 years agoMoved definition of DBL_EPSILON.
Wayne Davison [Thu, 9 Nov 2006 01:51:57 +0000 (01:51 +0000)]
Moved definition of DBL_EPSILON.

17 years agoTry a full prototype for alloca() for those systems that need it.
Wayne Davison [Thu, 9 Nov 2006 01:34:36 +0000 (01:34 +0000)]
Try a full prototype for alloca() for those systems that need it.

17 years ago- Define snprintf() when needed.
Wayne Davison [Thu, 9 Nov 2006 01:26:27 +0000 (01:26 +0000)]
- Define snprintf() when needed.
- Improved the compatibility of the standard includes.

17 years agoThe Mac version of GCC can now handle __attribute__ .
Wayne Davison [Thu, 9 Nov 2006 01:07:35 +0000 (01:07 +0000)]
The Mac version of GCC can now handle __attribute__ .

17 years agoRolling over the NEWS file for the next version.
Wayne Davison [Thu, 9 Nov 2006 01:06:30 +0000 (01:06 +0000)]
Rolling over the NEWS file for the next version.

17 years agoChange the version for new CVS work.
Wayne Davison [Thu, 9 Nov 2006 00:59:58 +0000 (00:59 +0000)]
Change the version for new CVS work.

17 years ago- Upgraded popt to version 1.10.2.
Wayne Davison [Thu, 9 Nov 2006 00:57:55 +0000 (00:57 +0000)]
- Upgraded popt to version 1.10.2.
- Modified all sprintf() and strcpy() calls to use snprintf()
  and strlcpy().

17 years agoPreparing for release of 2.6.9
Wayne Davison [Tue, 7 Nov 2006 04:41:35 +0000 (04:41 +0000)]
Preparing for release of 2.6.9

17 years agoModified to recognize FreeBSD's setfacl command.
Wayne Davison [Sat, 4 Nov 2006 00:18:49 +0000 (00:18 +0000)]
Modified to recognize FreeBSD's setfacl command.

17 years agoUpdated to the version dated 2006-07-02.
Wayne Davison [Thu, 2 Nov 2006 02:01:25 +0000 (02:01 +0000)]
Updated to the version dated 2006-07-02.

17 years agoNeed to include netinet/tcp.h to get TCP_NODELAY defined.
Wayne Davison [Tue, 31 Oct 2006 19:21:57 +0000 (19:21 +0000)]
Need to include netinet/tcp.h to get TCP_NODELAY defined.

17 years agoMention the addition of the fake-super.diff patch.
Wayne Davison [Sat, 28 Oct 2006 21:22:26 +0000 (21:22 +0000)]
Mention the addition of the fake-super.diff patch.

17 years agoDon't put backslashes before the dashes in " -- ".
Wayne Davison [Fri, 27 Oct 2006 17:51:21 +0000 (17:51 +0000)]
Don't put backslashes before the dashes in " -- ".

17 years agoMention the fix for bug #4079.
Wayne Davison [Fri, 27 Oct 2006 17:29:09 +0000 (17:29 +0000)]
Mention the fix for bug #4079.

17 years agoMention WIFEXITED() change.
Wayne Davison [Thu, 26 Oct 2006 19:19:23 +0000 (19:19 +0000)]
Mention WIFEXITED() change.

17 years agoMention Mac OS X xattr work.
Wayne Davison [Thu, 26 Oct 2006 17:22:15 +0000 (17:22 +0000)]
Mention Mac OS X xattr work.

17 years agoPreparing for release of 2.6.9pre3
Wayne Davison [Thu, 26 Oct 2006 17:06:41 +0000 (17:06 +0000)]
Preparing for release of 2.6.9pre3

17 years agoRun tweak_manpage_dashes on the man pages we generate.
Wayne Davison [Tue, 24 Oct 2006 16:17:31 +0000 (16:17 +0000)]
Run tweak_manpage_dashes on the man pages we generate.

17 years agoUndo temporary changes used for build-farm testing of ACL patch.
Wayne Davison [Tue, 24 Oct 2006 15:09:57 +0000 (15:09 +0000)]
Undo temporary changes used for build-farm testing of ACL patch.

17 years agoAdded a define for WIFEXITED() that is used if one is missing.
Wayne Davison [Tue, 24 Oct 2006 03:31:30 +0000 (03:31 +0000)]
Added a define for WIFEXITED() that is used if one is missing.

17 years agoDocument the --no-motd option.
Wayne Davison [Tue, 24 Oct 2006 00:56:46 +0000 (00:56 +0000)]
Document the --no-motd option.

17 years agoDocument the --no-motd option, with a caveat on how it can also
Wayne Davison [Tue, 24 Oct 2006 00:36:46 +0000 (00:36 +0000)]
Document the --no-motd option, with a caveat on how it can also
hide the module listing.

17 years agoObey the new --no-motd option.
Wayne Davison [Tue, 24 Oct 2006 00:36:42 +0000 (00:36 +0000)]
Obey the new --no-motd option.

17 years agoAdded the --no-motd option to silence just the text output at the
Wayne Davison [Tue, 24 Oct 2006 00:36:38 +0000 (00:36 +0000)]
Added the --no-motd option to silence just the text output at the
start of a daemon transfer.

17 years agoPost-process manpages with the tweak_manpage_dashes perl script.
Wayne Davison [Tue, 24 Oct 2006 00:33:32 +0000 (00:33 +0000)]
Post-process manpages with the tweak_manpage_dashes perl script.

17 years agoRun patch with -t so that it doesn't ask any questions.
Wayne Davison [Tue, 24 Oct 2006 00:24:56 +0000 (00:24 +0000)]
Run patch with -t so that it doesn't ask any questions.

17 years agoA perl script that does appropriate backslash escaping of '-' chars
Wayne Davison [Tue, 24 Oct 2006 00:09:18 +0000 (00:09 +0000)]
A perl script that does appropriate backslash escaping of '-' chars
in manpages.

17 years ago- Fixed an error-handling path in try_dests_reg().
Wayne Davison [Sun, 22 Oct 2006 22:36:36 +0000 (22:36 +0000)]
- Fixed an error-handling path in try_dests_reg().
- Added a comment.

17 years agoUse "test" instead of "[ ... ]" for better portability.
Wayne Davison [Sun, 22 Oct 2006 07:29:21 +0000 (07:29 +0000)]
Use "test" instead of "[ ... ]" for better portability.

17 years agoAdded missing cleanup of empty ACL files.
Wayne Davison [Sun, 22 Oct 2006 07:18:21 +0000 (07:18 +0000)]
Added missing cleanup of empty ACL files.

17 years agoChange the unpatch code for NetBSD.
Wayne Davison [Sun, 22 Oct 2006 04:26:59 +0000 (04:26 +0000)]
Change the unpatch code for NetBSD.

17 years agoTemporary changes to have the build-farm configure and build
Wayne Davison [Sun, 22 Oct 2006 03:17:45 +0000 (03:17 +0000)]
Temporary changes to have the build-farm configure and build
the ACL version of rsync (patched in via patches/acls.diff).

17 years agoMention the fix that lets a push now override the partial-dir exclude.
Wayne Davison [Wed, 18 Oct 2006 05:20:05 +0000 (05:20 +0000)]
Mention the fix that lets a push now override the partial-dir exclude.

17 years agoThe server should not be adding an assumed filter rule based on the
Wayne Davison [Wed, 18 Oct 2006 05:15:35 +0000 (05:15 +0000)]
The server should not be adding an assumed filter rule based on the
partial-dir setting (since the client is sending us the rules).

17 years agoAdded a risk filter for the partial-dir since we use --delete-after.
Wayne Davison [Wed, 18 Oct 2006 05:14:10 +0000 (05:14 +0000)]
Added a risk filter for the partial-dir since we use --delete-after.

17 years agoStop disabling the RSYNC_PARTIAL_DIR environment variable now that
Wayne Davison [Wed, 18 Oct 2006 04:46:26 +0000 (04:46 +0000)]
Stop disabling the RSYNC_PARTIAL_DIR environment variable now that
there is a newer rsync on samba.org.

17 years agoMake sure the new link_dest_used value gets zeroed on init.
Wayne Davison [Tue, 17 Oct 2006 18:49:04 +0000 (18:49 +0000)]
Make sure the new link_dest_used value gets zeroed on init.

17 years ago- Fixed a compile problem ("len" not defined) in inet_ntop4().
Wayne Davison [Mon, 16 Oct 2006 18:11:24 +0000 (18:11 +0000)]
- Fixed a compile problem ("len" not defined) in inet_ntop4().
- Replaced sprintf() with snprintf() in inet_ntop6().

17 years ago- Die if we can't edit the release date into NEWS or OLDNEWS.
Wayne Davison [Sun, 15 Oct 2006 21:44:15 +0000 (21:44 +0000)]
- Die if we can't edit the release date into NEWS or OLDNEWS.
- Don't remove any *pre*diff* files until the final release.

17 years agoImproved a comment.
Wayne Davison [Sun, 15 Oct 2006 15:57:27 +0000 (15:57 +0000)]
Improved a comment.

17 years agoImproved a couple existing items.
Wayne Davison [Sun, 15 Oct 2006 15:49:31 +0000 (15:49 +0000)]
Improved a couple existing items.

17 years agoUse the new case_N.h file to make sure that our cleanup_step case
Wayne Davison [Sun, 15 Oct 2006 15:43:26 +0000 (15:43 +0000)]
Use the new case_N.h file to make sure that our cleanup_step case
statements never get out of sequence when the code changes.

17 years agoA helper file for cleanup.c.
Wayne Davison [Sun, 15 Oct 2006 15:42:01 +0000 (15:42 +0000)]
A helper file for cleanup.c.

17 years agoNow that samba.org has a modern rsync, we can go back to using
Wayne Davison [Sun, 15 Oct 2006 05:04:59 +0000 (05:04 +0000)]
Now that samba.org has a modern rsync, we can go back to using
hard-links on the moved files and use rsync to effect the hard-
links on the remote system (which will make a future transfer
more efficient in the absense of --detect-renamed).

17 years agoPreparing for release of 2.6.9pre2
Wayne Davison [Sat, 14 Oct 2006 20:35:17 +0000 (20:35 +0000)]
Preparing for release of 2.6.9pre2

17 years agoUse the MAX_RENAMES_DIGITS define in the relevant snprintf().
Wayne Davison [Sat, 14 Oct 2006 20:31:33 +0000 (20:31 +0000)]
Use the MAX_RENAMES_DIGITS define in the relevant snprintf().

17 years agoImproved the description of the code-checker work..
Wayne Davison [Sat, 14 Oct 2006 20:30:43 +0000 (20:30 +0000)]
Improved the description of the code-checker work..

17 years agoUpdated the news about the exit_cleanup() improvement.
Wayne Davison [Sat, 14 Oct 2006 20:01:22 +0000 (20:01 +0000)]
Updated the news about the exit_cleanup() improvement.

17 years agoImproved the _exit_cleanup() function to handle potential recursions
Wayne Davison [Sat, 14 Oct 2006 19:58:52 +0000 (19:58 +0000)]
Improved the _exit_cleanup() function to handle potential recursions
back to the function via the calls that it is making.  The new code
treats each recursion back into the function as an opportunity to
take up where we left off (skipping whatever step just failed).

17 years agoGot rid of EXIT_OR_RETURN() macro again -- switching to a better
Wayne Davison [Sat, 14 Oct 2006 18:51:21 +0000 (18:51 +0000)]
Got rid of EXIT_OR_RETURN() macro again -- switching to a better
recursion-prevention heuristic in _exit_cleanup().

17 years agoThe cleanup code that handles moving the temp file to the partial
Wayne Davison [Sat, 14 Oct 2006 02:29:29 +0000 (02:29 +0000)]
The cleanup code that handles moving the temp file to the partial
file needed to check that cleanup_fname was not NULL to prevent
any possibility of a recursion starting into that code again.

17 years agoMention the latest fixes and internal changes.
Wayne Davison [Sat, 14 Oct 2006 02:02:47 +0000 (02:02 +0000)]
Mention the latest fixes and internal changes.

17 years agoGot rid of the recent paranoid length check because it didn't help
Wayne Davison [Sat, 14 Oct 2006 01:17:36 +0000 (01:17 +0000)]
Got rid of the recent paranoid length check because it didn't help
to silence a code-checker warning.

17 years agoRestore build order back to normal.
Wayne Davison [Sat, 14 Oct 2006 01:15:16 +0000 (01:15 +0000)]
Restore build order back to normal.

17 years agoChanged sprintf() calls to snprintf().
Wayne Davison [Fri, 13 Oct 2006 23:46:32 +0000 (23:46 +0000)]
Changed sprintf() calls to snprintf().

17 years agoTurned an sprintf() call into snprintf().
Wayne Davison [Fri, 13 Oct 2006 23:42:52 +0000 (23:42 +0000)]
Turned an sprintf() call into snprintf().

17 years ago- Changed some sprintf() calls to snprintf() calls.
Wayne Davison [Fri, 13 Oct 2006 23:38:14 +0000 (23:38 +0000)]
- Changed some sprintf() calls to snprintf() calls.
- Changed two last strcpy() calls to strlcpy() calls.

17 years agoChanged sprintf() calls to snprintf() calls.
Wayne Davison [Fri, 13 Oct 2006 23:35:53 +0000 (23:35 +0000)]
Changed sprintf() calls to snprintf() calls.

17 years agoChanged strcpy() calls into memcpy() calls.
Wayne Davison [Fri, 13 Oct 2006 23:17:37 +0000 (23:17 +0000)]
Changed strcpy() calls into memcpy() calls.

17 years agoChanged strcpy() calls into strlcpy() calls, just to be extra safe.
Wayne Davison [Fri, 13 Oct 2006 23:17:33 +0000 (23:17 +0000)]
Changed strcpy() calls into strlcpy() calls, just to be extra safe.

17 years agoAdded a paranoid length check.
Wayne Davison [Fri, 13 Oct 2006 23:17:30 +0000 (23:17 +0000)]
Added a paranoid length check.

17 years ago- Changed strcpy() calls into strlcpy() calls, just to be extra safe.
Wayne Davison [Fri, 13 Oct 2006 23:17:27 +0000 (23:17 +0000)]
- Changed strcpy() calls into strlcpy() calls, just to be extra safe.
- Added a default: exit_cleanup() case to a switch.
- Made the check_name() function take a buffer size arg.

17 years ago- Use precompiler conditionals in to_wire_mode() and from_write_mode()
Wayne Davison [Fri, 13 Oct 2006 17:07:13 +0000 (17:07 +0000)]
- Use precompiler conditionals in to_wire_mode() and from_write_mode()
  to get rid of code that is not needed on the current system.
- Silence a code-checker warning in send_file_entry().
- Silence a code-checker warning in make_file().
- Fixed a bug in f_name_cmp() that could compare an empty filename
  incorrectly (which might only happen if we transformed a dot-dir
  into an empty name).  (Thanks, code checker!)

17 years agoMore temporary name juggling to get all code analyzed.
Wayne Davison [Fri, 13 Oct 2006 17:02:39 +0000 (17:02 +0000)]
More temporary name juggling to get all code analyzed.

17 years agoChanged one more exit_cleanup() call into EXIT_OR_RETURN().
Wayne Davison [Fri, 13 Oct 2006 14:28:56 +0000 (14:28 +0000)]
Changed one more exit_cleanup() call into EXIT_OR_RETURN().

17 years agoTemporarily reorder the OBJS line so that the IBM code checker
Wayne Davison [Fri, 13 Oct 2006 14:17:22 +0000 (14:17 +0000)]
Temporarily reorder the OBJS line so that the IBM code checker
can analyze some of the other programs (since it runs out of
time analyzing them all).

17 years agoUse new FNONE value when setting/comparing enum logcode vars.
Wayne Davison [Fri, 13 Oct 2006 07:48:35 +0000 (07:48 +0000)]
Use new FNONE value when setting/comparing enum logcode vars.

17 years ago- Use the new FNONE enum instead of a literal 0 value.
Wayne Davison [Fri, 13 Oct 2006 07:38:21 +0000 (07:38 +0000)]
- Use the new FNONE enum instead of a literal 0 value.

17 years agoIf in_exit_cleanup is set, some of our functions return instead of
Wayne Davison [Fri, 13 Oct 2006 07:38:18 +0000 (07:38 +0000)]
If in_exit_cleanup is set, some of our functions return instead of
calling exit_cleanup() (which is a safer way to avoid an infinite
loop when the exit code uses the log functions than allowing the
_exit_cleanup() function to return back into our code).

17 years ago- When exiting, set the flag "in_exit_cleanup".
Wayne Davison [Fri, 13 Oct 2006 07:38:15 +0000 (07:38 +0000)]
- When exiting, set the flag "in_exit_cleanup".
- Mark _exit_cleanup() with NORETURN.
- Don't ever return from _exit_cleanup().

17 years agoMark out_of_memory() and overflow_exit() with NORETURN.
Wayne Davison [Fri, 13 Oct 2006 07:38:11 +0000 (07:38 +0000)]
Mark out_of_memory() and overflow_exit() with NORETURN.

17 years ago- Added FNONE to the "enum logcode" values.
Wayne Davison [Fri, 13 Oct 2006 07:38:05 +0000 (07:38 +0000)]
- Added FNONE to the "enum logcode" values.
- Added a NORETURN define to mark a function that never returns.