Commit Graph

  • 513fd04d21 Set ignore_timeout before starting the transfer, regardless of what protocol level is in effect. This guards against the generator timing out when the output pipe is full and the input pipe (to the receiver) is slow. Wayne Davison 2005-04-27 22:58:06 +00:00
  • 7a16e12207 If the user specified --relative and a source dir with a trailing slash, make sure we strip of the trailing "/." from the dir's len (in del_hier_name_len) so that its subdirs get marked with FLAG_DEL_HERE. Wayne Davison 2005-04-27 22:56:47 +00:00
  • de8252f67f Added a new test to check how we interact with --link-dest and --copy-dest. Wayne Davison 2005-04-26 16:25:01 +00:00
  • 98e4741463 A slightly better fix than the last one (though it won't make any difference in how the code behaves due to how it is called). Wayne Davison 2005-04-26 16:09:03 +00:00
  • 028245a57b Mention newest fix. Wayne Davison 2005-04-26 15:25:43 +00:00
  • 2765f2e4a7 Fixed problem with -C when we're the sender, the remote is using an older protocol, and we're not sending the exclude list (i.e. the user didn't specify --delete or they specified --delete-ignored). Wayne Davison 2005-04-26 15:24:40 +00:00
  • 79db59d1a7 Try to make rsync's behavior w/o "--perms" a little clearer. Wayne Davison 2005-04-25 19:30:29 +00:00
  • c48cff9fbe Fixed two typos. Wayne Davison 2005-04-25 19:23:43 +00:00
  • f4b8e829e9 Mention fix for --one-file-system. Wayne Davison 2005-04-24 22:35:03 +00:00
  • 468d766819 Simplified the last change a little using a fix derived from Mike Castle's suggestion. Wayne Davison 2005-04-24 22:34:20 +00:00
  • f3ab64d3a8 When deleting files, we need to take any local FLAG_MOUNT_POINT flag-bit and put it into the regular flist's flags for that dir, and delete_in_dir() now refuses to delete a directory that has that bit set. Wayne Davison 2005-04-24 22:11:26 +00:00
  • a234bca4ef Reject any --remove-* options when read-only, just in case there are new ones added in the future. Wayne Davison 2005-04-24 16:19:16 +00:00
  • 42e9c7eb56 Mention the latest fixes. Wayne Davison 2005-04-24 00:34:39 +00:00
  • 9d19f8a5fe When rsync encountered an empty file list, it behaved differently when pulling files than when pushing files: pulling it output a (mostly) unhelpful error message and then exited with a 0 status, even when the remote side exited with an error code. I changed this to output the normal end summary (when verbose) and to exit with the status intact (just like when pushing files). Wayne Davison 2005-04-23 22:30:08 +00:00
  • 24e61cffe3 For those rare individuals without web access, mention how to send bug reports via email. Wayne Davison 2005-04-23 22:17:10 +00:00
  • 3556fe5d86 Fixed a problem where a --link-dest hard-link could cause us to miss out on the hard_link_cluster() call. Wayne Davison 2005-04-23 19:46:22 +00:00
  • ee887d98f6 Two more tests: - Update the hard-linked cluster and copy over the old versions. - Add a new hard-linked item down in a new subdir to make sure that the new file doesn't get handled before the subdir gets created. Wayne Davison 2005-04-23 18:20:47 +00:00
  • 5c7b1feb4c Added --no-whole-file option to one of the runs. Wayne Davison 2005-04-23 18:17:25 +00:00
  • 3cd5301f40 - Added a new function, maybe_hard_link(), which now holds the code (moved from hard_link_cluster()) that checks the inode/dev of an existing file and either does nothing (when properly linked), or removes the existing file before calling hard_link_one(). - Changed hard_link_check() so that it checks if the master item is marked with FINISHED_LINK (in its hlindex int), and if so, it finishes the current file by calling maybe_hard_link() (and marking it as finished too). Otherwise it marks the item as skipped by setting hlindex to SKIPPED_LINK. - Fixed the outputting of an error in hard_link_one() so that the message is always output when the caller did not request "terse" processing. - Changed hard_link_cluster() so that it marks the master item with FINISHED_LINK and then links only the skipped items (marking them with FINISHED_LINK too). Wayne Davison 2005-04-23 17:48:34 +00:00
  • d8169e6f6b - Call hard_link_check() with its new args. - Got rid of a duplicate error after the hard_link_one() call. Wayne Davison 2005-04-23 17:48:31 +00:00
  • c4833b024e Mention how a module reference doesn't need a trailing slash to copy its contents. Wayne Davison 2005-04-22 17:17:18 +00:00
  • 2a5d5a8cc4 If we're outputting a message about the remote file in a single-file transfer, we need to make sure that the file's name is the generic-transfer name and not a local name. Wayne Davison 2005-04-22 16:45:33 +00:00
  • f7112154e9 Moved "port" and "address" into the global section where they belong. Wayne Davison 2005-04-22 15:19:10 +00:00
  • f83051b2e3 Updated FSF's address and some minor non-license tweaks taken from the latest GPL file on the web. Wayne Davison 2005-04-17 08:25:50 +00:00
  • 2e42adb302 Simplified the newly added test so that it should stop sporadically failing. Wayne Davison 2005-04-16 07:34:49 +00:00
  • c09ebb8c04 Call rsync via $RSYNC. Wayne Davison 2005-04-15 17:39:35 +00:00
  • 042dc7360e Make sure that the $chkdir has the same mtime/etc. as the $fromdir. Wayne Davison 2005-04-15 17:26:27 +00:00
  • 7a6e294f7b Added a test that copies a single file with -H specified. Wayne Davison 2005-04-15 08:28:02 +00:00
  • 97e786c331 - Fixed a potential crash/infinite-loop bug if -H was used when sending a single file. - Made a couple variable improvements in link_idev_data(). - Got rid of the non-NULL check of hlink_list in init_hard_links() because is enough to just check file->link_u.links these days. Wayne Davison 2005-04-15 08:26:58 +00:00
  • 8ee6adefe3 Call logfile_close() and logfile_reopen() (tweaked function names). Wayne Davison 2005-04-14 16:08:12 +00:00
  • 64c37826e4 - Changed log_open() into two functions, logfile_open() and logfile_reopen(). - Changed log_close() into logfile_close(). - Improved the logic in logit(). Wayne Davison 2005-04-14 16:08:10 +00:00
  • 2e8015e0da Mention that less data is sent over the wire when --only-write-batch is used and we're pushing files to a remote system. Wayne Davison 2005-04-14 01:47:47 +00:00
  • 5b6281afcf Got rid of ITEM_DUMMY_BIT. Wayne Davison 2005-04-14 01:46:08 +00:00
  • e732fb0c4f - Got rid of the iflag kluge for 2.6.4pre3. - When we're handling --only-write-batch on the client side, we now send all index/header info to the receiver (not just to the batch file, like we do with the xfer data) so that the connection cannot timeout. Wayne Davison 2005-04-14 01:45:47 +00:00
  • b10917a426 Support the reception of a file-transfer header without xfer data when we're on the server side and --only-write-batch was specified. Wayne Davison 2005-04-14 01:42:13 +00:00
  • 7ae64260e0 Mention how the daemon handles a failure to open a user-specified "log file". Wayne Davison 2005-04-12 23:09:35 +00:00
  • f97f6bcd3a Mention how we now handle a log-file that the daemon can't open. Wayne Davison 2005-04-12 23:06:45 +00:00
  • e86d98cbaa Got rid of RERR_LOG_FAILURE. Wayne Davison 2005-04-12 23:04:10 +00:00
  • 6afb90778b If we can't open the daemon's log file, fall-back to using syslog (rather than trying to output an error on stderr, which would usually be lost, and then exiting). Wayne Davison 2005-04-12 23:03:49 +00:00
  • 32c7f91a14 A couple improvements for the --only-write-batch section. Wayne Davison 2005-04-12 03:55:56 +00:00
  • b28a27e9e9 Mention the latest bug-fix. Wayne Davison 2005-04-10 20:08:00 +00:00
  • 15164c0aa9 Paul's patch to improve the "not creating new ..." message for directories. Wayne Davison 2005-04-10 19:44:16 +00:00
  • bf011fedfc Made the code a little cleaner by having gen_challenge() return the challenge string base64-encoded (instead of forcing the caller to handle this). Also improved a couple comments. Wayne Davison 2005-04-10 17:09:10 +00:00
  • d7d11b7ebd Mention fix for SUPPORT{,_HARD}_LINKS defines. Wayne Davison 2005-04-10 07:17:47 +00:00
  • 9a929c8f68 - Don't define HAVE_READLINK unless HAVE_READLINK is defined. - Don't define SUPPORT_HARD_LINKS unless HAVE_LINK is defined. Wayne Davison 2005-04-10 06:24:14 +00:00
  • 298d8c0a9b Mention the new --only-write-batch=FILE option. Wayne Davison 2005-04-09 18:59:59 +00:00
  • a054570942 - Use the new do_xfers variable in place of some dry_run checks (with appropriate negation). - If write_batch is < 0, we write out the file-transfer data to just the batch file, not the socket. Wayne Davison 2005-04-09 18:59:57 +00:00
  • a0009fc30d - Use the new do_xfers variable in place of some dry_run checks (with appropriate negation). - If we get a transfer when write_batch is < 0, discard it. Wayne Davison 2005-04-09 18:59:55 +00:00
  • beb51aa09e Use the new do_xfers variable in place of some dry_run checks (with appropriate negation). Wayne Davison 2005-04-09 18:59:52 +00:00
  • e8a96e275e - Only do read-/write-batch processing if we're not the server (needed now that write_batch is no longer forced to 0 for the server). - If write_batch is < 0, force "dry_run = 1" (but only after we've finished any appropriate write-batch file creation). Wayne Davison 2005-04-09 18:59:49 +00:00
  • 11e758a430 - Added do_xfers variable. - Handle the new --only-write-batch=FILE option. Wayne Davison 2005-04-09 18:59:47 +00:00
  • d630f53e0d Also change --only-write-batch to --read-batch (in addition to changing --write-batch). Wayne Davison 2005-04-09 18:59:44 +00:00
  • 5918daf8a4 We no longer force write_batch to 0 for the server. Wayne Davison 2005-04-09 18:59:42 +00:00
  • 326bb56e40 Document the new --only-write-batch=FILE option. Wayne Davison 2005-04-09 18:59:40 +00:00
  • f96154f44c Mention the latest changes. Wayne Davison 2005-04-09 18:15:22 +00:00
  • 45c5b903eb - Call auth_server() with its new "host" arg. - Don't log an auth-failed error -- auth_server() now handles that. Wayne Davison 2005-04-09 18:11:25 +00:00
  • 5037cf3adf - Use the MD4_SUM_LENGTH define in place of some hard-wired values. - Pass the hostname in to auth_server(). - Generate a unique error for each failure type in auth_server() so that the log-file contains why the authorization failed. - Don't use sscanf() to parse the client's auth-challenge response. Wayne Davison 2005-04-09 18:11:23 +00:00
  • 180443af42 The "@ERROR" handler in start_inband_exchange() was not returning the right value. Wayne Davison 2005-04-09 16:49:51 +00:00
  • 4f3f97fbde Fixed one typo and improved another sentence. Wayne Davison 2005-04-08 01:40:57 +00:00
  • 664cf3278a Make sure that "- !" or "+ !" aren't interpreted as a list-clearing token. Wayne Davison 2005-04-07 18:06:06 +00:00
  • cd36049cd1 Combine one of the backup tests with --delete-after. Wayne Davison 2005-04-07 09:09:17 +00:00
  • c2523a0541 Don't call maybe_flush_socket() quite so often. Wayne Davison 2005-04-07 08:32:32 +00:00
  • 92739a0aa7 Mention the latest changes. Wayne Davison 2005-04-07 08:28:06 +00:00
  • cd908ef4ff Fix a bug with --delete-after combined with --backup. Wayne Davison 2005-04-07 08:13:44 +00:00
  • ebd33e0cea Use the new HAVE_LSEEK64 define. Wayne Davison 2005-04-06 02:08:21 +00:00
  • 5f2c5bf110 Added skipping of mkstemp() on HP-UX. Wayne Davison 2005-04-06 02:07:21 +00:00
  • 417099fa20 Periodically call maybe_flush_socket(). Wayne Davison 2005-04-05 20:08:51 +00:00
  • 626bec8e84 - Added maybe_flush_socket() for use by the generator. - Always maintain the last_io value for the generator. Wayne Davison 2005-04-05 20:07:42 +00:00
  • a06e2b7cab When doing a delete pass with do_progress output, get rid of the temporary output (it used to always be covered up by output in older versions, but it might be followed by a newline in newer versions). Wayne Davison 2005-04-05 19:51:13 +00:00
  • 3ae5367ff2 Document the use of --address in client mode. Wayne Davison 2005-04-05 06:00:17 +00:00
  • b4ef0bca47 Allows --address to be used in client mode. Wayne Davison 2005-04-05 05:59:49 +00:00
  • 4313d6f9c0 Changed the bind_address local variables to be named bind_addr in order to avoid confusion with the bind_address global. Wayne Davison 2005-04-05 05:52:49 +00:00
  • 2a0dd9bd70 Make sure that the line buffer in readfd_unbuffered() is large enough to handle long-filename messages on a system that has a really short MAXPATHLEN value. Also, make it large enough to be able to comment on a MAXPATHLEN filename. Wayne Davison 2005-04-04 17:27:56 +00:00
  • 3eeac9bc7e In writefd_unbuffered(), make sure that we don't look at the r_fds variable when we're ignoring msg_fd_in. Wayne Davison 2005-04-04 00:48:39 +00:00
  • 67de72bd9b Mention fix for --compare-dest. Wayne Davison 2005-04-01 18:18:17 +00:00
  • 552a218468 Make a local-copy caused by a not-quite-up-to-date --compare-dest or --link-dest file be output as a 'c' (local change) when itemizing or as transfered file when not itemizing. Wayne Davison 2005-04-01 18:12:22 +00:00
  • d940151496 - Conditionally include <locale.h>. - Conditionally call setlocale(LC_CTYPE, ""). Wayne Davison 2005-04-01 17:25:37 +00:00
  • f5c7f4abe7 - Changed version to 2.6.5cvs. - Look for setlocale(), locale.h, and honor --disable-locale. Wayne Davison 2005-04-01 17:25:34 +00:00
  • 3ae6c1875d Starting the 2.6.5 news. Wayne Davison 2005-04-01 17:25:28 +00:00
  • 1ad6a7f611 Moved the 2.6.4 news here. Wayne Davison 2005-04-01 17:25:26 +00:00
  • 89d26123ff Changed safe_fname() to output \### (octal) to escape non-printable characters (not ?) and \\ to escape \ itself. Wayne Davison 2005-04-01 16:48:54 +00:00
  • 46bffd98cb Fix the setting of module_dirlen for a module path of "/". This fixes a crash in the exclude code when chroot is off. Wayne Davison 2005-04-01 00:18:40 +00:00
  • 41b84ce012 Don't try to tweak read-only dest-dir permissions in list-only mode. Wayne Davison 2005-03-31 23:30:03 +00:00
  • de392f1e5c Preparing for release of 2.6.4 v2.6.4 Wayne Davison 2005-03-31 03:14:34 +00:00
  • 0455cd933d - Made the handling of adjacent percents (e.g. "%%b") work like it did in older versions. - Added a comment for log_format_has(). Wayne Davison 2005-03-31 03:01:26 +00:00
  • d9c0051fae In log_formatted(), add the newline to the format string so that we can call rwrite() instead of rprintf(). Wayne Davison 2005-03-31 01:09:18 +00:00
  • 126e7affb7 Enabled width-sizing for %L. Wayne Davison 2005-03-31 00:50:58 +00:00
  • 624d6be2a5 Use new log_format_has() function instead of strstr(). Wayne Davison 2005-03-31 00:21:15 +00:00
  • 16f960feb5 Added log_format_has(). Wayne Davison 2005-03-31 00:19:13 +00:00
  • e145d51ba6 Make sure that we can't scan past the end of the format string. Wayne Davison 2005-03-30 23:39:00 +00:00
  • dcbae65444 Optimized '%f' a little more. Wayne Davison 2005-03-30 20:41:11 +00:00
  • b4bf2b5a7e Allow %i to have a field width. Wayne Davison 2005-03-30 20:18:48 +00:00
  • 9baed7609c - Allow the infix field width to start with a '-'. - Apply the field width to all escapes, not just numeric ones. Wayne Davison 2005-03-30 19:44:29 +00:00
  • 1c2efa1706 Mention the numeric field width now possible in the % escapes. Wayne Davison 2005-03-30 19:41:51 +00:00
  • 80a24d52d4 Mention that the % escapes can now have a numeric infix. Wayne Davison 2005-03-30 19:39:11 +00:00
  • af9f56a09d dropped the "const" from the return value of safe_fname() because some callers would like to manipulate the string in the buffer. Wayne Davison 2005-03-30 19:34:20 +00:00
  • ddd74b67be Allow the escapes in the log-format string to contain a numeric field width (e.g. %8l %07p). Wayne Davison 2005-03-30 18:27:09 +00:00
  • 7b558d7f8b Fixed a comment. Wayne Davison 2005-03-30 17:31:35 +00:00
  • c87ae64a82 Moved a call to output_summary() up a line. Wayne Davison 2005-03-30 16:55:11 +00:00
  • b9f0ca7274 Tweaked a couple sentences. Wayne Davison 2005-03-30 16:51:33 +00:00