Wayne Davison [Sat, 9 Sep 2006 18:59:10 +0000 (18:59 +0000)]
The --delete-excluded code now also drops any merge file that was
marked as MATCHFLG_NO_PREFIXES because they can only contain
include/exclude rules.
Wayne Davison [Sat, 9 Sep 2006 18:56:13 +0000 (18:56 +0000)]
Document the new RSYNC_PID environment variable.
Wayne Davison [Sat, 9 Sep 2006 18:53:23 +0000 (18:53 +0000)]
Try various long, long-long, etc. types for a 64-bit integer
before trying off64_t.
Wayne Davison [Sat, 9 Sep 2006 18:31:45 +0000 (18:31 +0000)]
Mention the latest changes.
Wayne Davison [Sat, 9 Sep 2006 17:59:02 +0000 (17:59 +0000)]
Added the RSYNC_PID environment variable for the pre-/post-xfer
commands so that the pre-xfer command has a unique ID it can
use to cache information for the post-xfer command.
Wayne Davison [Sat, 2 Sep 2006 20:05:08 +0000 (20:05 +0000)]
A slight simplification to the last change.
Wayne Davison [Sat, 2 Sep 2006 19:57:56 +0000 (19:57 +0000)]
An even better way to un-backslash-escape the filenames from find.
Wayne Davison [Fri, 1 Sep 2006 00:43:52 +0000 (00:43 +0000)]
Improved the --delete-excluded test based on Matt's input and
another corner case I noticed.
Wayne Davison [Fri, 1 Sep 2006 00:42:39 +0000 (00:42 +0000)]
Matt pointed out that the code was not properly dropping excludes
that were read from a per-dir merge file when --delete-excluded
is enabled. This additional code fixes that.
Wayne Davison [Thu, 31 Aug 2006 20:30:16 +0000 (20:30 +0000)]
Fixed handling of filenames with an embedded $, @, or %.
Wayne Davison [Thu, 31 Aug 2006 17:19:26 +0000 (17:19 +0000)]
Added Matt's --delete-excluded test for merge-file correctness.
Wayne Davison [Thu, 31 Aug 2006 17:18:24 +0000 (17:18 +0000)]
Make sure that --delete-excluded does not elide a per-dir merge
filter file, while still dumping the .cvsignore file from -C.
Wayne Davison [Sat, 26 Aug 2006 16:02:17 +0000 (16:02 +0000)]
When we're cleaning up a path of "/" in relative mode, we must make
the name "/." (as it was of old) so that there is a filename for us
to send. Fixes a problem with --delete --relative when copying from
the root (/) of the filesystem.
Wayne Davison [Sat, 12 Aug 2006 16:22:03 +0000 (16:22 +0000)]
Fixed an exclude bug with --relative excluding "/".
Wayne Davison [Sat, 29 Jul 2006 21:04:35 +0000 (21:04 +0000)]
Check return value of asprintf() in full_fname(), as pointed
out by Ilja van Sprundel.
Wayne Davison [Fri, 21 Jul 2006 13:58:52 +0000 (13:58 +0000)]
Assign datarootdir=@datarootdir@ so that a modern autoconf
doesn't complain about our Makefile.in.
Wayne Davison [Mon, 10 Jul 2006 04:25:53 +0000 (04:25 +0000)]
Use new MAKEDEV() macro instead of makedev() directly.
Wayne Davison [Mon, 10 Jul 2006 04:25:10 +0000 (04:25 +0000)]
Define MAKEDEV() based on the MAKEDEV_TAKES_3_ARGS define.
Wayne Davison [Mon, 10 Jul 2006 04:24:07 +0000 (04:24 +0000)]
If makedev() takes 3 args, define MAKEDEV_TAKES_3_ARGS.
Wayne Davison [Mon, 3 Jul 2006 22:35:41 +0000 (22:35 +0000)]
Mention the "munge symlinks" daemon setting.
Wayne Davison [Mon, 3 Jul 2006 22:35:00 +0000 (22:35 +0000)]
Obey the new "munge symlinks" dameon setting.
Wayne Davison [Mon, 3 Jul 2006 22:33:56 +0000 (22:33 +0000)]
Document "munge symlinks".
Wayne Davison [Mon, 3 Jul 2006 22:33:49 +0000 (22:33 +0000)]
Added the "munge symlinks" setting.
Wayne Davison [Mon, 3 Jul 2006 22:30:13 +0000 (22:30 +0000)]
Fixed the indentation on a few lines.
Wayne Davison [Fri, 30 Jun 2006 15:52:52 +0000 (15:52 +0000)]
Decided that I like remove-source-files better than remove-sender-files.
Wayne Davison [Fri, 30 Jun 2006 15:42:41 +0000 (15:42 +0000)]
Changed --remove-sent-files into --remove-sender-files.
Wayne Davison [Fri, 30 Jun 2006 15:42:36 +0000 (15:42 +0000)]
Added --remove-sender-files and deprecated --remove-sent-files.
Wayne Davison [Fri, 30 Jun 2006 15:42:32 +0000 (15:42 +0000)]
The remove_sent_files var was renamed to remove_sender_files.
Wayne Davison [Fri, 30 Jun 2006 15:42:29 +0000 (15:42 +0000)]
Handle the --remove-sender-files option by sending MSG_SUCCESS for
any file that is being hard-linked.
Wayne Davison [Fri, 30 Jun 2006 15:42:26 +0000 (15:42 +0000)]
Handle the --remove-sender-files option by sending MSG_SUCCESS for
any up-to-date file (non-dir).
Wayne Davison [Fri, 30 Jun 2006 14:26:01 +0000 (14:26 +0000)]
Changed the name of the nightly symlink.
Wayne Davison [Fri, 30 Jun 2006 14:24:25 +0000 (14:24 +0000)]
Make use of module_dirlen in full_fname().
Wayne Davison [Mon, 19 Jun 2006 19:30:51 +0000 (19:30 +0000)]
Allow --with-nobody-group=GROUP (patch from Olivier Thauvin).
Wayne Davison [Fri, 16 Jun 2006 09:05:21 +0000 (09:05 +0000)]
Mention the latest bug-fix.
Wayne Davison [Fri, 16 Jun 2006 09:01:31 +0000 (09:01 +0000)]
Make sure that the %f escape always has the full path info when
receiving files.
Wayne Davison [Fri, 16 Jun 2006 08:56:26 +0000 (08:56 +0000)]
Updated the "use chroot" section with the latest symlink info.
Wayne Davison [Wed, 7 Jun 2006 23:06:18 +0000 (23:06 +0000)]
Mention the latest log-file improvements.
Wayne Davison [Wed, 7 Jun 2006 23:05:27 +0000 (23:05 +0000)]
Moved the "log file" and "syslog facility" sections into the per-module
options and improved them a little.
Wayne Davison [Wed, 7 Jun 2006 23:05:24 +0000 (23:05 +0000)]
Call log_init() with its new "restart" (0 or 1) arg.
Wayne Davison [Wed, 7 Jun 2006 23:05:17 +0000 (23:05 +0000)]
- Pass "module_id" to the two log-related settings that are no longer
global.
- Added a "restart" arg to log_init() that lets us request that logging
be reinitialized if the log-file/syslog-facility params changed.
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.