Wayne Davison [Wed, 22 Sep 2004 04:14:43 +0000 (04:14 +0000)]
Mention that --partial-dir now sets an exclude that helps to avoid
losing the partial data when deleting, and avoid copying any partial
data from the sender.
Wayne Davison [Wed, 22 Sep 2004 04:12:13 +0000 (04:12 +0000)]
If the partial-dir value is relative, add a directory-exclude for it
to the end of the user's exclude list.
Wayne Davison [Wed, 22 Sep 2004 04:11:15 +0000 (04:11 +0000)]
In get_exclude_tok(), if XFLG_DIRECTORY was passed in the xflags,
set MATCHFLG_DIRECTORY in the mflags we return.
Wayne Davison [Wed, 22 Sep 2004 04:10:10 +0000 (04:10 +0000)]
Added XFLG_DIRECTORY define.
Wayne Davison [Tue, 21 Sep 2004 16:10:35 +0000 (16:10 +0000)]
Preparing for release of 2.6.3pre2
Wayne Davison [Tue, 21 Sep 2004 15:47:20 +0000 (15:47 +0000)]
Mention the daemon-socket-connection change.
Wayne Davison [Tue, 21 Sep 2004 15:31:33 +0000 (15:31 +0000)]
Mentioned a couple more changes.
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.
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.
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.
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.
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.
Wayne Davison [Mon, 20 Sep 2004 05:17:57 +0000 (05:17 +0000)]
Use $diffopt instead of -u.
Wayne Davison [Mon, 20 Sep 2004 05:01:38 +0000 (05:01 +0000)]
Got rid of a superfluous static buffer.
Wayne Davison [Mon, 20 Sep 2004 04:59:01 +0000 (04:59 +0000)]
A simple test of the backup functionality.
Wayne Davison [Mon, 20 Sep 2004 04:17:42 +0000 (04:17 +0000)]
Improved a comment.
Wayne Davison [Sat, 18 Sep 2004 17:37:54 +0000 (17:37 +0000)]
Mention 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.
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).
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.
Wayne Davison [Fri, 17 Sep 2004 16:53:51 +0000 (16:53 +0000)]
Mention the latest changes.
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.
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).
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.
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.
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.
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).
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.
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.
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.
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.
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().
Wayne Davison [Tue, 7 Sep 2004 21:26:26 +0000 (21:26 +0000)]
Made full_write() non-static.
Wayne Davison [Tue, 7 Sep 2004 20:37:36 +0000 (20:37 +0000)]
W mustn't backup an inplace file in finish_transfer().
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).
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.
Wayne Davison [Tue, 7 Sep 2004 17:03:51 +0000 (17:03 +0000)]
A minor optimization to the partial-dir code.
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.
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.
Wayne Davison [Sun, 5 Sep 2004 21:30:00 +0000 (21:30 +0000)]
Fixed a typo Paul pointed out.
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.
Wayne Davison [Wed, 18 Aug 2004 07:50:36 +0000 (07:50 +0000)]
Some fixes & clarifications for the BATCH MODE section.
Wayne Davison [Wed, 18 Aug 2004 07:49:03 +0000 (07:49 +0000)]
Few few more minor improvements to the existing change items.
Wayne Davison [Wed, 18 Aug 2004 07:00:17 +0000 (07:00 +0000)]
Corrected/enhanced a comment.
Wayne Davison [Thu, 12 Aug 2004 21:02:13 +0000 (21:02 +0000)]
One more NEWS tweak.
Wayne Davison [Thu, 12 Aug 2004 20:58:33 +0000 (20:58 +0000)]
Mention the security fix.
Wayne Davison [Thu, 12 Aug 2004 20:48:05 +0000 (20:48 +0000)]
Got rid of one item.
Wayne Davison [Thu, 12 Aug 2004 20:06:57 +0000 (20:06 +0000)]
Preparing for release of 2.6.3pre1
Wayne Davison [Thu, 12 Aug 2004 20:04:47 +0000 (20:04 +0000)]
One last minor tweak to clean_fname().
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.
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.
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.
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.
Wayne Davison [Thu, 12 Aug 2004 18:20:07 +0000 (18:20 +0000)]
Call clean_flist() with its new "collapse_dot_dot" arg.
Wayne Davison [Thu, 12 Aug 2004 10:13:45 +0000 (10:13 +0000)]
One (hopefully) last change to the sanitize_path() code.
Wayne Davison [Thu, 12 Aug 2004 09:32:16 +0000 (09:32 +0000)]
Simplified sanitize_path() logic a little.
Wayne Davison [Thu, 12 Aug 2004 01:27:26 +0000 (01:27 +0000)]
More improvements and a couple missing items.
Wayne Davison [Thu, 12 Aug 2004 00:58:01 +0000 (00:58 +0000)]
Improved a comment.
Wayne Davison [Thu, 12 Aug 2004 00:52:58 +0000 (00:52 +0000)]
Got rid of a comment that became inapplicable.
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.
Wayne Davison [Wed, 11 Aug 2004 23:41:03 +0000 (23:41 +0000)]
Call sanitize_path() with updated args.
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.
Wayne Davison [Wed, 11 Aug 2004 17:33:52 +0000 (17:33 +0000)]
Ignore new getfsdev executable.
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.
Wayne Davison [Tue, 10 Aug 2004 18:15:33 +0000 (18:15 +0000)]
A minor improvement in check_one_exclude().
Wayne Davison [Mon, 9 Aug 2004 20:58:26 +0000 (20:58 +0000)]
Mention the early-chmod change.
Wayne Davison [Mon, 9 Aug 2004 20:57:10 +0000 (20:57 +0000)]
Set each file's permissions and modtime before it gets renamed.
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.
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".
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.
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.
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.
Wayne Davison [Fri, 6 Aug 2004 22:36:55 +0000 (22:36 +0000)]
Made clean_fname() return the length of the string.
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.
Wayne Davison [Thu, 5 Aug 2004 22:58:17 +0000 (22:58 +0000)]
Set "eob" correctly in add_exclude_file().
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.
Wayne Davison [Thu, 5 Aug 2004 21:57:09 +0000 (21:57 +0000)]
Use the new sanitize_path() calling syntax.
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().
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.
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.
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.
Wayne Davison [Tue, 3 Aug 2004 15:37:54 +0000 (15:37 +0000)]
Use MAX_MAP_SIZE in the args to map_file().
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().
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.
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).
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.
Wayne Davison [Tue, 3 Aug 2004 08:05:17 +0000 (08:05 +0000)]
- Added define for MAX_BLOCK_SIZE.
- Increased the MAX_MAP_SIZE.
Wayne Davison [Tue, 3 Aug 2004 07:58:48 +0000 (07:58 +0000)]
Updated the description of the --block-size option.
Wayne Davison [Mon, 2 Aug 2004 22:06:17 +0000 (22:06 +0000)]
Mention the open64()/mkstemp64() configure change.
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().
Wayne Davison [Mon, 2 Aug 2004 21:54:49 +0000 (21:54 +0000)]
Test for functions open64() and mkstemp64().
Wayne Davison [Mon, 2 Aug 2004 16:49:20 +0000 (16:49 +0000)]
Got rid of trailing whitespace.
Wayne Davison [Mon, 2 Aug 2004 07:41:04 +0000 (07:41 +0000)]
Mention the "refuse options" change.
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.
Wayne Davison [Mon, 2 Aug 2004 05:01:36 +0000 (05:01 +0000)]
Document the improved "refuse options" syntax.
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.
Wayne Davison [Mon, 2 Aug 2004 04:50:33 +0000 (04:50 +0000)]
Got rid of unused externs.
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).
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.
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.