Wayne Davison [Wed, 7 Jun 2006 23:05:14 +0000 (23:05 +0000)]
Made "log file" and "syslog facility" per-module settings.
Wayne Davison [Mon, 5 Jun 2006 22:50:52 +0000 (22:50 +0000)]
Improved some comments in get_local_name() and improved the
error checking a little more.
Wayne Davison [Mon, 5 Jun 2006 17:00:47 +0000 (17:00 +0000)]
Mention the latest bug-fix.
Wayne Davison [Mon, 5 Jun 2006 16:56:50 +0000 (16:56 +0000)]
If we fail to create a new directory, skip trying to update
everything that is inside that dir.
Wayne Davison [Mon, 5 Jun 2006 16:52:34 +0000 (16:52 +0000)]
Added FLAG_MISSING.
Wayne Davison [Mon, 5 Jun 2006 16:17:33 +0000 (16:17 +0000)]
Got rid of an unused extern.
Wayne Davison [Thu, 1 Jun 2006 08:40:55 +0000 (08:40 +0000)]
Mention the temp-file fix.
Wayne Davison [Thu, 1 Jun 2006 08:04:50 +0000 (08:04 +0000)]
Got rid of the FNAME logcode enum.
Wayne Davison [Thu, 1 Jun 2006 08:04:47 +0000 (08:04 +0000)]
Changed rprintf() messages that started with a newline into two
rprintf() calls (the first of which just outputs an empty line).
Wayne Davison [Thu, 1 Jun 2006 08:04:43 +0000 (08:04 +0000)]
- Got rid of the FNAME logcode enum.
- rwrite() no longer supports newlines at the start of the string.
- maybe_log_item() avoids outputting a non-significant update to
the log file if the log-file-format doesn't include %i.
Wayne Davison [Thu, 1 Jun 2006 08:04:40 +0000 (08:04 +0000)]
- Got rid of the FNAME logcode enum.
- We no longer output " is uptodate" messages to the log file.
Wayne Davison [Thu, 1 Jun 2006 06:49:15 +0000 (06:49 +0000)]
Fixed a typo that set stdout_format_has_i instead of logfile_format_has_i.
Wayne Davison [Tue, 30 May 2006 18:35:36 +0000 (18:35 +0000)]
Mention the latest --log-* option changes.
Wayne Davison [Tue, 30 May 2006 18:26:17 +0000 (18:26 +0000)]
Authorize the current host in the rsyncd.conf file in addition
to localhost and 127.0.0.1 (which will hopefully fix the failing
of the daemon tests on FreeBSD).
Wayne Davison [Tue, 30 May 2006 17:47:20 +0000 (17:47 +0000)]
- Added the --log-file-format option to the daemon section.
- Updated and improved the --out-format section.
- Moved and improved the description of the non-daemon --log-file and
--log-file-format options.
Wayne Davison [Tue, 30 May 2006 17:41:54 +0000 (17:41 +0000)]
If the user specifies --log-file-format without --log-file,
ignore the useless value.
Wayne Davison [Tue, 30 May 2006 17:41:04 +0000 (17:41 +0000)]
Skip transfer logging if the logfile_format string is empty.
Wayne Davison [Tue, 30 May 2006 17:15:24 +0000 (17:15 +0000)]
Allow the --log-file-format=FMT option (if given when starting a daemon)
to override the "log format" setting.
Wayne Davison [Tue, 30 May 2006 17:14:17 +0000 (17:14 +0000)]
- Allow the --log-file-format option to override the "log format"
setting when starting a daemon.
- Make a daemon refuse all --log-file* options.
- Don't use refuse logic on daemon-mode options given to a daemon
module -- reject them via their own message.
Wayne Davison [Mon, 29 May 2006 22:57:05 +0000 (22:57 +0000)]
Document the new --log-file-format option and renamed --log-format to
--out-format.
Wayne Davison [Mon, 29 May 2006 22:57:01 +0000 (22:57 +0000)]
- Use the renamed stdout_format_has_i variable.
- Call log_item() with its new arg (and call it more often).
Wayne Davison [Mon, 29 May 2006 22:56:58 +0000 (22:56 +0000)]
Turn off the --log-file option on the server side for a local transfer.
Wayne Davison [Mon, 29 May 2006 22:56:55 +0000 (22:56 +0000)]
Use the renamed stdout_format_has_i variable.
Wayne Davison [Mon, 29 May 2006 22:56:51 +0000 (22:56 +0000)]
- Use the renamed stdout_format_has_i variable.
- Call log_item() with its new arg.
Wayne Davison [Mon, 29 May 2006 22:56:48 +0000 (22:56 +0000)]
- Use the renamed stdout_format_has_i, stdout_format_has_o_or_i, and
stdout_format variables.
- In rwrite(), make FNAME output only go to the client.
- Added an arg to log_item() that indicates what kind of output is
desired: FNAME (stdout only), FLOG (log file only), or FINFO (both).
Wayne Davison [Mon, 29 May 2006 22:56:45 +0000 (22:56 +0000)]
- Renamed log_format -> stdout_format.
- Renamed log_format_has_i -> stdout_format_has_i.
- Renamed log_format_has_o_or_i -> stdout_format_has_o_or_i.
- Changed the --log-format to --out-format (though we still accept
the old option, and still send it as well).
- Added the --log-file-format option (and got rid of the code that
made --out-format sometimes affect the log-file's format).
Wayne Davison [Mon, 29 May 2006 22:33:06 +0000 (22:33 +0000)]
The print_child_argv() function should be outputting FCLIENT
messages these days, not FINFO.
Wayne Davison [Thu, 18 May 2006 18:53:24 +0000 (18:53 +0000)]
The cleanup_set() call was not getting called w/o --partial.
Wayne Davison [Thu, 18 May 2006 18:52:40 +0000 (18:52 +0000)]
- Improved the setting of cleanup_new_fname and cleanup_fname.
- Don't try to keep a partial file if cleanup_new_fname is not set.
Wayne Davison [Thu, 18 May 2006 17:04:40 +0000 (17:04 +0000)]
Improved two lseek() error messages.
Wayne Davison [Wed, 17 May 2006 06:54:11 +0000 (06:54 +0000)]
Mention the latest fixes.
Wayne Davison [Tue, 16 May 2006 22:27:26 +0000 (22:27 +0000)]
Tweaked a couple things in try_dests_reg().
Wayne Davison [Sun, 14 May 2006 00:27:33 +0000 (00:27 +0000)]
Make --quiet quieter (like it used to be), but also don't allow it
to interfere with any logging of messages that is going on.
Wayne Davison [Thu, 11 May 2006 23:41:18 +0000 (23:41 +0000)]
Updated the (commented out) valgrind command.
Wayne Davison [Thu, 11 May 2006 23:38:10 +0000 (23:38 +0000)]
Got rid of the .ignore kluge.
Wayne Davison [Thu, 11 May 2006 07:54:33 +0000 (07:54 +0000)]
Added ".bzr/" to the default CVS exclusions.
Wayne Davison [Wed, 10 May 2006 18:34:32 +0000 (18:34 +0000)]
This file hasn't been needed for a while now...
Wayne Davison [Wed, 10 May 2006 16:37:07 +0000 (16:37 +0000)]
Added the updating of a symlink to the very latest nightly tar file.
Wayne Davison [Tue, 9 May 2006 18:44:58 +0000 (18:44 +0000)]
Mention the --log-file option.
Wayne Davison [Tue, 9 May 2006 18:31:24 +0000 (18:31 +0000)]
Document the new --log-file option.
Wayne Davison [Tue, 9 May 2006 18:31:19 +0000 (18:31 +0000)]
Output the progress message as FCLIENT instead of FINFO.
Wayne Davison [Tue, 9 May 2006 18:31:16 +0000 (18:31 +0000)]
Got rid of the call to log_exit() now that the cleanup code handles this.
Wayne Davison [Tue, 9 May 2006 18:31:13 +0000 (18:31 +0000)]
- Turned some FINFO rprintf() calls into FCLIENT calls that don't go
into a client-side log-file.
- Added a couple FLOG rprintf() calls.
Wayne Davison [Tue, 9 May 2006 18:31:10 +0000 (18:31 +0000)]
- Use the new logfile_* variables that are set by the --log-file
option instead of the old daemon_log_* variables.
- Renamed the "logfile" variable "logfile_fp".
- Enhanced the logic in rwrite() to handle client-side FLOG output.
Wayne Davison [Tue, 9 May 2006 18:31:06 +0000 (18:31 +0000)]
Some demon_log_* variables changed into logfile_* variables that are
also used by the new --log-file option.
Wayne Davison [Tue, 9 May 2006 18:31:03 +0000 (18:31 +0000)]
Added --log-file and several logfile_* support variables.
Wayne Davison [Tue, 9 May 2006 18:31:00 +0000 (18:31 +0000)]
Revised the logic for when to call log_exit() to handle the
new --log-file option.
Wayne Davison [Tue, 9 May 2006 18:30:57 +0000 (18:30 +0000)]
Tweaked the comment about log-message categories.
Wayne Davison [Tue, 9 May 2006 18:00:15 +0000 (18:00 +0000)]
Got rid of an unused variable.
Wayne Davison [Tue, 9 May 2006 17:46:04 +0000 (17:46 +0000)]
Mention the latest bugfix and improved an old description.
Wayne Davison [Tue, 9 May 2006 17:38:47 +0000 (17:38 +0000)]
If the --partial-dir value is an absolute path and we use a file in
it as an alternate basis file, make sure that we delete it when the
associated destination file is successfully updated.
Wayne Davison [Fri, 5 May 2006 20:41:17 +0000 (20:41 +0000)]
Improved the doc for --existing and --ignore-existing.
Wayne Davison [Fri, 5 May 2006 16:00:33 +0000 (16:00 +0000)]
- Moved the sanitizing of the partial_dir value here from options.c.
- Call die_on_unsafe_path() in a few needed places.
- Handle the server-excluded checks for an absolute partial_dir and
the --*-dest options.
Wayne Davison [Fri, 5 May 2006 15:58:44 +0000 (15:58 +0000)]
- Added some calls to die_on_unsafe_path() to the path-sanitizing code.
- Moved the sanitizing of the partial_dir value into main.c.
Wayne Davison [Fri, 5 May 2006 15:54:20 +0000 (15:54 +0000)]
- Added a call to die_on_unsafe_path() to handle_partial_dir().
- Fixed some strange slash handling in partial_dir_fname().
Wayne Davison [Fri, 5 May 2006 06:24:25 +0000 (06:24 +0000)]
A few minor changes to match the recent --help changes in
options.c.
Wayne Davison [Fri, 5 May 2006 06:16:22 +0000 (06:16 +0000)]
- Don't check HAVE_LINK directly, use SUPPORT_HARD_LINKS instead.
- Updated a few items in the --help text.
Wayne Davison [Fri, 5 May 2006 05:57:48 +0000 (05:57 +0000)]
Call the new die_on_unsafe_path() function in a few places.
Wayne Davison [Fri, 5 May 2006 05:56:37 +0000 (05:56 +0000)]
Call the new die_on_unsafe_path() function in a couple spots.
Wayne Davison [Fri, 5 May 2006 05:55:40 +0000 (05:55 +0000)]
Added a new function named die_on_unsafe_path(). This is used
by a non-chroot daemon to ensure that a user-supplied path does
not contain an unsafe symlink element.
Wayne Davison [Fri, 5 May 2006 05:53:36 +0000 (05:53 +0000)]
- Don't check HAVE_LINK directly, use SUPPORT_HARD_LINKS instead.
- Tweaked Paul's recent change just a tad.
- Fixed the output of --compare-dest when SUPPORT_HARD_LINKS is
not defined.
Wayne Davison [Fri, 5 May 2006 05:40:17 +0000 (05:40 +0000)]
Cast file->mode to an int when printing it via %o.
Paul Green [Thu, 4 May 2006 19:00:37 +0000 (19:00 +0000)]
Fix generator.c to avoid calling do_link() on systems that do not support
the link() function. The changes test OK on SuSE Linux and on my own
Stratus VOS system, but I would be grateful if other folks could
double-check this change. Paul G.
Wayne Davison [Thu, 4 May 2006 02:42:55 +0000 (02:42 +0000)]
A few more improvements.
Wayne Davison [Thu, 4 May 2006 02:38:58 +0000 (02:38 +0000)]
A few minor twiddles.
Wayne Davison [Thu, 4 May 2006 02:29:58 +0000 (02:29 +0000)]
Added/clarified the latest bug-fix info.
Wayne Davison [Wed, 3 May 2006 16:58:36 +0000 (16:58 +0000)]
Cast the enum in rwrite() when calling send_msg().
Wayne Davison [Wed, 3 May 2006 16:17:49 +0000 (16:17 +0000)]
Use send_msg() when forwarding a log message, not io_multiplex_write().
This allows send_msg() to decide if the message should be sent right
away, or should be deferred.
Wayne Davison [Wed, 3 May 2006 16:17:46 +0000 (16:17 +0000)]
Changed read_msg_fd() to always use send_msg()/rwrite() instead of
sometimes calling io_multiplex_write()/rwrite() or msg_list_add().
This simplifies the code that does the defer_forwarding_messages
checking because it can now be done in just one place, in send_msg()
(because rwrite() also calls send_msg() now when forwarding a msg).
Wayne Davison [Wed, 3 May 2006 06:32:59 +0000 (06:32 +0000)]
A small optimization to the new code in msg2sndr_flush().
Wayne Davison [Wed, 3 May 2006 06:11:11 +0000 (06:11 +0000)]
Made log_init() call timestring() instead of just localtime() prior to a
chroot (note that timestring() makes use of localtime() plus strftime()).
Wayne Davison [Wed, 3 May 2006 05:37:00 +0000 (05:37 +0000)]
Improved the last bugfix description.
Wayne Davison [Wed, 3 May 2006 05:22:01 +0000 (05:22 +0000)]
Mention the fix for the "unexpected tag 3" bug.
Wayne Davison [Wed, 3 May 2006 05:19:01 +0000 (05:19 +0000)]
Fixed a bug where deferred MSG_INFO/MSG_ERROR/MSG_LOG messages were
not being forwarded from the generator to the sender using rwrite()
(and MSG_LOG messages didn't need to be deferred at all).
Wayne Davison [Wed, 3 May 2006 00:49:31 +0000 (00:49 +0000)]
Added module_dirlen now that utils.o needs it.
Wayne Davison [Wed, 3 May 2006 00:48:32 +0000 (00:48 +0000)]
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
need to ensure that it doesn't follow any unsafe symlinks.
- Got rid of startdir_depth code (in favor of util.c's curr_dir_depth).
- Use the new calling syntax for sanitize_path().
Wayne Davison [Wed, 3 May 2006 00:48:29 +0000 (00:48 +0000)]
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
need to ensure that it doesn't follow any unsafe symlinks.
- Don't sanitize the string of a symlink -- just use it verbatim.
Wayne Davison [Wed, 3 May 2006 00:48:26 +0000 (00:48 +0000)]
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
need to ensure that it doesn't follow any unsafe symlinks.
- Use the new calling syntax for sanitize_path().
Wayne Davison [Wed, 3 May 2006 00:48:23 +0000 (00:48 +0000)]
- Added curr_dir_depth, a variable that keeps track of the depth past
the module root when a sanitizing daemon is running.
- Use the new calling syntax for sanitize_path().
- Updated count_dir_elements() to not count a . component.
- Improved sanitize_path() so that it can take a symlink target string
and combine it with the symlink's name when the target is relative.
When working with a symlink, the routine also returns NULL if any ..
elements try to escape past the module root.
- The new routine safe_stat(), is used when sanitizing paths (i.e. when
the daemon does not have chroot enabled). This manually follows a
chain of symlinks, ensuring they don't try to escape the module.
Wayne Davison [Wed, 3 May 2006 00:48:20 +0000 (00:48 +0000)]
Use the new calling syntax for sanitize_path().
Wayne Davison [Tue, 2 May 2006 19:52:28 +0000 (19:52 +0000)]
Tweaked some variable names in readlink_stat() and link_stat().
Wayne Davison [Tue, 2 May 2006 17:38:34 +0000 (17:38 +0000)]
Mention the latest bug-fixes.
Wayne Davison [Tue, 2 May 2006 17:13:11 +0000 (17:13 +0000)]
Test the new symlink sanitizing fix by using ::test-scratchdir/to
as the destination and including a symlink with a leading "../" .
Wayne Davison [Tue, 2 May 2006 17:11:42 +0000 (17:11 +0000)]
Tweaked our test config file to include transfer logging that
includes %i, and to have a test-scratchdir module.
Wayne Davison [Tue, 2 May 2006 16:52:51 +0000 (16:52 +0000)]
Moved the sanitizing of a symlink's link string here from flist.c.
Wayne Davison [Tue, 2 May 2006 16:46:48 +0000 (16:46 +0000)]
Fixed a problem in the --link-dest processing where -I (--ignore-times)
or --size-only could adversely affect our ability to find identical
files to hard-link.
Wayne Davison [Tue, 2 May 2006 16:42:20 +0000 (16:42 +0000)]
Set a new variable, startdir_depth, to indicate how deep the
destination dir is in a daemon module's path.
Wayne Davison [Tue, 2 May 2006 16:36:07 +0000 (16:36 +0000)]
Got rid of the sanitizing of a symlink's link string because it
is happening too early to work correctly (before we know what
our destination-directory's depth in the module will be).
Wayne Davison [Fri, 28 Apr 2006 17:34:53 +0000 (17:34 +0000)]
We can't check the --*-dest args against the server filter rules
here because we don't know what the args are going to be relative
to yet.
Wayne Davison [Fri, 28 Apr 2006 16:58:20 +0000 (16:58 +0000)]
We sanitize the --*-dest args here so they can be relative to the
destination directory.
Wayne Davison [Fri, 28 Apr 2006 16:57:39 +0000 (16:57 +0000)]
Moved the sanitizing of the --*-dest args into main.c.
Wayne Davison [Tue, 25 Apr 2006 23:51:12 +0000 (23:51 +0000)]
Updated the FSF's address to an even newer one.
Wayne Davison [Tue, 25 Apr 2006 20:23:34 +0000 (20:23 +0000)]
- Updated the address for the FSF in the opening comment.
- Standardized the format of the opening comment, including adding a
brief description of what's in the file for those that lacked it.
- Added some missing copyright lines.
- Some minor whitespace tweaks (in a few of the files).
Wayne Davison [Mon, 24 Apr 2006 23:43:45 +0000 (23:43 +0000)]
Tweaked some whitespace to match the latest version from autoconf.
Wayne Davison [Mon, 24 Apr 2006 22:24:40 +0000 (22:24 +0000)]
Incremented the version to 2.6.9cvs.
Wayne Davison [Mon, 24 Apr 2006 22:23:56 +0000 (22:23 +0000)]
Rolled over the news file for the next version.
Wayne Davison [Mon, 24 Apr 2006 22:20:10 +0000 (22:20 +0000)]
Updated to the version dated 2006-02-23.
Wayne Davison [Sat, 22 Apr 2006 15:39:57 +0000 (15:39 +0000)]
Preparing for release of 2.6.8
Wayne Davison [Fri, 21 Apr 2006 16:57:13 +0000 (16:57 +0000)]
Mention the phase-unknown changes.
Wayne Davison [Fri, 21 Apr 2006 16:40:19 +0000 (16:40 +0000)]
- Got rid of the (mostly useless) io_read_phase and io_write_phase
variables. In the future it might be useful to get rsync to
mention what kind of a message it was trying to write, but the
'phase "unknown"' output was ubiquitous and confusing.
- Got rid of the completely unused write_int_named() function.