Commit Graph

  • fb41a3c669 Changed --remove-sent-files into --remove-sender-files. Wayne Davison 2006-06-30 15:42:41 +00:00
  • 2700069d5a Added --remove-sender-files and deprecated --remove-sent-files. Wayne Davison 2006-06-30 15:42:36 +00:00
  • 044ccbaacf The remove_sent_files var was renamed to remove_sender_files. Wayne Davison 2006-06-30 15:42:32 +00:00
  • 841d943651 Handle the --remove-sender-files option by sending MSG_SUCCESS for any file that is being hard-linked. Wayne Davison 2006-06-30 15:42:29 +00:00
  • 04cd8789cb Handle the --remove-sender-files option by sending MSG_SUCCESS for any up-to-date file (non-dir). Wayne Davison 2006-06-30 15:42:26 +00:00
  • 9578783a71 Changed the name of the nightly symlink. Wayne Davison 2006-06-30 14:26:01 +00:00
  • 4cff5fa462 Make use of module_dirlen in full_fname(). Wayne Davison 2006-06-30 14:24:25 +00:00
  • cc1b4f776a Allow --with-nobody-group=GROUP (patch from Olivier Thauvin). Wayne Davison 2006-06-19 19:30:51 +00:00
  • 72d1b262ac Mention the latest bug-fix. Wayne Davison 2006-06-16 09:05:21 +00:00
  • 6fb7cc38a2 Make sure that the %f escape always has the full path info when receiving files. Wayne Davison 2006-06-16 09:01:31 +00:00
  • 8a7b8400e7 Updated the "use chroot" section with the latest symlink info. Wayne Davison 2006-06-16 08:56:26 +00:00
  • d2ab094dec Mention the latest log-file improvements. Wayne Davison 2006-06-07 23:06:18 +00:00
  • ccd2966da9 Moved the "log file" and "syslog facility" sections into the per-module options and improved them a little. Wayne Davison 2006-06-07 23:05:27 +00:00
  • 6dc9b74bc6 Call log_init() with its new "restart" (0 or 1) arg. Wayne Davison 2006-06-07 23:05:24 +00:00
  • 04c841190f - 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 2006-06-07 23:05:17 +00:00
  • d20ce6e144 Made "log file" and "syslog facility" per-module settings. Wayne Davison 2006-06-07 23:05:14 +00:00
  • a7d461fccd Improved some comments in get_local_name() and improved the error checking a little more. Wayne Davison 2006-06-05 22:50:52 +00:00
  • 4c5a2da65f Mention the latest bug-fix. Wayne Davison 2006-06-05 17:00:47 +00:00
  • caff33228e If we fail to create a new directory, skip trying to update everything that is inside that dir. Wayne Davison 2006-06-05 16:56:50 +00:00
  • f38f6f80b7 Added FLAG_MISSING. Wayne Davison 2006-06-05 16:52:34 +00:00
  • e848e06618 Got rid of an unused extern. Wayne Davison 2006-06-05 16:17:33 +00:00
  • eece5fe32c Mention the temp-file fix. Wayne Davison 2006-06-01 08:40:55 +00:00
  • 8590993185 Got rid of the FNAME logcode enum. Wayne Davison 2006-06-01 08:04:50 +00:00
  • b64ee91a41 Changed rprintf() messages that started with a newline into two rprintf() calls (the first of which just outputs an empty line). Wayne Davison 2006-06-01 08:04:47 +00:00
  • d0133e6eba - 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 2006-06-01 08:04:43 +00:00
  • 1925c3448c - Got rid of the FNAME logcode enum. - We no longer output " is uptodate" messages to the log file. Wayne Davison 2006-06-01 08:04:40 +00:00
  • 19b8587654 Fixed a typo that set stdout_format_has_i instead of logfile_format_has_i. Wayne Davison 2006-06-01 06:49:15 +00:00
  • 051f5df526 Mention the latest --log-* option changes. Wayne Davison 2006-05-30 18:35:36 +00:00
  • e525519509 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 2006-05-30 18:26:17 +00:00
  • 4b90820d9f - 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 2006-05-30 17:47:20 +00:00
  • 2873603ab5 If the user specifies --log-file-format without --log-file, ignore the useless value. Wayne Davison 2006-05-30 17:41:54 +00:00
  • ec52c3b9da Skip transfer logging if the logfile_format string is empty. Wayne Davison 2006-05-30 17:41:04 +00:00
  • 10ae3406ee Allow the --log-file-format=FMT option (if given when starting a daemon) to override the "log format" setting. Wayne Davison 2006-05-30 17:15:24 +00:00
  • 232658d9d3 - 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 2006-05-30 17:14:17 +00:00
  • c000002f46 Document the new --log-file-format option and renamed --log-format to --out-format. Wayne Davison 2006-05-29 22:57:05 +00:00
  • 2fedf3d596 - Use the renamed stdout_format_has_i variable. - Call log_item() with its new arg (and call it more often). Wayne Davison 2006-05-29 22:57:01 +00:00
  • 887d745549 Turn off the --log-file option on the server side for a local transfer. Wayne Davison 2006-05-29 22:56:58 +00:00
  • 20f90d5e8a Use the renamed stdout_format_has_i variable. Wayne Davison 2006-05-29 22:56:55 +00:00
  • 17bda2d109 - Use the renamed stdout_format_has_i variable. - Call log_item() with its new arg. Wayne Davison 2006-05-29 22:56:51 +00:00
  • b534351058 - 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 2006-05-29 22:56:48 +00:00
  • b3e4e7ef2e - 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 2006-05-29 22:56:45 +00:00
  • a3f6dbdf5c The print_child_argv() function should be outputting FCLIENT messages these days, not FINFO. Wayne Davison 2006-05-29 22:33:06 +00:00
  • 95ae5224b0 The cleanup_set() call was not getting called w/o --partial. Wayne Davison 2006-05-18 18:53:24 +00:00
  • 03dbc0b831 - 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 2006-05-18 18:52:40 +00:00
  • ffa8ab8eb5 Improved two lseek() error messages. Wayne Davison 2006-05-18 17:04:40 +00:00
  • a17e119d8b Mention the latest fixes. Wayne Davison 2006-05-17 06:54:11 +00:00
  • 6bfc7b4d79 Tweaked a couple things in try_dests_reg(). Wayne Davison 2006-05-16 22:27:26 +00:00
  • b3e8e7c79e 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 2006-05-14 00:27:33 +00:00
  • bdd3a4fef5 Updated the (commented out) valgrind command. Wayne Davison 2006-05-11 23:41:18 +00:00
  • a00f5a371e Got rid of the .ignore kluge. Wayne Davison 2006-05-11 23:38:10 +00:00
  • 55c412630c Added ".bzr/" to the default CVS exclusions. Wayne Davison 2006-05-11 07:54:33 +00:00
  • 778ee637ee This file hasn't been needed for a while now... Wayne Davison 2006-05-10 18:34:32 +00:00
  • 80aff93b32 Added the updating of a symlink to the very latest nightly tar file. Wayne Davison 2006-05-10 16:37:07 +00:00
  • 6721973e37 Mention the --log-file option. Wayne Davison 2006-05-09 18:44:58 +00:00
  • a2ed5801d3 Document the new --log-file option. Wayne Davison 2006-05-09 18:31:24 +00:00
  • 15ce4b24fc Output the progress message as FCLIENT instead of FINFO. Wayne Davison 2006-05-09 18:31:19 +00:00
  • c5260884d6 Got rid of the call to log_exit() now that the cleanup code handles this. Wayne Davison 2006-05-09 18:31:16 +00:00
  • ea124cb324 - 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 2006-05-09 18:31:13 +00:00
  • 13b597fa71 - 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 2006-05-09 18:31:10 +00:00
  • ecc7623e7f Some demon_log_* variables changed into logfile_* variables that are also used by the new --log-file option. Wayne Davison 2006-05-09 18:31:06 +00:00
  • 87c0f9d6b4 Added --log-file and several logfile_* support variables. Wayne Davison 2006-05-09 18:31:03 +00:00
  • 1cfcb8af11 Revised the logic for when to call log_exit() to handle the new --log-file option. Wayne Davison 2006-05-09 18:31:00 +00:00
  • 56aaa4c44c Tweaked the comment about log-message categories. Wayne Davison 2006-05-09 18:30:57 +00:00
  • 4b6a7bd706 Got rid of an unused variable. Wayne Davison 2006-05-09 18:00:15 +00:00
  • 5bc933a285 Mention the latest bugfix and improved an old description. Wayne Davison 2006-05-09 17:46:04 +00:00
  • 01d124d9e2 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 2006-05-09 17:38:47 +00:00
  • 58a06312a4 Improved the doc for --existing and --ignore-existing. Wayne Davison 2006-05-05 20:41:17 +00:00
  • c2c8db9195 - 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 2006-05-05 16:00:33 +00:00
  • d1e6b0e225 - 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 2006-05-05 15:58:44 +00:00
  • 8936367695 - Added a call to die_on_unsafe_path() to handle_partial_dir(). - Fixed some strange slash handling in partial_dir_fname(). Wayne Davison 2006-05-05 15:54:20 +00:00
  • 8517e9c10a A few minor changes to match the recent --help changes in options.c. Wayne Davison 2006-05-05 06:24:25 +00:00
  • fcecb70b1d - Don't check HAVE_LINK directly, use SUPPORT_HARD_LINKS instead. - Updated a few items in the --help text. Wayne Davison 2006-05-05 06:16:22 +00:00
  • 582c1589f3 Call the new die_on_unsafe_path() function in a few places. Wayne Davison 2006-05-05 05:57:48 +00:00
  • cb15269eb0 Call the new die_on_unsafe_path() function in a couple spots. Wayne Davison 2006-05-05 05:56:37 +00:00
  • f47807900b 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 2006-05-05 05:55:40 +00:00
  • 40410a38bc - 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 2006-05-05 05:53:36 +00:00
  • 6b54a688cf Cast file->mode to an int when printing it via %o. Wayne Davison 2006-05-05 05:40:17 +00:00
  • b59dc8d5ae 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. Paul Green 2006-05-04 19:00:37 +00:00
  • 45ba206a94 A few more improvements. Wayne Davison 2006-05-04 02:42:55 +00:00
  • 2220ec0a69 A few minor twiddles. Wayne Davison 2006-05-04 02:38:58 +00:00
  • 5fdbb87df8 Added/clarified the latest bug-fix info. Wayne Davison 2006-05-04 02:29:58 +00:00
  • f1c9bcd0fc Cast the enum in rwrite() when calling send_msg(). Wayne Davison 2006-05-03 16:58:36 +00:00
  • 3723548ded 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 2006-05-03 16:17:49 +00:00
  • 12ccc73ae7 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 2006-05-03 16:17:46 +00:00
  • ee8d9636d1 A small optimization to the new code in msg2sndr_flush(). Wayne Davison 2006-05-03 06:32:59 +00:00
  • 38de2866e5 Made log_init() call timestring() instead of just localtime() prior to a chroot (note that timestring() makes use of localtime() plus strftime()). Wayne Davison 2006-05-03 06:11:11 +00:00
  • bdac7621ee Improved the last bugfix description. Wayne Davison 2006-05-03 05:37:00 +00:00
  • 8ac4774675 Mention the fix for the "unexpected tag 3" bug. Wayne Davison 2006-05-03 05:22:01 +00:00
  • 229e1950ed 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 2006-05-03 05:19:01 +00:00
  • 93977bca10 Added module_dirlen now that utils.o needs it. Wayne Davison 2006-05-03 00:49:31 +00:00
  • c2a2147a5b - 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 2006-05-03 00:48:32 +00:00
  • 73173af955 - 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 2006-05-03 00:48:29 +00:00
  • a2248aea2e - 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 2006-05-03 00:48:26 +00:00
  • a8167c6611 - 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 2006-05-03 00:48:23 +00:00
  • 91f4b31fe1 Use the new calling syntax for sanitize_path(). Wayne Davison 2006-05-03 00:48:20 +00:00
  • cad8f6f980 Tweaked some variable names in readlink_stat() and link_stat(). Wayne Davison 2006-05-02 19:52:28 +00:00
  • d8bf7ea8e9 Mention the latest bug-fixes. Wayne Davison 2006-05-02 17:38:34 +00:00
  • d8f28a663c Test the new symlink sanitizing fix by using ::test-scratchdir/to as the destination and including a symlink with a leading "../" . Wayne Davison 2006-05-02 17:13:11 +00:00
  • 2ae4126a9e Tweaked our test config file to include transfer logging that includes %i, and to have a test-scratchdir module. Wayne Davison 2006-05-02 17:11:42 +00:00
  • 6f1c2aab43 Moved the sanitizing of a symlink's link string here from flist.c. Wayne Davison 2006-05-02 16:52:51 +00:00