rsync/rsync.git
19 years agoEnabled width-sizing for %L.
Wayne Davison [Thu, 31 Mar 2005 00:50:58 +0000 (00:50 +0000)]
Enabled width-sizing for %L.

19 years agoUse new log_format_has() function instead of strstr().
Wayne Davison [Thu, 31 Mar 2005 00:21:15 +0000 (00:21 +0000)]
Use new log_format_has() function instead of strstr().

19 years agoAdded log_format_has().
Wayne Davison [Thu, 31 Mar 2005 00:19:13 +0000 (00:19 +0000)]
Added log_format_has().

19 years agoMake sure that we can't scan past the end of the format string.
Wayne Davison [Wed, 30 Mar 2005 23:39:00 +0000 (23:39 +0000)]
Make sure that we can't scan past the end of the format string.

19 years agoOptimized '%f' a little more.
Wayne Davison [Wed, 30 Mar 2005 20:41:11 +0000 (20:41 +0000)]
Optimized '%f' a little more.

19 years agoAllow %i to have a field width.
Wayne Davison [Wed, 30 Mar 2005 20:18:48 +0000 (20:18 +0000)]
Allow %i to have a field width.

19 years ago- Allow the infix field width to start with a '-'.
Wayne Davison [Wed, 30 Mar 2005 19:44:29 +0000 (19:44 +0000)]
- Allow the infix field width to start with a '-'.
- Apply the field width to all escapes, not just numeric ones.

19 years agoMention the numeric field width now possible in the % escapes.
Wayne Davison [Wed, 30 Mar 2005 19:41:51 +0000 (19:41 +0000)]
Mention the numeric field width now possible in the % escapes.

19 years agoMention that the % escapes can now have a numeric infix.
Wayne Davison [Wed, 30 Mar 2005 19:39:11 +0000 (19:39 +0000)]
Mention that the % escapes can now have a numeric infix.

19 years agodropped the "const" from the return value of safe_fname() because
Wayne Davison [Wed, 30 Mar 2005 19:34:20 +0000 (19:34 +0000)]
dropped the "const" from the return value of safe_fname() because
some callers would like to manipulate the string in the buffer.

19 years agoAllow the escapes in the log-format string to contain a numeric
Wayne Davison [Wed, 30 Mar 2005 18:27:09 +0000 (18:27 +0000)]
Allow the escapes in the log-format string to contain a numeric
field width (e.g. %8l %07p).

19 years agoFixed a comment.
Wayne Davison [Wed, 30 Mar 2005 17:31:35 +0000 (17:31 +0000)]
Fixed a comment.

19 years agoMoved a call to output_summary() up a line.
Wayne Davison [Wed, 30 Mar 2005 16:55:11 +0000 (16:55 +0000)]
Moved a call to output_summary() up a line.

19 years agoTweaked a couple sentences.
Wayne Davison [Wed, 30 Mar 2005 16:51:33 +0000 (16:51 +0000)]
Tweaked a couple sentences.

19 years agoChanged %i to output '>' for a local copy.
Wayne Davison [Wed, 30 Mar 2005 16:35:01 +0000 (16:35 +0000)]
Changed %i to output '>' for a local copy.

19 years agoGot rid of a useless extern.
Wayne Davison [Wed, 30 Mar 2005 16:33:41 +0000 (16:33 +0000)]
Got rid of a useless extern.

19 years ago- Fixed a potential crash if the receiver couldn't open the basis file
Wayne Davison [Tue, 29 Mar 2005 22:05:33 +0000 (22:05 +0000)]
- Fixed a potential crash if the receiver couldn't open the basis file
  and the sender (possibly via a batch) tells us to use basis data.
- Enhanced the batched-update skipping message to indicate what phase
  is being skipped.

19 years ago- Warn about missing batched updates the generator wants but the
Wayne Davison [Tue, 29 Mar 2005 19:49:40 +0000 (19:49 +0000)]
- Warn about missing batched updates the generator wants but the
  batch doesn't have.
- Tweaked the "skipping ..." message that is output for already-
  applied batched updates.

19 years agoSplit report() into handle_stats() and output_report() so that (1)
Wayne Davison [Tue, 29 Mar 2005 11:11:35 +0000 (11:11 +0000)]
Split report() into handle_stats() and output_report() so that (1)
the report happens after all --delete-after activity has ceased when
pulling, and (2) a batch-file created when pushing gets the stats
values written out prior to any end-of-run keep-alive packets.

19 years agoChanged maybe_emit_filelist_progress() and emit_filelist_progress()
Wayne Davison [Tue, 29 Mar 2005 10:57:31 +0000 (10:57 +0000)]
Changed maybe_emit_filelist_progress() and emit_filelist_progress()
to take an integer count instead of a struct file_list so that we
can pass in a file-list-count offset for delete's separate calls
to send_directory().

19 years agoTurn off do_progress during the file-update phase so that
Wayne Davison [Tue, 29 Mar 2005 10:41:26 +0000 (10:41 +0000)]
Turn off do_progress during the file-update phase so that
--delete-during and --fuzzy don't get any superfluous
" N files..." lines output in the middle of the processing.

19 years agoPreparing for release of 2.6.4pre4
Wayne Davison [Tue, 29 Mar 2005 06:18:24 +0000 (06:18 +0000)]
Preparing for release of 2.6.4pre4

19 years agoImproved several items and preparing for final 2.6.4 release.
Wayne Davison [Tue, 29 Mar 2005 06:15:47 +0000 (06:15 +0000)]
Improved several items and preparing for final 2.6.4 release.

19 years agoAdd data for 2.6.4.
Wayne Davison [Tue, 29 Mar 2005 06:15:08 +0000 (06:15 +0000)]
Add data for 2.6.4.

19 years agoIf --delay-updates wasn't specified, write out two -1 indexes at
Wayne Davison [Tue, 29 Mar 2005 01:04:20 +0000 (01:04 +0000)]
If --delay-updates wasn't specified, write out two -1 indexes at
the same time to avoid a useless round-trip delay for an empty
delay-updates phase.

19 years agoAdded --protocol and made some batch-file improvements.
Wayne Davison [Mon, 28 Mar 2005 20:54:06 +0000 (20:54 +0000)]
Added --protocol and made some batch-file improvements.

19 years agoAdded --protocol to --help output.
Wayne Davison [Mon, 28 Mar 2005 20:40:25 +0000 (20:40 +0000)]
Added --protocol to --help output.

19 years agoSome temporary code for 2.6.4pre3 compatibility (which can be
Wayne Davison [Mon, 28 Mar 2005 17:29:27 +0000 (17:29 +0000)]
Some temporary code for 2.6.4pre3 compatibility (which can be
safely removed for the next release).

19 years agoChaging ITEM_UNUSED back to ITEM_DUMMY_BIT for now -- we'll need
Wayne Davison [Mon, 28 Mar 2005 17:08:47 +0000 (17:08 +0000)]
Chaging ITEM_UNUSED back to ITEM_DUMMY_BIT for now -- we'll need
to get rid of it later on.

19 years agoChanged ITEM_DUMMY_BIT to ITEM_UNUSED.
Wayne Davison [Sun, 27 Mar 2005 05:58:40 +0000 (05:58 +0000)]
Changed ITEM_DUMMY_BIT to ITEM_UNUSED.

19 years agoGot rid of temporary code that detected and rejected older 2.6.4
Wayne Davison [Sun, 27 Mar 2005 05:58:38 +0000 (05:58 +0000)]
Got rid of temporary code that detected and rejected older 2.6.4
pre-release versions.

19 years agoGot rid of temporary code that set the ITEM_DUMMY_BIT.
Wayne Davison [Sun, 27 Mar 2005 05:58:36 +0000 (05:58 +0000)]
Got rid of temporary code that set the ITEM_DUMMY_BIT.

19 years ago--compress is now saved in a batch's option-state flags.
Wayne Davison [Sun, 27 Mar 2005 05:49:24 +0000 (05:49 +0000)]
--compress is now saved in a batch's option-state flags.

19 years agoDecided that the '<' and '>' output in the %i format were
Wayne Davison [Sun, 27 Mar 2005 05:32:36 +0000 (05:32 +0000)]
Decided that the '<' and '>' output in the %i format were
the opposite of what they should be.

19 years ago- Fixed a bug in the saving of the --dirs option's state.
Wayne Davison [Sun, 27 Mar 2005 05:02:49 +0000 (05:02 +0000)]
- Fixed a bug in the saving of the --dirs option's state.
- Added the saving of the --compress option's state.
- Deal with the xfer_dirs var in a better way for pre-29 batches.

19 years agoMention that --dry-run no longer conflicts with the batch options.
Wayne Davison [Fri, 25 Mar 2005 16:45:58 +0000 (16:45 +0000)]
Mention that --dry-run no longer conflicts with the batch options.

19 years ago- Don't complain if --dry-run is specified with --read-batch
Wayne Davison [Thu, 24 Mar 2005 16:41:16 +0000 (16:41 +0000)]
- Don't complain if --dry-run is specified with --read-batch
  or --write-batch.
- If --write-batch is combined with --dry-run, just disable
  --write-batch (that avoids trying to create a batch file
  and tells the user what would be transferred).

19 years agoIf --dry-run is enabled with --read-batch, we must discard the
Wayne Davison [Thu, 24 Mar 2005 16:38:34 +0000 (16:38 +0000)]
If --dry-run is enabled with --read-batch, we must discard the
transfer data.

19 years agoList /etc instead of /, but only if it exists and is readable.
Wayne Davison [Wed, 23 Mar 2005 16:04:17 +0000 (16:04 +0000)]
List /etc instead of /, but only if it exists and is readable.

19 years agoMention when we run fakeroot.
Wayne Davison [Fri, 18 Mar 2005 02:10:34 +0000 (02:10 +0000)]
Mention when we run fakeroot.

19 years agoIf we're not root and the "fakeroot" command is available, use it
Wayne Davison [Fri, 18 Mar 2005 02:07:25 +0000 (02:07 +0000)]
If we're not root and the "fakeroot" command is available, use it
to re-run the script while pretending to be root.

19 years agoSet a maximum distance-measure that find_fuzzy() will accept.
Wayne Davison [Thu, 17 Mar 2005 08:59:48 +0000 (08:59 +0000)]
Set a maximum distance-measure that find_fuzzy() will accept.

19 years agoFixed a problem with the stripping of the .bak/.old/.orig suffixes
Wayne Davison [Thu, 17 Mar 2005 08:45:36 +0000 (08:45 +0000)]
Fixed a problem with the stripping of the .bak/.old/.orig suffixes
in find_filename_suffix().

19 years agoFixed the -r kluge sent for pre-2.6.4 --list-only support.
Wayne Davison [Thu, 17 Mar 2005 00:52:33 +0000 (00:52 +0000)]
Fixed the -r kluge sent for pre-2.6.4 --list-only support.

19 years agoWe need to run our post-processing activities after the end of
Wayne Davison [Thu, 17 Mar 2005 00:41:18 +0000 (00:41 +0000)]
We need to run our post-processing activities after the end of
the receiver's delay-update processing.

19 years agoMention one other recent change.
Wayne Davison [Wed, 16 Mar 2005 02:50:00 +0000 (02:50 +0000)]
Mention one other recent change.

19 years agoPreparing for release of 2.6.4pre3
Wayne Davison [Wed, 16 Mar 2005 01:12:44 +0000 (01:12 +0000)]
Preparing for release of 2.6.4pre3

19 years agoChanged error message for incompatible 2.6.4 pre-release versions.
Wayne Davison [Wed, 16 Mar 2005 01:06:33 +0000 (01:06 +0000)]
Changed error message for incompatible 2.6.4 pre-release versions.

19 years agoDocument error messages 6 and 25.
Wayne Davison [Tue, 15 Mar 2005 23:23:45 +0000 (23:23 +0000)]
Document error messages 6 and 25.

19 years agoAdded the error message for RERR_LOG_FAILURE and used it when
Wayne Davison [Tue, 15 Mar 2005 23:23:41 +0000 (23:23 +0000)]
Added the error message for RERR_LOG_FAILURE and used it when
the daemon can't open the log-file.

19 years agoAdded RERR_LOG_FAILURE define.
Wayne Davison [Tue, 15 Mar 2005 23:23:39 +0000 (23:23 +0000)]
Added RERR_LOG_FAILURE define.

19 years ago- Made read_item_attrs() detect and reject a pre1/pre2 rsync (used
Wayne Davison [Tue, 15 Mar 2005 19:19:44 +0000 (19:19 +0000)]
- Made read_item_attrs() detect and reject a pre1/pre2 rsync (used
  by both the sender and the receiver).
- Added an extra phase to the end of the transfer to better handle
  delayed updates that have hard links.

19 years agoAdded an extra phase to the end of the transfer to handle
Wayne Davison [Tue, 15 Mar 2005 19:19:41 +0000 (19:19 +0000)]
Added an extra phase to the end of the transfer to handle
delayed updates that have hard links.

19 years ago- Added an extra phase to the end of the transfer to better handle
Wayne Davison [Tue, 15 Mar 2005 19:19:38 +0000 (19:19 +0000)]
- Added an extra phase to the end of the transfer to better handle
  delayed updates that have hard links.
- Send the new ITEM_DUMMY_BIT to the sender so that we can figure
  out if the other side is pre1 or pre2 and let the receiver reject
  it.

19 years agoAdded ITEM_DUMMY_BIT and moved a few other 'ITEM_*'s around.
Wayne Davison [Tue, 15 Mar 2005 19:19:36 +0000 (19:19 +0000)]
Added ITEM_DUMMY_BIT and moved a few other 'ITEM_*'s around.

19 years agoTweaked the end-of-phase code.
Wayne Davison [Tue, 15 Mar 2005 17:30:56 +0000 (17:30 +0000)]
Tweaked the end-of-phase code.

19 years agoHandle --delay-updates at the end of the first phase.
Wayne Davison [Tue, 15 Mar 2005 17:30:52 +0000 (17:30 +0000)]
Handle --delay-updates at the end of the first phase.

19 years agoMention the index number for an "invalid packet at end of run".
Wayne Davison [Tue, 15 Mar 2005 17:30:50 +0000 (17:30 +0000)]
Mention the index number for an "invalid packet at end of run".

19 years agoFixed a just-introduced crash bug in the --fuzzy processing.
Wayne Davison [Mon, 14 Mar 2005 22:22:42 +0000 (22:22 +0000)]
Fixed a just-introduced crash bug in the --fuzzy processing.

19 years agoA simple test to ensure that fuzzy processing is working.
Wayne Davison [Mon, 14 Mar 2005 22:17:25 +0000 (22:17 +0000)]
A simple test to ensure that fuzzy processing is working.

19 years agoSplit the conditional-directory sending out of send_file_name() into
Wayne Davison [Mon, 14 Mar 2005 17:30:15 +0000 (17:30 +0000)]
Split the conditional-directory sending out of send_file_name() into
a new function: send_if_directory().  This lets the code that is
recursively descending through the directories make its list of a
dir's contents and close the DIR handle before recursing into the
subdirs.  Also, the "recurse" var is just true/false once again.

19 years agoThe "recurse" value is back to being just 1 or 0 (true or false).
Wayne Davison [Mon, 14 Mar 2005 17:30:13 +0000 (17:30 +0000)]
The "recurse" value is back to being just 1 or 0 (true or false).

19 years agoGot rid of "fudged_recurse".
Wayne Davison [Mon, 14 Mar 2005 17:30:10 +0000 (17:30 +0000)]
Got rid of "fudged_recurse".

19 years agoGot rid of an unused extern.
Wayne Davison [Mon, 14 Mar 2005 17:06:08 +0000 (17:06 +0000)]
Got rid of an unused extern.

19 years agoGot rid of some code in f_name_cmp() that tried to make all the
Wayne Davison [Mon, 14 Mar 2005 03:36:56 +0000 (03:36 +0000)]
Got rid of some code in f_name_cmp() that tried to make all the
dirname pointers to equivalent strings have identical pointers.

19 years agoThe --fuzzy code now handles a file->dirname that has an identical
Wayne Davison [Mon, 14 Mar 2005 03:35:40 +0000 (03:35 +0000)]
The --fuzzy code now handles a file->dirname that has an identical
string as another file without being an identical pointer.

19 years agoDocument the latest %i output.
Wayne Davison [Sun, 13 Mar 2005 05:36:13 +0000 (05:36 +0000)]
Document the latest %i output.

19 years agoOutput a '*' at the start of the %i string when deleting.
Wayne Davison [Sun, 13 Mar 2005 05:35:49 +0000 (05:35 +0000)]
Output a '*' at the start of the %i string when deleting.

19 years ago- Improved a couple error messages.
Wayne Davison [Sun, 13 Mar 2005 05:34:00 +0000 (05:34 +0000)]
- Improved a couple error messages.
- Improved a function name.

19 years agoSome misc. improvements (I hope).
Wayne Davison [Sat, 12 Mar 2005 23:54:05 +0000 (23:54 +0000)]
Some misc. improvements (I hope).

19 years agoImproved two sentences.
Wayne Davison [Sat, 12 Mar 2005 23:52:18 +0000 (23:52 +0000)]
Improved two sentences.

19 years agoTweaked the name of a variable.
Wayne Davison [Sat, 12 Mar 2005 23:52:08 +0000 (23:52 +0000)]
Tweaked the name of a variable.

19 years agoMention --copy-dest.
Wayne Davison [Fri, 11 Mar 2005 19:23:09 +0000 (19:23 +0000)]
Mention --copy-dest.

19 years agoRe-enabled the --copy-dest part of the test.
Wayne Davison [Fri, 11 Mar 2005 17:36:05 +0000 (17:36 +0000)]
Re-enabled the --copy-dest part of the test.

19 years agoAdded --copy-dest logic, and improved the updating of --compare-dest
Wayne Davison [Fri, 11 Mar 2005 17:36:03 +0000 (17:36 +0000)]
Added --copy-dest logic, and improved the updating of --compare-dest
and --link-dest files that are up-to-date but have differing attributes.

19 years agoAdded --copy-dest logic.
Wayne Davison [Fri, 11 Mar 2005 17:35:59 +0000 (17:35 +0000)]
Added --copy-dest logic.

19 years agoTweaked the comment on copy_file().
Wayne Davison [Fri, 11 Mar 2005 17:35:57 +0000 (17:35 +0000)]
Tweaked the comment on copy_file().

19 years agoDocument --copy-dest.
Wayne Davison [Fri, 11 Mar 2005 17:35:54 +0000 (17:35 +0000)]
Document --copy-dest.

19 years ago- Fixed the reading of the fuzzy xname from the socket.
Wayne Davison [Thu, 10 Mar 2005 00:06:01 +0000 (00:06 +0000)]
- Fixed the reading of the fuzzy xname from the socket.
- Call read_item_attrs() with its new arg.

19 years ago- Changed read_item_attrs() to return the length of the xname string.
Wayne Davison [Thu, 10 Mar 2005 00:05:58 +0000 (00:05 +0000)]
- Changed read_item_attrs() to return the length of the xname string.
- Tweaked the order of the args to write_item_attrs().

19 years ago- Improved the error-checking for some delete_item() calls.
Wayne Davison [Wed, 9 Mar 2005 23:46:28 +0000 (23:46 +0000)]
- Improved the error-checking for some delete_item() calls.
- Move the non-regular-file delete-check above the alt-basis check
  where it belongs.
- Keep track of the real statret and real stat-struct for certain
  alt-basis scenarios (e.g. partial-dir and fuzzy) so that we send
  the right itemized change flags.

19 years agoMention the latest protocol-29 changes.
Wayne Davison [Wed, 9 Mar 2005 18:55:09 +0000 (18:55 +0000)]
Mention the latest protocol-29 changes.

19 years agoWe now handle the reading and writing of extra basis-file info: the
Wayne Davison [Wed, 9 Mar 2005 18:54:19 +0000 (18:54 +0000)]
We now handle the reading and writing of extra basis-file info: the
fnamecmp_type byte, and the extra name (currently used for fuzzy
processing and hard-link status).

19 years agoGot rid of the name-pipe, so we now read the fnamecmp_type data over
Wayne Davison [Wed, 9 Mar 2005 18:54:16 +0000 (18:54 +0000)]
Got rid of the name-pipe, so we now read the fnamecmp_type data over
the socket for protocol >= 29, or handle it like the old days for
older protocol versions.  This means that we now validate this extra
data for safety (such as the fuzzy filename).

19 years agoMade itemize() output the fnamecmp_type and the fuzzy name based on
Wayne Davison [Wed, 9 Mar 2005 18:54:12 +0000 (18:54 +0000)]
Made itemize() output the fnamecmp_type and the fuzzy name based on
the new ITEM_BASIS_TYPE_FOLLOWS and ITEM_XNAME_FOLLOWS flags.  Got
rid of the name-pipe to the receiver.

19 years agoGot rid of the name-pipe from the generator to the receiver.
Wayne Davison [Wed, 9 Mar 2005 18:54:09 +0000 (18:54 +0000)]
Got rid of the name-pipe from the generator to the receiver.

19 years agoWhen itemizing, we now set ITEM_LOCAL_CHANGE and ITEM_XNAME_FOLLOWS.
Wayne Davison [Wed, 9 Mar 2005 18:54:06 +0000 (18:54 +0000)]
When itemizing, we now set ITEM_LOCAL_CHANGE and ITEM_XNAME_FOLLOWS.

19 years ago- Made an overflow in read_vstring() return an error instead of dying.
Wayne Davison [Wed, 9 Mar 2005 18:54:02 +0000 (18:54 +0000)]
- Made an overflow in read_vstring() return an error instead of dying.
- Got rid of a flush kluge that was needed for the name-pipe.

19 years agoHandle the new way that 'c' and 'h' get output by "%i".
Wayne Davison [Wed, 9 Mar 2005 18:53:58 +0000 (18:53 +0000)]
Handle the new way that 'c' and 'h' get output by "%i".

19 years agoComplain if a feature that requires protocol 29 doesn't get it.
Wayne Davison [Wed, 9 Mar 2005 18:53:55 +0000 (18:53 +0000)]
Complain if a feature that requires protocol 29 doesn't get it.

19 years agoMade the dest_option string non-static.
Wayne Davison [Wed, 9 Mar 2005 18:53:53 +0000 (18:53 +0000)]
Made the dest_option string non-static.

19 years agoChanged some of the ITEM_* defines.
Wayne Davison [Wed, 9 Mar 2005 18:53:49 +0000 (18:53 +0000)]
Changed some of the ITEM_* defines.

19 years agoMention the latest bug-fix.
Wayne Davison [Wed, 9 Mar 2005 04:00:45 +0000 (04:00 +0000)]
Mention the latest bug-fix.

19 years agoWe need to mention any change to a directory, not just a time change.
Wayne Davison [Wed, 9 Mar 2005 04:00:20 +0000 (04:00 +0000)]
We need to mention any change to a directory, not just a time change.
Yeah, this isn't very consistent with how files are treated, but it's
backward compatible.

19 years agoFixed the change-report output for a directory that has no
Wayne Davison [Wed, 9 Mar 2005 03:49:07 +0000 (03:49 +0000)]
Fixed the change-report output for a directory that has no
write permissions.

19 years agoBackward compatibility fix in read_iflags() (for protocols < 29).
Wayne Davison [Wed, 9 Mar 2005 02:25:34 +0000 (02:25 +0000)]
Backward compatibility fix in read_iflags() (for protocols < 29).

19 years agoBacked out the hack that reversed ITEM_REPORT_XATTRS with
Wayne Davison [Sun, 6 Mar 2005 23:37:42 +0000 (23:37 +0000)]
Backed out the hack that reversed ITEM_REPORT_XATTRS with
ITEM_TRANSFER.  Yes, it allowed some kludge code that made backward
compatibility seamless, but it made it impossible to remove the hack
in the future.  This way, the backward compatibility is just
slightly inaccurate in the display of the first letter in the %i
output, and the only hack can be safely removed without causing
problems.

19 years ago- When --max-delete is exceeded, we now count how many deletions
Wayne Davison [Sat, 5 Mar 2005 18:58:42 +0000 (18:58 +0000)]
- When --max-delete is exceeded, we now count how many deletions
  would have happend, warn about the number skipped, and set
  io_error to IOERR_DEL_LIMIT.
- When dry_run > 1 (which indicates that the destinationdir is
  missing), skip deletions in that dir.  This fixes a bug in a
  copy that is creating the destination dir w/--delete enabled.

19 years agoHandle new IOERR_DEL_LIMIT bit in io_error.
Wayne Davison [Sat, 5 Mar 2005 18:58:38 +0000 (18:58 +0000)]
Handle new IOERR_DEL_LIMIT bit in io_error.

19 years agoDefine the message for RERR_DEL_LIMIT.
Wayne Davison [Sat, 5 Mar 2005 18:58:35 +0000 (18:58 +0000)]
Define the message for RERR_DEL_LIMIT.