Wayne Davison [Mon, 14 Jun 2004 15:09:36 +0000 (15:09 +0000)]
If --partial was specified, make sure that make_backup is turned
off during the second (retry) phase of the transfer to avoid
making a second backup of a file (which would lose the original).
Wayne Davison [Sun, 13 Jun 2004 14:18:48 +0000 (14:18 +0000)]
Added a short msleep() after option_error() before we exit. This
ensures that the remote client has time to read our error message
while it is trying to write data to us before it gets a socket
error.
Wayne Davison [Sat, 12 Jun 2004 18:22:39 +0000 (18:22 +0000)]
- Changed some FERROR log calls to FLOG.
- Improved the option-error-reporting to actually get the error back
to the user (by getting I/O multiplexing started).
Wayne Davison [Fri, 11 Jun 2004 07:40:57 +0000 (07:40 +0000)]
- Made readlink_stat() and link_stat() optionally follow a symlink
to a dir. This fixes deletions inside "kept" symlinked dirs.
- Call link_stat() with its new arg (for --keep-dirlinks support).
Wayne Davison [Tue, 8 Jun 2004 22:18:04 +0000 (22:18 +0000)]
- Made the maximum-fd computation prior to a select() use the same idiom
in both the read and write code (also use a better variable name).
- Made the bytes-available code at the end of the select() loop use the
same flow of control in the read and the write code.
Wayne Davison [Mon, 7 Jun 2004 22:51:14 +0000 (22:51 +0000)]
Improved rwrite() in two ways:
- We no longer assume that the buffer is null terminated (daemon
mode would ignore the len when logging a message).
- Errors in daemon mode are now sent to both the log and the user.
Wayne Davison [Sun, 6 Jun 2004 19:15:58 +0000 (19:15 +0000)]
- Got rid of some useless calls to msg_list_push().
- Added a couple checks to ensure that the receiver doesn't mix two
clashing kinds of writes on the msg_fd_out pipe.
- Made sure that the read code in the receiver flushes the msg_fd_out
pipe, if needed.
Wayne Davison [Sun, 6 Jun 2004 19:02:09 +0000 (19:02 +0000)]
Make sure our select calls don't sleep for over one minute at a time,
even when io_timeout is a longer value (though the code in options.c
might set it to a shorter value if io_timeout is small).
Wayne Davison [Fri, 21 May 2004 09:41:38 +0000 (09:41 +0000)]
- Improved option_error() to make sure that the user sees the error in
daemon mode.
- Got rid of some repetitious outputting of the same error-message.
Wayne Davison [Fri, 21 May 2004 08:27:04 +0000 (08:27 +0000)]
Changed sum_init() to take a seed value as an arg instead of always
using checksum_init. This fixes an authentication problem in server
mode (as pointed out by Craig Barratt).
Wayne Davison [Wed, 19 May 2004 22:20:56 +0000 (22:20 +0000)]
- Mention the change to the daemon-mode's exclude handling.
- Mention the new "write only" daemon-config option.
- Fixed another entry to refer to the right files.
Wayne Davison [Tue, 18 May 2004 00:41:55 +0000 (00:41 +0000)]
- Use fromdir, todir, and tmpdir instead of FROM, TO, and TMP.
- Added chkdir.
- Quote the dir expansions to avoid problems with spaces.
- Added "exclude = foobar.baz" the the rsync.conf file we create.
Wayne Davison [Sun, 16 May 2004 07:28:24 +0000 (07:28 +0000)]
- Save some memory in each exclude_struct item by dumping the "include"
and "directory" ints and using bits in the match_flags value instead.
- Added defines for the new match-flag values, including a new one that
lets get_exclude_tok() properly return an indication that it parsed
the list-clearing token.
Wayne Davison [Sat, 15 May 2004 19:31:16 +0000 (19:31 +0000)]
- Improved rsyserr() to prefix RSYNC_NAME (as the TODO requested),
to construct the string in a better manner, and to have a buffer
big enough to hold a full MAXPATHLEN filename plus some error
text.
- Fixed some comments referring to vsprintf() returning -1 -- our
configuration process now ensures that we replace such a function
with our own lib version.
Wayne Davison [Sat, 15 May 2004 19:31:13 +0000 (19:31 +0000)]
- Complain about an exclude that was too long and then dump it
(used to be silently truncated).
- Include extra space in our exclude-reading buffers so that we
can fit a 2-char prefix and a trailing slash and still handle
a MAXPATHLEN name.