rsync/rsync.git
19 years agoThe delete_one() function no longer needs to handle the case where
Wayne Davison [Tue, 21 Sep 2004 09:24:06 +0000 (09:24 +0000)]
The delete_one() function no longer needs to handle the case where
it thinks it is removing a directory and it is really removing a
symlink.

19 years ago- Turned readlink_stat() into a static function.
Wayne Davison [Tue, 21 Sep 2004 09:24:02 +0000 (09:24 +0000)]
- Turned readlink_stat() into a static function.
- Made readlink_stat() no longer honor keep_dirlinks.
- The make_file() function now checks keep_dirlinks late in the
  function so that it only transforms a symlink to a local dir
  into a directory if the receiver also has a directory by that
  name.  This makes the use of --delete with --keep-dirlinks
  work much better.

19 years ago- Fixed a problem with the $bakdir value.
Wayne Davison [Mon, 20 Sep 2004 19:50:04 +0000 (19:50 +0000)]
- Fixed a problem with the $bakdir value.
- Made the files have better contents to copy.
- Also test --backup without --backup-dir.

19 years agoOutput a backup message when verbose > 1 and we did a copy prior
Wayne Davison [Mon, 20 Sep 2004 19:47:59 +0000 (19:47 +0000)]
Output a backup message when verbose > 1 and we did a copy prior
to an --inplace update.

19 years agoOutput the same backup-message prefix when verbose > 1 regardless of
Wayne Davison [Mon, 20 Sep 2004 19:46:45 +0000 (19:46 +0000)]
Output the same backup-message prefix when verbose > 1 regardless of
the setting of --backup-dir.

19 years agoUse $diffopt instead of -u.
Wayne Davison [Mon, 20 Sep 2004 05:17:57 +0000 (05:17 +0000)]
Use $diffopt instead of -u.

19 years agoGot rid of a superfluous static buffer.
Wayne Davison [Mon, 20 Sep 2004 05:01:38 +0000 (05:01 +0000)]
Got rid of a superfluous static buffer.

19 years agoA simple test of the backup functionality.
Wayne Davison [Mon, 20 Sep 2004 04:59:01 +0000 (04:59 +0000)]
A simple test of the backup functionality.

19 years agoImproved a comment.
Wayne Davison [Mon, 20 Sep 2004 04:17:42 +0000 (04:17 +0000)]
Improved a comment.

19 years agoMention the new RSYNC_PARTIAL_DIR environment variable.
Wayne Davison [Sat, 18 Sep 2004 17:37:54 +0000 (17:37 +0000)]
Mention the new RSYNC_PARTIAL_DIR environment variable.

19 years agoDocument the new RSYNC_PARTIAL_DIR environment variable.
Wayne Davison [Sat, 18 Sep 2004 17:35:20 +0000 (17:35 +0000)]
Document the new RSYNC_PARTIAL_DIR environment variable.

19 years agoLook for the RSYNC_PARTIAL_DIR environment variable when --partial
Wayne Davison [Sat, 18 Sep 2004 17:34:56 +0000 (17:34 +0000)]
Look for the RSYNC_PARTIAL_DIR environment variable when --partial
was specified (and --partial-dir was not).

19 years agoMention that older rsync versions had a problem with --link-dest and
Wayne Davison [Sat, 18 Sep 2004 01:49:19 +0000 (01:49 +0000)]
Mention that older rsync versions had a problem with --link-dest and
how to work around it.

19 years agoMention the latest changes.
Wayne Davison [Fri, 17 Sep 2004 16:53:51 +0000 (16:53 +0000)]
Mention the latest changes.

19 years ago- Added the ability to parse a literal IPv6 address in an "rsync:" URL
Wayne Davison [Fri, 17 Sep 2004 16:50:53 +0000 (16:50 +0000)]
- Added the ability to parse a literal IPv6 address in an "rsync:" URL
  (e.g. rsync://[2001:638:500:101::21]:873/module/dir).
- Improved a couple --files-from error messages.

19 years agoWhen outputting the flist info (in a debug-level of verbosity) we
Wayne Davison [Fri, 17 Sep 2004 16:39:34 +0000 (16:39 +0000)]
When outputting the flist info (in a debug-level of verbosity) we
now mention the UID of the file when we are the sender (as well as
when we are root).

19 years agoActually, since the close calls shouldn't fail (now that listener
Wayne Davison [Thu, 16 Sep 2004 17:22:31 +0000 (17:22 +0000)]
Actually, since the close calls shouldn't fail (now that listener
is properly set to -1 on close), we don't really need to play the
save-errno game after all.

19 years agoMake sure that /etc and /bin actually are readable before we try
Wayne Davison [Thu, 16 Sep 2004 17:16:36 +0000 (17:16 +0000)]
Make sure that /etc and  /bin actually are readable before we try
to list them.

19 years ago- Set "listener" to -1 after we close it so that the error-handler
Wayne Davison [Thu, 16 Sep 2004 17:09:46 +0000 (17:09 +0000)]
- Set "listener" to -1 after we close it so that the error-handler
  doesn't try to re-close it.
- Set blocking I/O before the second (final) connect() call.

19 years agoDon't try to optimize-away the sending of the --delete option if
Wayne Davison [Wed, 8 Sep 2004 07:33:06 +0000 (07:33 +0000)]
Don't try to optimize-away the sending of the --delete option if
--delete-after was specified (since we don't know what the protocol
version will be yet).

19 years agoIf --backup was used with --inplace, we don't limit the basis-file
Wayne Davison [Tue, 7 Sep 2004 21:45:19 +0000 (21:45 +0000)]
If --backup was used with --inplace, we don't limit the basis-file
matches (as we normally would) because the receiver is using the
backup-file as the basis-file.

19 years agoWhen --backup is used with --inplace, we make a copy of the destination
Wayne Davison [Tue, 7 Sep 2004 21:44:02 +0000 (21:44 +0000)]
When --backup is used with --inplace, we make a copy of the destination
file into its backup spot while generating the checksums.

19 years agoIf we're making backups with --inplace, use the backup file as the
Wayne Davison [Tue, 7 Sep 2004 21:34:26 +0000 (21:34 +0000)]
If we're making backups with --inplace, use the backup file as the
basis file while still updating the real destination file inplace.

19 years agoTurn off make_backups during the redo phase, just like the receiver.
Wayne Davison [Tue, 7 Sep 2004 21:32:36 +0000 (21:32 +0000)]
Turn off make_backups during the redo phase, just like the receiver.

19 years agoMoved the code that determines the backup filename into a new function
Wayne Davison [Tue, 7 Sep 2004 21:29:26 +0000 (21:29 +0000)]
Moved the code that determines the backup filename into a new function
named get_backup_name().

19 years agoMade full_write() non-static.
Wayne Davison [Tue, 7 Sep 2004 21:26:26 +0000 (21:26 +0000)]
Made full_write() non-static.

19 years agoW mustn't backup an inplace file in finish_transfer().
Wayne Davison [Tue, 7 Sep 2004 20:37:36 +0000 (20:37 +0000)]
W mustn't backup an inplace file in finish_transfer().

19 years agoReject the use of --compare-dest or --link-dest with --inplace
Wayne Davison [Tue, 7 Sep 2004 20:36:36 +0000 (20:36 +0000)]
Reject the use of --compare-dest or --link-dest with --inplace
(it will take extra code to suppor this).

19 years agoWhen we say we're skipping a non-regular file, actually skip it.
Wayne Davison [Tue, 7 Sep 2004 19:49:09 +0000 (19:49 +0000)]
When we say we're skipping a non-regular file, actually skip it.

19 years agoA minor optimization to the partial-dir code.
Wayne Davison [Tue, 7 Sep 2004 17:03:51 +0000 (17:03 +0000)]
A minor optimization to the partial-dir code.

19 years agoFix the case where a partial-dir file exists but the destination
Wayne Davison [Tue, 7 Sep 2004 16:50:07 +0000 (16:50 +0000)]
Fix the case where a partial-dir file exists but the destination
file does not.

19 years agoMention that --whole-file interferes with the reuse of a --partial-dir
Wayne Davison [Tue, 7 Sep 2004 16:49:10 +0000 (16:49 +0000)]
Mention that --whole-file interferes with the reuse of a --partial-dir
file.

19 years agoFixed a typo Paul pointed out.
Wayne Davison [Sun, 5 Sep 2004 21:30:00 +0000 (21:30 +0000)]
Fixed a typo Paul pointed out.

19 years agoAllow the use of the --exclude*/--include* options to a server
Wayne Davison [Thu, 26 Aug 2004 17:39:48 +0000 (17:39 +0000)]
Allow the use of the --exclude*/--include* options to a server
process again, but make sure that the user didn't specify a
server-excluded file for one of the --*-from options.

19 years agoSome fixes & clarifications for the BATCH MODE section.
Wayne Davison [Wed, 18 Aug 2004 07:50:36 +0000 (07:50 +0000)]
Some fixes & clarifications for the BATCH MODE section.

19 years agoFew few more minor improvements to the existing change items.
Wayne Davison [Wed, 18 Aug 2004 07:49:03 +0000 (07:49 +0000)]
Few few more minor improvements to the existing change items.

19 years agoCorrected/enhanced a comment.
Wayne Davison [Wed, 18 Aug 2004 07:00:17 +0000 (07:00 +0000)]
Corrected/enhanced a comment.

19 years agoOne more NEWS tweak.
Wayne Davison [Thu, 12 Aug 2004 21:02:13 +0000 (21:02 +0000)]
One more NEWS tweak.

19 years agoMention the security fix.
Wayne Davison [Thu, 12 Aug 2004 20:58:33 +0000 (20:58 +0000)]
Mention the security fix.

19 years agoGot rid of one item.
Wayne Davison [Thu, 12 Aug 2004 20:48:05 +0000 (20:48 +0000)]
Got rid of one item.

19 years agoPreparing for release of 2.6.3pre1
Wayne Davison [Thu, 12 Aug 2004 20:06:57 +0000 (20:06 +0000)]
Preparing for release of 2.6.3pre1

19 years agoOne last minor tweak to clean_fname().
Wayne Davison [Thu, 12 Aug 2004 20:04:47 +0000 (20:04 +0000)]
One last minor tweak to clean_fname().

19 years agoTweaked the USAGE section a tad and added an ADVANCED USAGE section
Wayne Davison [Thu, 12 Aug 2004 19:31:23 +0000 (19:31 +0000)]
Tweaked the USAGE section a tad and added an ADVANCED USAGE section
that discusses how to request multiple names from a remote rsync.

19 years agoImproved the build rule for getfsdev and added getfsdev.o to the
Wayne Davison [Thu, 12 Aug 2004 18:59:03 +0000 (18:59 +0000)]
Improved the build rule for getfsdev and added getfsdev.o to the
files we cleanup.

19 years agoIf system won't let us set chmod bits, fall back to testing without
Wayne Davison [Thu, 12 Aug 2004 18:51:35 +0000 (18:51 +0000)]
If system won't let us set chmod bits, fall back to testing without
them set.

19 years ago- Made clean_flist()'s collapsing of ".." dirs optional by adding
Wayne Davison [Thu, 12 Aug 2004 18:20:14 +0000 (18:20 +0000)]
- Made clean_flist()'s collapsing of ".." dirs optional by adding
  a "BOOL collapse_dot_dot" arg.
- Improved some comments.

19 years agoCall clean_flist() with its new "collapse_dot_dot" arg.
Wayne Davison [Thu, 12 Aug 2004 18:20:07 +0000 (18:20 +0000)]
Call clean_flist() with its new "collapse_dot_dot" arg.

19 years agoOne (hopefully) last change to the sanitize_path() code.
Wayne Davison [Thu, 12 Aug 2004 10:13:45 +0000 (10:13 +0000)]
One (hopefully) last change to the sanitize_path() code.

19 years agoSimplified sanitize_path() logic a little.
Wayne Davison [Thu, 12 Aug 2004 09:32:16 +0000 (09:32 +0000)]
Simplified sanitize_path() logic a little.

19 years agoMore improvements and a couple missing items.
Wayne Davison [Thu, 12 Aug 2004 01:27:26 +0000 (01:27 +0000)]
More improvements and a couple missing items.

19 years agoImproved a comment.
Wayne Davison [Thu, 12 Aug 2004 00:58:01 +0000 (00:58 +0000)]
Improved a comment.

19 years agoGot rid of a comment that became inapplicable.
Wayne Davison [Thu, 12 Aug 2004 00:52:58 +0000 (00:52 +0000)]
Got rid of a comment that became inapplicable.

19 years ago- Call sanitize_path() with updated args.
Wayne Davison [Wed, 11 Aug 2004 23:41:06 +0000 (23:41 +0000)]
- Call sanitize_path() with updated args.
- Added count_dir_elements() function.
- Changed the args for sanitize_path() so that the caller can request
  the value for the rootdir and so that the caller tells us the current
  subdir depth instead of sending us a string that we have to figure it
  out from.
- Make sure that sanitize_path() doesn't mis-parse multiple adjacent
  slashes.

19 years agoCall sanitize_path() with updated args.
Wayne Davison [Wed, 11 Aug 2004 23:41:03 +0000 (23:41 +0000)]
Call sanitize_path() with updated args.

19 years ago- Set the var lastdir_depth when setting lastdir.
Wayne Davison [Wed, 11 Aug 2004 23:41:00 +0000 (23:41 +0000)]
- Set the var lastdir_depth when setting lastdir.
- Call sanitize_path() with updated args.

19 years agoIgnore new getfsdev executable.
Wayne Davison [Wed, 11 Aug 2004 17:33:52 +0000 (17:33 +0000)]
Ignore new getfsdev executable.

19 years agoMake the text of the --times (-t) option more correct on what
Wayne Davison [Wed, 11 Aug 2004 17:24:37 +0000 (17:24 +0000)]
Make the text of the --times (-t) option more correct on what
happens if it is omitted.

19 years agoA minor improvement in check_one_exclude().
Wayne Davison [Tue, 10 Aug 2004 18:15:33 +0000 (18:15 +0000)]
A minor improvement in check_one_exclude().

19 years agoMention the early-chmod change.
Wayne Davison [Mon, 9 Aug 2004 20:58:26 +0000 (20:58 +0000)]
Mention the early-chmod change.

19 years agoSet each file's permissions and modtime before it gets renamed.
Wayne Davison [Mon, 9 Aug 2004 20:57:10 +0000 (20:57 +0000)]
Set each file's permissions and modtime before it gets renamed.

19 years agoDo some simple tests with various read-only and set[ug]id files.
Wayne Davison [Mon, 9 Aug 2004 20:52:35 +0000 (20:52 +0000)]
Do some simple tests with various read-only and set[ug]id files.

19 years agoAdded a rule for building getfsdev and for requiring it to run "test".
Wayne Davison [Mon, 9 Aug 2004 20:51:44 +0000 (20:51 +0000)]
Added a rule for building getfsdev and for requiring it to run "test".

19 years agoMade robust_rename() return a 1 if it had to copy the file.
Wayne Davison [Mon, 9 Aug 2004 20:48:38 +0000 (20:48 +0000)]
Made robust_rename() return a 1 if it had to copy the file.

19 years agoOutput a device string for each file given on the command-line.
Wayne Davison [Mon, 9 Aug 2004 20:46:54 +0000 (20:46 +0000)]
Output a device string for each file given on the command-line.

19 years agoFixed a bug in clean_fname() that could sometimes leave a "dir/.."
Wayne Davison [Sat, 7 Aug 2004 20:56:41 +0000 (20:56 +0000)]
Fixed a bug in clean_fname() that could sometimes leave a "dir/.."
sequence uncollapsed.

19 years agoMade clean_fname() return the length of the string.
Wayne Davison [Fri, 6 Aug 2004 22:36:55 +0000 (22:36 +0000)]
Made clean_fname() return the length of the string.

19 years agoAn improved clean_fname() routine that is more efficient and will also
Wayne Davison [Fri, 6 Aug 2004 21:24:14 +0000 (21:24 +0000)]
An improved clean_fname() routine that is more efficient and will also
collapse ".." dirs that aren't at the start of the path.  Care was taken
to ensure that the cleaning of a name that goes over the socket is done
in the same way as the old code (because both sides call clean_fname()
on those file-list names).  This ensures compatibility with older rsync
versions.

19 years agoSet "eob" correctly in add_exclude_file().
Wayne Davison [Thu, 5 Aug 2004 22:58:17 +0000 (22:58 +0000)]
Set "eob" correctly in add_exclude_file().

19 years agoMerged alloc_sanitize_path() into sanitize_path(), adding an extra arg
Wayne Davison [Thu, 5 Aug 2004 21:57:11 +0000 (21:57 +0000)]
Merged alloc_sanitize_path() into sanitize_path(), adding an extra arg
that indicates the destination dir for the resulting path (if the dest
is NULL, a buffer will be allocated) and having it return a value.

19 years agoUse the new sanitize_path() calling syntax.
Wayne Davison [Thu, 5 Aug 2004 21:57:09 +0000 (21:57 +0000)]
Use the new sanitize_path() calling syntax.

19 years agoIf dry_run is > 1 then the destination directory was missing, so we
Wayne Davison [Thu, 5 Aug 2004 18:18:36 +0000 (18:18 +0000)]
If dry_run is > 1 then the destination directory was missing, so we
set stat_errno to ENOENT and statret to -1 without calling stat().

19 years agoIn get_local_name(), if we would have created the destination dir but
Wayne Davison [Thu, 5 Aug 2004 18:17:44 +0000 (18:17 +0000)]
In get_local_name(), if we would have created the destination dir but
were prevented by dry_run being set, increment dry_run so that the
generator knows that all the files are missing.

19 years agoIn set_refuse_options(): make sure we scan the whole list of options
Wayne Davison [Wed, 4 Aug 2004 21:20:34 +0000 (21:20 +0000)]
In set_refuse_options(): make sure we scan the whole list of options
and avoid complaining about a wild-card spec that actually matches
one or more options.

19 years agoDecided that we don't need to limit the block size after all now
Wayne Davison [Tue, 3 Aug 2004 15:41:16 +0000 (15:41 +0000)]
Decided that we don't need to limit the block size after all now
that the map_file() code handles large block sizes better.

19 years agoUse MAX_MAP_SIZE in the args to map_file().
Wayne Davison [Tue, 3 Aug 2004 15:37:54 +0000 (15:37 +0000)]
Use MAX_MAP_SIZE in the args to map_file().

19 years ago- Changed the calling syntax for map_file() so that it takes both
Wayne Davison [Tue, 3 Aug 2004 08:05:29 +0000 (08:05 +0000)]
- Changed the calling syntax for map_file() so that it takes both
  a (possibly approximate) window size and an optional block size
  (which is used to round-up the window size if it is non-zero).
- Don't set window_start behind the supplied offset in map_ptr().

19 years agoCall map_file() with its new args, including a suggested window
Wayne Davison [Tue, 3 Aug 2004 08:05:27 +0000 (08:05 +0000)]
Call map_file() with its new args, including a suggested window
size.

19 years agoWe call map_ptr() with a data range than includes any unmatched data
Wayne Davison [Tue, 3 Aug 2004 08:05:23 +0000 (08:05 +0000)]
We call map_ptr() with a data range than includes any unmatched data
(which we might need to reference again) in addition to the current
rolling-checksum block (this prevents the unmatched data from being
lost when we slide the buffer and read more data).

19 years ago- Changed the description for --block-size in the --help text.
Wayne Davison [Tue, 3 Aug 2004 08:05:20 +0000 (08:05 +0000)]
- Changed the description for --block-size in the --help text.
- Use the new MAX_BLOCK_SIZE to limit the block_size value.

19 years ago- Added define for MAX_BLOCK_SIZE.
Wayne Davison [Tue, 3 Aug 2004 08:05:17 +0000 (08:05 +0000)]
- Added define for MAX_BLOCK_SIZE.
- Increased the MAX_MAP_SIZE.

19 years agoUpdated the description of the --block-size option.
Wayne Davison [Tue, 3 Aug 2004 07:58:48 +0000 (07:58 +0000)]
Updated the description of the --block-size option.

19 years agoMention the open64()/mkstemp64() configure change.
Wayne Davison [Mon, 2 Aug 2004 22:06:17 +0000 (22:06 +0000)]
Mention the open64()/mkstemp64() configure change.

19 years agoDon't use mkstemp() if the OS has open64() but not mkstemp64().
Wayne Davison [Mon, 2 Aug 2004 21:56:07 +0000 (21:56 +0000)]
Don't use mkstemp() if the OS has open64() but not mkstemp64().

19 years agoTest for functions open64() and mkstemp64().
Wayne Davison [Mon, 2 Aug 2004 21:54:49 +0000 (21:54 +0000)]
Test for functions open64() and mkstemp64().

19 years agoGot rid of trailing whitespace.
Wayne Davison [Mon, 2 Aug 2004 16:49:20 +0000 (16:49 +0000)]
Got rid of trailing whitespace.

19 years agoMention the "refuse options" change.
Wayne Davison [Mon, 2 Aug 2004 07:41:04 +0000 (07:41 +0000)]
Mention the "refuse options" change.

19 years agoAllow better wildcard matching against the short-option letters in
Wayne Davison [Mon, 2 Aug 2004 07:40:34 +0000 (07:40 +0000)]
Allow better wildcard matching against the short-option letters in
the "refuse options" handling.

19 years agoDocument the improved "refuse options" syntax.
Wayne Davison [Mon, 2 Aug 2004 05:01:36 +0000 (05:01 +0000)]
Document the improved "refuse options" syntax.

19 years ago- Extended the "refuse options" daemon setting to allow wildcards
Wayne Davison [Mon, 2 Aug 2004 05:00:30 +0000 (05:00 +0000)]
- Extended the "refuse options" daemon setting to allow wildcards
  and to allow single-letter option names.
- No need to send the various --delete* options or the --force option
  from the receiver to the sender.

19 years agoGot rid of unused externs.
Wayne Davison [Mon, 2 Aug 2004 04:50:33 +0000 (04:50 +0000)]
Got rid of unused externs.

19 years ago- Changed "read so far" to "received so far".
Wayne Davison [Mon, 2 Aug 2004 02:43:54 +0000 (02:43 +0000)]
- Changed "read so far" to "received so far".
- Output the who_am_i() information in the socket read/write errors to
  make it a little clearer who is complaining about what (for those
  familiar with rsync, at least -- e.g. it will help when users report
  errors).

19 years ago- Changed all the errors in parse_arguments() to use the err_buf so
Wayne Davison [Sat, 31 Jul 2004 20:09:54 +0000 (20:09 +0000)]
- Changed all the errors in parse_arguments() to use the err_buf so
  that a client talking to a daemon server actually gets the error.
- If a daemon has a list of exclusions, apply that list to various
  options to ensure that an excluded file can't be affected.
- Fixed an arg-checking problem when --files-from got passed to a
  daemon.

19 years agoIf we need to return an error during the startup phase and the other
Wayne Davison [Sat, 31 Jul 2004 19:55:42 +0000 (19:55 +0000)]
If we need to return an error during the startup phase and the other
side is expecting us to send them a files-from list, send the list
terminator before sending the error.

19 years agoDon't allow a --partial-dir setting to overwrite a server-excluded
Wayne Davison [Sat, 31 Jul 2004 18:13:20 +0000 (18:13 +0000)]
Don't allow a --partial-dir setting to overwrite a server-excluded
file (affects a daemon receiver only).

19 years ago- Document the change to --copy-links.
Wayne Davison [Sat, 31 Jul 2004 16:20:28 +0000 (16:20 +0000)]
- Document the change to --copy-links.
- Improved the "OUTPUT CHANGES" section.

19 years agoDocument the old side-effect to --copy-links and that it no longer
Wayne Davison [Sat, 31 Jul 2004 16:19:14 +0000 (16:19 +0000)]
Document the old side-effect to --copy-links and that it no longer
happens in a modern rsync w/o --keep-dirlinks.

19 years agoOne call to link_stat() (in set_perms()) needed to honor the setting
Wayne Davison [Sat, 31 Jul 2004 16:15:41 +0000 (16:15 +0000)]
One call to link_stat() (in set_perms()) needed to honor the setting
of keep_dirlinks if the current item is a directory.

19 years agoReset copy_links in the receiver.
Wayne Davison [Sat, 31 Jul 2004 16:14:27 +0000 (16:14 +0000)]
Reset copy_links in the receiver.

19 years agoProminently mention the changes to the text that gets output.
Wayne Davison [Sat, 31 Jul 2004 03:33:05 +0000 (03:33 +0000)]
Prominently mention the changes to the text that gets output.

19 years agoChanged "wrote"/"written" to "sent" and "read" to "received" in
Wayne Davison [Sat, 31 Jul 2004 03:32:42 +0000 (03:32 +0000)]
Changed "wrote"/"written" to "sent" and "read" to "received" in
the text that is output.