rsync/rsync.git
19 years agoAllow "port" to be specified in the rsyncd.conf file.
Wayne Davison [Sat, 27 Nov 2004 18:24:12 +0000 (18:24 +0000)]
Allow "port" to be specified in the rsyncd.conf file.

19 years agoAdded tests for multiple --compare-dest options and --copy-dest.
Wayne Davison [Sat, 27 Nov 2004 17:59:48 +0000 (17:59 +0000)]
Added tests for multiple --compare-dest options and --copy-dest.

19 years agoAdded support for multiple --*-dest options.
Wayne Davison [Sat, 27 Nov 2004 17:56:58 +0000 (17:56 +0000)]
Added support for multiple --*-dest options.

19 years ago- Added parsing for --copy-dest.
Wayne Davison [Sat, 27 Nov 2004 17:52:51 +0000 (17:52 +0000)]
- Added parsing for --copy-dest.
- Added support for multiple --*-dest options.

19 years agoThe compare_dest variable changed.
Wayne Davison [Sat, 27 Nov 2004 17:52:49 +0000 (17:52 +0000)]
The compare_dest variable changed.

19 years ago- Added support for --copy-dest, which behaves like --link-dest,
Wayne Davison [Sat, 27 Nov 2004 17:52:47 +0000 (17:52 +0000)]
- Added support for --copy-dest, which behaves like --link-dest,
  but it copies the identical files instead of hard-linking them.
- Added support for multiple --*-dest options.

19 years ago- Define MAX_BASIS_DIRS.
Wayne Davison [Sat, 27 Nov 2004 17:52:45 +0000 (17:52 +0000)]
- Define MAX_BASIS_DIRS.
- Renamed FNAMECMP_CMPDEST to FNAMECMP_BASIS_DIR.

19 years agoDocument --copy-dest and the support for multiple --*-dest options.
Wayne Davison [Sat, 27 Nov 2004 17:52:42 +0000 (17:52 +0000)]
Document --copy-dest and the support for multiple --*-dest options.

19 years agoFixed a socket-data conflict when verbosity is >= 2 and the
Wayne Davison [Sat, 20 Nov 2004 17:10:54 +0000 (17:10 +0000)]
Fixed a socket-data conflict when verbosity is >= 2 and the
files-from list is coming from a remote receiver.

19 years agoMention latest fix.
Wayne Davison [Sat, 20 Nov 2004 07:23:20 +0000 (07:23 +0000)]
Mention latest fix.

19 years agoCall set_msg_fd_in() during the early phase of being a client sender
Wayne Davison [Sat, 20 Nov 2004 07:08:44 +0000 (07:08 +0000)]
Call set_msg_fd_in() during the early phase of being a client sender
so that we monitor the socket for any messages that it might send to
us (and thus avoid a potential hang when verbosity is high).

19 years agoSome minor improvements to read_msg_fd() made it safe to use both
Wayne Davison [Sat, 20 Nov 2004 07:07:37 +0000 (07:07 +0000)]
Some minor improvements to read_msg_fd() made it safe to use both
set_msg_fd_in() and read_msg_fd() during the early phase of being
a client sender (up through the sending of the file list).  This
makes sure that the sender monitors the socket from the receiver
for any messages that it might send to us, and thus avoids a hang
when verbosity is high.

19 years agoMention that the --bwlimit may now be combined with --daemon.
Wayne Davison [Wed, 17 Nov 2004 19:41:09 +0000 (19:41 +0000)]
Mention that the --bwlimit may now be combined with --daemon.

19 years ago- Mention the latest enhancements.
Wayne Davison [Wed, 17 Nov 2004 19:35:11 +0000 (19:35 +0000)]
- Mention the latest enhancements.
- Aged the 2.6.3 news into OLDNEWS.

19 years agoAged the 2.6.3 release news.
Wayne Davison [Wed, 17 Nov 2004 19:34:31 +0000 (19:34 +0000)]
Aged the 2.6.3 release news.

19 years ago- Added the --bwlimit option to the options that are handled in
Wayne Davison [Wed, 17 Nov 2004 19:29:20 +0000 (19:29 +0000)]
- Added the --bwlimit option to the options that are handled in
  combination with --daemon.  This value is both a default bwlimit
  value and a maximum limit if the client asks for something larger.
- Enabled popt support for option aliases.

19 years agoSeparate the daemon options from the normal client options.
Wayne Davison [Wed, 17 Nov 2004 19:11:53 +0000 (19:11 +0000)]
Separate the daemon options from the normal client options.

19 years agoTweaked the error code for a pipe() failure.
Wayne Davison [Sat, 13 Nov 2004 22:32:34 +0000 (22:32 +0000)]
Tweaked the error code for a pipe() failure.

19 years agoMentioned the new fork() check.
Wayne Davison [Sat, 13 Nov 2004 21:50:56 +0000 (21:50 +0000)]
Mentioned the new fork() check.

19 years agoDie with an appropriate error if do_fork() fails.
Wayne Davison [Sat, 13 Nov 2004 21:49:26 +0000 (21:49 +0000)]
Die with an appropriate error if do_fork() fails.

19 years agoMention the new --max-size option.
Wayne Davison [Thu, 11 Nov 2004 01:45:31 +0000 (01:45 +0000)]
Mention the new --max-size option.

19 years agoObey the max_size setting.
Wayne Davison [Thu, 11 Nov 2004 01:45:28 +0000 (01:45 +0000)]
Obey the max_size setting.

19 years agoAdded the --max-size option.
Wayne Davison [Thu, 11 Nov 2004 01:45:25 +0000 (01:45 +0000)]
Added the --max-size option.

19 years agoDocument --max-size.
Wayne Davison [Thu, 11 Nov 2004 01:45:22 +0000 (01:45 +0000)]
Document --max-size.

19 years agoChecking in the g2r-basis-filename patch that ensures that the receiver
Wayne Davison [Wed, 3 Nov 2004 20:30:31 +0000 (20:30 +0000)]
Checking in the g2r-basis-filename patch that ensures that the receiver
uses the same basis file that the generator used (avoiding a duplicate
check that could cause a hang if a compare-dest file was a named pipe).

19 years agoAlways include lib/snprintf.o when we include lib/compat.o.
Wayne Davison [Tue, 2 Nov 2004 16:47:15 +0000 (16:47 +0000)]
Always include lib/snprintf.o when we include lib/compat.o.

19 years agoMention latest fix.
Wayne Davison [Wed, 27 Oct 2004 06:35:50 +0000 (06:35 +0000)]
Mention latest fix.

19 years agoDon't ever call make_backup() if we're removing a destination directory
Wayne Davison [Wed, 27 Oct 2004 06:34:13 +0000 (06:34 +0000)]
Don't ever call make_backup() if we're removing a destination directory
(just remove it).

19 years agoMention the latest bug-fix.
Wayne Davison [Mon, 18 Oct 2004 20:44:09 +0000 (20:44 +0000)]
Mention the latest bug-fix.

19 years agoFixed an off-by-one error in the handling of --max-delete=N.
Wayne Davison [Mon, 18 Oct 2004 20:41:57 +0000 (20:41 +0000)]
Fixed an off-by-one error in the handling of --max-delete=N.

19 years agoMention new option parsing.
Wayne Davison [Thu, 14 Oct 2004 17:11:28 +0000 (17:11 +0000)]
Mention new option parsing.

19 years agoSeparate the daemon options so that the user can't mix client options
Wayne Davison [Thu, 14 Oct 2004 17:08:15 +0000 (17:08 +0000)]
Separate the daemon options so that the user can't mix client options
with daemon options and visa versa.

19 years agoIt seems that some popt releases don't define POPT_TABLEEND, so don't
Wayne Davison [Thu, 14 Oct 2004 09:11:12 +0000 (09:11 +0000)]
It seems that some popt releases don't define POPT_TABLEEND, so don't
use it.

19 years agoDecided we don't need the build_gen target after all.
Wayne Davison [Tue, 12 Oct 2004 20:08:51 +0000 (20:08 +0000)]
Decided we don't need the build_gen target after all.

19 years ago- Got rid of some awkward spacing in the long_options table.
Wayne Davison [Mon, 11 Oct 2004 10:43:25 +0000 (10:43 +0000)]
- Got rid of some awkward spacing in the long_options table.
- Use the POPT_TABLEEND macro to end the long_options table.
- Improved the count_args() function to accept a NULL pointer.
- Simplified the code that sets *argc using count_args().

19 years agoMention the latest changes.
Wayne Davison [Sun, 10 Oct 2004 20:33:07 +0000 (20:33 +0000)]
Mention the latest changes.

19 years agoCall flush_write_file() in _exit_cleanup() if we are keeping a
Wayne Davison [Sun, 10 Oct 2004 20:31:54 +0000 (20:31 +0000)]
Call flush_write_file() in _exit_cleanup() if we are keeping a
partially-received file.

19 years agoHandle systems where the makedev() macro is named mkdev().
Wayne Davison [Fri, 8 Oct 2004 21:27:22 +0000 (21:27 +0000)]
Handle systems where the makedev() macro is named mkdev().

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.