rsync/rsync.git
17 years agoUse the latest F_*() accessors.
Wayne Davison [Tue, 5 Dec 2006 15:59:58 +0000 (15:59 +0000)]
Use the latest F_*() accessors.

17 years agoSaved 9 more bytes per file in a typical transfer by making the length
Wayne Davison [Tue, 5 Dec 2006 15:59:53 +0000 (15:59 +0000)]
Saved 9 more bytes per file in a typical transfer by making the length
32 bits by default, by removing the basename pointer, and by making the
mode value a unsigned short.

17 years agoChanged flist_extra_ndx into flist_extra_cnt.
Wayne Davison [Tue, 5 Dec 2006 15:59:49 +0000 (15:59 +0000)]
Changed flist_extra_ndx into flist_extra_cnt.

17 years agoTweaked some externs.
Wayne Davison [Tue, 5 Dec 2006 15:59:46 +0000 (15:59 +0000)]
Tweaked some externs.

17 years agoUse new send_msg_int() function.
Wayne Davison [Mon, 4 Dec 2006 02:07:37 +0000 (02:07 +0000)]
Use new send_msg_int() function.

17 years agoAdded send_msg_int() function.
Wayne Davison [Mon, 4 Dec 2006 02:07:30 +0000 (02:07 +0000)]
Added send_msg_int() function.

17 years agoMoved an extern.
Wayne Davison [Sun, 3 Dec 2006 07:58:12 +0000 (07:58 +0000)]
Moved an extern.

17 years ago- Typical tranfers now save 12-20 bytes per file because several vars
Wayne Davison [Sun, 3 Dec 2006 06:44:16 +0000 (06:44 +0000)]
- Typical tranfers now save 12-20 bytes per file because several vars
  were moved out of file_struct into an optional member-var setup.
- Renamed and reorganized the FLAG_* defines.
- Use NDX_DONE instead of a literal -1 when sending/checking the
  end-of-phase index value.

17 years agoRestored write_ndx_and_attrs() and made it public.
Wayne Davison [Sat, 2 Dec 2006 16:17:11 +0000 (16:17 +0000)]
Restored write_ndx_and_attrs() and made it public.

17 years agoMoved write_ndx_and_attrs() to sender.c and made it public.
Wayne Davison [Sat, 2 Dec 2006 16:16:54 +0000 (16:16 +0000)]
Moved write_ndx_and_attrs() to sender.c and made it public.

17 years agoMoved write_ndx_and_attrs() too.
Wayne Davison [Sat, 2 Dec 2006 16:13:02 +0000 (16:13 +0000)]
Moved write_ndx_and_attrs() too.

17 years agoAdded a couple externs.
Wayne Davison [Sat, 2 Dec 2006 16:11:33 +0000 (16:11 +0000)]
Added a couple externs.

17 years agoMoved read_item_attrs() from sender.c to rsync.c since the function
Wayne Davison [Sat, 2 Dec 2006 16:08:59 +0000 (16:08 +0000)]
Moved read_item_attrs() from sender.c to c since the function
is used by both the sender and the receiver.

17 years agoChange the format/order of the capabilities --version outputs.
Wayne Davison [Fri, 1 Dec 2006 18:29:18 +0000 (18:29 +0000)]
Change the format/order of the capabilities --version outputs.

17 years agoGot rid of an incorrect comment.
Wayne Davison [Tue, 28 Nov 2006 19:34:01 +0000 (19:34 +0000)]
Got rid of an incorrect comment.

17 years agoAdded some more "const" prefixes to some "char *" vars.
Wayne Davison [Tue, 28 Nov 2006 19:31:41 +0000 (19:31 +0000)]
Added some more "const" prefixes to some "char *" vars.

17 years ago- Use write_shortint() to send the 2 bytes in an extended flag.
Wayne Davison [Fri, 24 Nov 2006 20:21:13 +0000 (20:21 +0000)]
- Use write_shortint() to send the 2 bytes in an extended flag.
- Improved a comment.

17 years ago- Added checking of SIZEOF_INT64 to the new code in read_longint().
Wayne Davison [Fri, 24 Nov 2006 18:35:00 +0000 (18:35 +0000)]
- Added checking of SIZEOF_INT64 to the new code in read_longint().
- Improved the SIZEOF_INT64 checking code in write_longint().

17 years ago- Changed {read,write}_shortint() to use unsigned short.
Wayne Davison [Fri, 24 Nov 2006 17:28:57 +0000 (17:28 +0000)]
- Changed {read,write}_shortint() to use unsigned short.
- Added explicit char-casting to new long-int code.

17 years agoDocument the latest changes.
Wayne Davison [Fri, 24 Nov 2006 08:46:21 +0000 (08:46 +0000)]
Document the latest changes.

17 years ago- Fixed a bug when sending a negative 64-bit number (which may not
Wayne Davison [Fri, 24 Nov 2006 08:38:44 +0000 (08:38 +0000)]
- Fixed a bug when sending a negative 64-bit number (which may not
  be needed, but it at least works right now).
- Improved the transmission of 32-bit negative numbers on systems
  where the 32-bit type is larger than 32 bits.
- Changed the sending of 64-bit numbers for protocol 30:  we send
  them in MSB-first order with the number of bytes used in the
  transmission encoded into the earliest bits.  This lets us save
  transmitted bytes for both small and large numbers.  The new
  method sends from 3 to 9 bytes, the old sent either 4 or 12.

17 years agoAdded some defines for sending variable-sized MSB-first numbers.
Wayne Davison [Fri, 24 Nov 2006 08:22:23 +0000 (08:22 +0000)]
Added some defines for sending variable-sized MSB-first numbers.

17 years agoSilenced a compiler warning.
Wayne Davison [Thu, 23 Nov 2006 04:16:48 +0000 (04:16 +0000)]
Silenced a compiler warning.

17 years agoFix a unused-variable compiler warning.
Wayne Davison [Thu, 23 Nov 2006 03:28:58 +0000 (03:28 +0000)]
Fix a unused-variable compiler warning.

17 years agoDocument the new --delete-delay option.
Wayne Davison [Wed, 22 Nov 2006 20:52:51 +0000 (20:52 +0000)]
Document the new --delete-delay option.

17 years ago- Implement new --delete-delay option.
Wayne Davison [Wed, 22 Nov 2006 20:51:03 +0000 (20:51 +0000)]
- Implement new --delete-delay option.
- Tweaked a variable name in delete_item().

17 years agoAdded parsing for --delete-delay.
Wayne Davison [Wed, 22 Nov 2006 20:49:23 +0000 (20:49 +0000)]
Added parsing for --delete-delay.

17 years agoMade get_tmpname() non-static.
Wayne Davison [Wed, 22 Nov 2006 20:48:04 +0000 (20:48 +0000)]
Made get_tmpname() non-static.

17 years agoSwitch over to testing --remove-source-files, not *-sent-*.
Wayne Davison [Wed, 22 Nov 2006 16:34:25 +0000 (16:34 +0000)]
Switch over to testing --remove-source-files, not *-sent-*.

17 years agoDon't define NORETURN for older gcc versions.
Wayne Davison [Tue, 21 Nov 2006 22:29:33 +0000 (22:29 +0000)]
Don't define NORETURN for older gcc versions.

17 years agoMention latest changes.
Wayne Davison [Tue, 21 Nov 2006 19:08:59 +0000 (19:08 +0000)]
Mention latest changes.

17 years agoThe exclude code wasn't sending the MATCHFLG_NEGATE (!) char to the
Wayne Davison [Tue, 21 Nov 2006 17:46:54 +0000 (17:46 +0000)]
The exclude code wasn't sending the MATCHFLG_NEGATE (!) char to the
other side.

17 years agoDon't set an "rc" var that we aren't going to use.
Wayne Davison [Tue, 21 Nov 2006 08:37:28 +0000 (08:37 +0000)]
Don't set an "rc" var that we aren't going to use.

17 years agoAvoid a compiler warning about setting "len" without using it.
Wayne Davison [Tue, 21 Nov 2006 08:37:06 +0000 (08:37 +0000)]
Avoid a compiler warning about setting "len" without using it.

17 years agoMake the file_list stats value an int64.
Wayne Davison [Tue, 21 Nov 2006 08:36:48 +0000 (08:36 +0000)]
Make the file_list stats value an int64.

17 years ago- Use an explicit cast when a value gets stored in a smaller var.
Wayne Davison [Tue, 21 Nov 2006 08:36:31 +0000 (08:36 +0000)]
- Use an explicit cast when a value gets stored in a smaller var.
- The msgtype var should have been an enum.

17 years agoOutput the size of the file list using human_num().
Wayne Davison [Tue, 21 Nov 2006 08:36:15 +0000 (08:36 +0000)]
Output the size of the file list using human_num().

17 years agoExplicitly cast the tag value in read_msg_fd() to an enum.
Wayne Davison [Tue, 21 Nov 2006 08:36:06 +0000 (08:36 +0000)]
Explicitly cast the tag value in read_msg_fd() to an enum.

17 years agoUse an explicit cast when a value gets stored in a smaller var.
Wayne Davison [Tue, 21 Nov 2006 08:35:58 +0000 (08:35 +0000)]
Use an explicit cast when a value gets stored in a smaller var.

17 years agoThe call to do_chmod() needed to be conditional.
Wayne Davison [Tue, 21 Nov 2006 08:35:22 +0000 (08:35 +0000)]
The call to do_chmod() needed to be conditional.

17 years agoFixed a problem with the new iconv const check.
Wayne Davison [Mon, 20 Nov 2006 19:12:35 +0000 (19:12 +0000)]
Fixed a problem with the new iconv const check.

17 years agoUse the new ICONV_CONST definition.
Wayne Davison [Mon, 20 Nov 2006 18:17:48 +0000 (18:17 +0000)]
Use the new ICONV_CONST definition.

17 years agoAdded a test to figure out if iconv() takes a const char **.
Wayne Davison [Mon, 20 Nov 2006 18:17:17 +0000 (18:17 +0000)]
Added a test to figure out if iconv() takes a const char **.

17 years agoMoved the options_rejected label to avoid a compiler warning on
Wayne Davison [Sun, 19 Nov 2006 04:39:35 +0000 (04:39 +0000)]
Moved the options_rejected label to avoid a compiler warning on
some systems.

17 years agoUse rwrite() to output the err_msg string.
Wayne Davison [Sun, 19 Nov 2006 04:37:52 +0000 (04:37 +0000)]
Use rwrite() to output the err_msg string.

17 years agoAdded "const" to appropriate char pointers.
Wayne Davison [Sun, 19 Nov 2006 00:23:21 +0000 (00:23 +0000)]
Added "const" to appropriate char pointers.

17 years agoSome bf(...) tweaks.
Wayne Davison [Tue, 14 Nov 2006 07:56:05 +0000 (07:56 +0000)]
Some bf(...) tweaks.

17 years ago- Use double quotes for a quoted string.
Wayne Davison [Tue, 14 Nov 2006 07:55:47 +0000 (07:55 +0000)]
- Use double quotes for a quoted string.
- Some bf(...) tweaks.

17 years agoAdded: also tweak single-/double-quotes and em-dashes.
Wayne Davison [Tue, 14 Nov 2006 07:54:26 +0000 (07:54 +0000)]
Added: also tweak single-/double-quotes and em-dashes.

17 years agoChanged name of tweak_manpage script.
Wayne Davison [Tue, 14 Nov 2006 07:48:56 +0000 (07:48 +0000)]
Changed name of tweak_manpage script.

17 years agoTurned the char * vars flist_dir and lastdir into const char * vars.
Wayne Davison [Mon, 13 Nov 2006 00:27:10 +0000 (00:27 +0000)]
Turned the char * vars flist_dir and lastdir into const char * vars.

17 years agoTurned the char * args to push_dir() and pop_dir() into const char *.
Wayne Davison [Mon, 13 Nov 2006 00:27:04 +0000 (00:27 +0000)]
Turned the char * args to push_dir() and pop_dir() into const char *.

17 years agoTurned the char *dir.root var in struct file_struct into a const char *.
Wayne Davison [Mon, 13 Nov 2006 00:27:00 +0000 (00:27 +0000)]
Turned the char *dir.root var in struct file_struct into a const char *.

17 years agoIgnore a time-setting error on a symlink (which is only attempted
Wayne Davison [Sun, 12 Nov 2006 21:18:26 +0000 (21:18 +0000)]
Ignore a time-setting error on a symlink (which is only attempted
on a system with lutimes() anyway).

17 years agoTweaked a couple comments.
Wayne Davison [Sat, 11 Nov 2006 17:09:32 +0000 (17:09 +0000)]
Tweaked a couple comments.

17 years agoDocument the new p (perishable) filter modifier.
Wayne Davison [Sat, 11 Nov 2006 17:01:58 +0000 (17:01 +0000)]
Document the new p (perishable) filter modifier.

17 years agoIf ignore_perishable is set, increment a count of all excluded
Wayne Davison [Sat, 11 Nov 2006 16:44:22 +0000 (16:44 +0000)]
If ignore_perishable is set, increment a count of all excluded
items found by make_file().

17 years agoAdded the MATCHFLAG_PERISHABLE flag.
Wayne Davison [Sat, 11 Nov 2006 16:43:13 +0000 (16:43 +0000)]
Added the MATCHFLAG_PERISHABLE flag.

17 years ago- Added the 'p' (perishable) flag to the filter rules, as suggested
Wayne Davison [Sat, 11 Nov 2006 16:39:57 +0000 (16:39 +0000)]
- Added the 'p' (perishable) flag to the filter rules, as suggested
  by Matt.
- If ignore_perishable is set, we ignore all perishable rules.
- Mark all default-cvsignore rules as perishable (e.g. excludes such
  as *.o CVS .svn/ will not prevent a directory from being deleted).

17 years ago- Restored some of Matt's suggested logic that I left out, as it
Wayne Davison [Sat, 11 Nov 2006 16:39:02 +0000 (16:39 +0000)]
- Restored some of Matt's suggested logic that I left out, as it
  is needed to get --dry-run to output appropriately.
- Got rid of DR_PINNED from the enum delret.
- Set a flag when we're deleting outside the transfer hierarchy and
  initialize a counter that flist.c will use to count excluded files.

17 years agoWhen make_file() gets a stat() error on a file, the check-for-
Wayne Davison [Sat, 11 Nov 2006 15:34:31 +0000 (15:34 +0000)]
When make_file() gets a stat() error on a file, the check-for-
exclusion-before-reporting-an-error code allows a dir-specific
rule to match the unknown file, not just a non-dir rule.

17 years ago- Make delete_dir_contents() use less stack by recursing directly
Wayne Davison [Sat, 11 Nov 2006 14:45:00 +0000 (14:45 +0000)]
- Make delete_dir_contents() use less stack by recursing directly
  to itself, and then calling delete_item() w/o DEL_RECURSE.
- Fixed the return value handling of delete_dir_contents().

17 years agoTweaked an exit_cleanup() value.
Wayne Davison [Sat, 11 Nov 2006 08:01:40 +0000 (08:01 +0000)]
Tweaked an exit_cleanup() value.

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.