Commit Graph

  • 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
  • e71c1c26df 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 2006-05-02 16:46:48 +00:00
  • b24498ec2c Set a new variable, startdir_depth, to indicate how deep the destination dir is in a daemon module's path. Wayne Davison 2006-05-02 16:42:20 +00:00
  • b2d4639543 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 2006-05-02 16:36:07 +00:00
  • d3ef985954 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 2006-04-28 17:34:53 +00:00
  • 7c58c99184 We sanitize the --*-dest args here so they can be relative to the destination directory. Wayne Davison 2006-04-28 16:58:20 +00:00
  • ad77db8b71 Moved the sanitizing of the --*-dest args into main.c. Wayne Davison 2006-04-28 16:57:39 +00:00
  • e7c67065c0 Updated the FSF's address to an even newer one. Wayne Davison 2006-04-25 23:51:12 +00:00
  • 0f78b81511 - 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 2006-04-25 20:23:34 +00:00
  • d051056f92 Tweaked some whitespace to match the latest version from autoconf. Wayne Davison 2006-04-24 23:43:45 +00:00
  • a4a38e8df0 Incremented the version to 2.6.9cvs. Wayne Davison 2006-04-24 22:24:40 +00:00
  • 60ef8ed128 Rolled over the news file for the next version. Wayne Davison 2006-04-24 22:23:56 +00:00
  • 8aa0dc7838 Updated to the version dated 2006-02-23. Wayne Davison 2006-04-24 22:20:10 +00:00
  • 4177f09b83 Preparing for release of 2.6.8 v2.6.8 Wayne Davison 2006-04-22 15:39:57 +00:00
  • acaadb55c1 Mention the phase-unknown changes. Wayne Davison 2006-04-21 16:57:13 +00:00
  • b88c2e8ffe - 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. Wayne Davison 2006-04-21 16:40:19 +00:00
  • f4ea5f47dc Got rid of the setting of io_write_phase. Wayne Davison 2006-04-21 16:36:30 +00:00
  • 62ae66d43b Mention the security fix for patches/xattrs.diff. Wayne Davison 2006-04-21 00:05:30 +00:00
  • 8641d28740 Improved the --owner and --group sections. Wayne Davison 2006-04-18 18:58:07 +00:00
  • de3438407c Twiddle the trailing output in non-live mode. Wayne Davison 2006-04-18 06:43:17 +00:00
  • 434764269c Fixed a typo in the new code. Wayne Davison 2006-04-18 06:38:58 +00:00
  • ba212fe0b6 - Fixed --copy-dest behavior on a system where CAN_HARDLINK_SYMLINK and/or CAN_HARDLINK_SPECIAL is not defined. - Changed --link-dest behavior on such systems to work just like --copy-dest for the non-hard-linkable files. Wayne Davison 2006-04-18 05:48:46 +00:00
  • 5f93b4d35e A slight improvement to the logic in try_dests_non(). Wayne Davison 2006-04-18 05:24:02 +00:00
  • f8db4a8ab4 Mention the latest bugfix. Wayne Davison 2006-04-17 19:55:16 +00:00
  • 398612ba07 Fixed a bug where special files were not getting hard-linked via the --link-dest option. Wayne Davison 2006-04-17 19:53:41 +00:00
  • 77b013afb5 Don't use the -C option to make (since it's not portable). Wayne Davison 2006-04-17 18:15:02 +00:00
  • 08c0cd8a42 Mention the latest fixes. Wayne Davison 2006-04-17 18:00:09 +00:00
  • 1c6e9dfabc Use the new CAN_HARDLINK_SYMLINK and CAN_HARDLINK_SPECIAL defines from configure instead of the old (and not quite correct) run-time checking. Wayne Davison 2006-04-17 17:56:10 +00:00
  • 0037bf23fc Added two new checks: 1. Does link() hard-link symlinks (not the referent)? 2. Does link() hard-link a fifo? Wayne Davison 2006-04-17 17:53:47 +00:00
  • 285edc9169 Don't use -C with make because it's not portable. Wayne Davison 2006-04-17 17:37:13 +00:00
  • c4aa84ad50 Got rid of the unused REPLACE_INET_NTOA and REPLACE_INET_ATON checks. Wayne Davison 2006-04-13 16:54:24 +00:00
  • b635bc92d1 Got rid of inet_ntoa -> rep_inet_ntoa tom-foolery because rsync doesn't use inet_ntoa() anymore. Wayne Davison 2006-04-13 16:53:15 +00:00
  • 146d2228cc Got rid of the replacement inet_aton() and inet_ntoa() functions because no code in rsync has used these functions since 2.4.8. Wayne Davison 2006-04-13 16:52:15 +00:00
  • b2501ccf12 Improved a sentence. Wayne Davison 2006-04-12 16:59:32 +00:00
  • e60bba3fbc A few minor changes to some messages and a couple variable improvements. Wayne Davison 2006-04-12 16:35:53 +00:00
  • e26cfccf16 Preparing for release of 2.6.8pre1 v2.6.8pre1 Wayne Davison 2006-04-12 16:23:46 +00:00
  • 74f80abce2 Moved the include of netinet/ip.h into socket.c. Wayne Davison 2006-04-11 00:48:55 +00:00
  • 5899b8cf3e Moved the include of netinet/ip.h here along with its apparent prerequisite, netinet/in_systm.h . Wayne Davison 2006-04-11 00:48:28 +00:00