rsync/rsync.git
19 years agoA new target, build_gen, works like gen w/o man-page generation.
Wayne Davison [Fri, 8 Oct 2004 19:52:38 +0000 (19:52 +0000)]
A new target, build_gen, works like gen w/o man-page generation.

19 years agoImproved an error message by using rsyserr().
Wayne Davison [Thu, 7 Oct 2004 17:02:39 +0000 (17:02 +0000)]
Improved an error message by using rsyserr().

19 years agoMention in -a's usage message that -H isn't implied.
Wayne Davison [Thu, 7 Oct 2004 17:00:36 +0000 (17:00 +0000)]
Mention in -a's usage message that -H isn't implied.

19 years agoRe-enable the "!" token-handling in a .cvsignore file.
Wayne Davison [Wed, 6 Oct 2004 00:10:08 +0000 (00:10 +0000)]
Re-enable the "!" token-handling in a .cvsignore file.

19 years agoThe device-handling code is no longer omitted based on HAVE_MKNOD
Wayne Davison [Fri, 1 Oct 2004 06:58:23 +0000 (06:58 +0000)]
The device-handling code is no longer omitted based on HAVE_MKNOD
(this is because do_mknod() might be using a different function
to handle fifos and sockets without the help of mknod().

19 years agoImproved do_mknod() so that it handles creating a fifo file
Wayne Davison [Fri, 1 Oct 2004 06:56:14 +0000 (06:56 +0000)]
Improved do_mknod() so that it handles creating a fifo file
and a socket file when mknod() itself does not.

19 years agoMake sure that all programs that use syscall.o also include
Wayne Davison [Fri, 1 Oct 2004 06:53:26 +0000 (06:53 +0000)]
Make sure that all programs that use syscall.o also include
lib/compat.o so that we can use strlcpy().

19 years ago- Check if struct sockaddr_un has a sun_len member.
Wayne Davison [Fri, 1 Oct 2004 06:51:34 +0000 (06:51 +0000)]
- Check if struct sockaddr_un has a sun_len member.
- Check if mknod() can make a fifo file.
- Check if mknod() can make a socket file.

19 years agoSome systems need do_mkstemp() to use setmode() to set O_BINARY.
Wayne Davison [Fri, 1 Oct 2004 02:34:22 +0000 (02:34 +0000)]
Some systems need do_mkstemp() to use setmode() to set O_BINARY.

19 years agoCheck for the setmode() function.
Wayne Davison [Fri, 1 Oct 2004 02:31:10 +0000 (02:31 +0000)]
Check for the setmode() function.

19 years agoPreparing for release of 2.6.3
Wayne Davison [Thu, 30 Sep 2004 16:36:42 +0000 (16:36 +0000)]
Preparing for release of 2.6.3

19 years agoMention the enhancement that was made (quite a while ago) to the
Wayne Davison [Thu, 30 Sep 2004 10:46:43 +0000 (10:46 +0000)]
Mention the enhancement that was made (quite a while ago) to the
daemon's wildcard-expansion limit (formerly 1000 items, now memory
limited).

19 years agoRefined the text of a few of the news items.
Wayne Davison [Thu, 30 Sep 2004 09:58:39 +0000 (09:58 +0000)]
Refined the text of a few of the news items.

19 years ago- Mention the fix for lost output with 2>&1.
Wayne Davison [Thu, 30 Sep 2004 09:37:38 +0000 (09:37 +0000)]
- Mention the fix for lost output with 2>&1.
- Prepare the file for the 2.6.3 final release.

19 years agoMention the (anticipated) 2.6.3 release date.
Wayne Davison [Thu, 30 Sep 2004 09:36:29 +0000 (09:36 +0000)]
Mention the (anticipated) 2.6.3 release date.

19 years agoSet our stderr output to blocking I/O to avoid any loss of output.
Wayne Davison [Wed, 29 Sep 2004 17:58:07 +0000 (17:58 +0000)]
Set our stderr output to blocking I/O to avoid any loss of output.

19 years agoChanged the errors concerning the secrets file to output with FLOG
Wayne Davison [Fri, 24 Sep 2004 17:04:05 +0000 (17:04 +0000)]
Changed the errors concerning the secrets file to output with FLOG
instead of FERROR.

19 years ago- Make sure that match_address() always restores the "tok" string,
Wayne Davison [Fri, 24 Sep 2004 16:50:07 +0000 (16:50 +0000)]
- Make sure that match_address() always restores the "tok" string,
  even on error.
- Turned the various FERROR messages into (the more proper) FLOG.

19 years agoTurned the various FERROR messages into (the more proper) FLOG.
Wayne Davison [Fri, 24 Sep 2004 16:39:41 +0000 (16:39 +0000)]
Turned the various FERROR messages into (the more proper) FLOG.

19 years agoAdded some more --inplace info (i.e. it implies --partial and conflicts
Wayne Davison [Thu, 23 Sep 2004 21:15:04 +0000 (21:15 +0000)]
Added some more --inplace info (i.e. it implies --partial and conflicts
with 3 basis-file-affecting options).

19 years agoMade the refused-option message clearer, like Paul suggested.
Wayne Davison [Thu, 23 Sep 2004 17:39:05 +0000 (17:39 +0000)]
Made the refused-option message clearer, like Paul suggested.

19 years agoCreate a FIFO using mkfifo.
Wayne Davison [Thu, 23 Sep 2004 16:34:43 +0000 (16:34 +0000)]
Create a FIFO using mkfifo.

19 years agoAssume that gettimeofday() takes two arguments when cross-compiling.
Wayne Davison [Thu, 23 Sep 2004 16:00:44 +0000 (16:00 +0000)]
Assume that gettimeofday() takes two arguments when cross-compiling.

19 years agoOnly output major/minor info for a character/block device, not for
Wayne Davison [Thu, 23 Sep 2004 05:33:48 +0000 (05:33 +0000)]
Only output major/minor info for a character/block device, not for
a FIFO or a socket.

19 years agoMention that --partial-dir now sets an exclude that helps to avoid
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.

19 years agoIf the partial-dir value is relative, add a directory-exclude for it
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.

19 years agoIn get_exclude_tok(), if XFLG_DIRECTORY was passed in the xflags,
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.

19 years agoAdded XFLG_DIRECTORY define.
Wayne Davison [Wed, 22 Sep 2004 04:10:10 +0000 (04:10 +0000)]
Added XFLG_DIRECTORY define.

19 years agoPreparing for release of 2.6.3pre2
Wayne Davison [Tue, 21 Sep 2004 16:10:35 +0000 (16:10 +0000)]
Preparing for release of 2.6.3pre2

19 years agoMention the daemon-socket-connection change.
Wayne Davison [Tue, 21 Sep 2004 15:47:20 +0000 (15:47 +0000)]
Mention the daemon-socket-connection change.

19 years agoMentioned a couple more changes.
Wayne Davison [Tue, 21 Sep 2004 15:31:33 +0000 (15:31 +0000)]
Mentioned a couple more changes.

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.