Commit Graph

  • 72a6e63136 Relocated the externs. Wayne Davison 2004-01-27 22:35:15 +00:00
  • 37101856a6 Silenced some compiler warnings. Wayne Davison 2004-01-27 16:27:05 +00:00
  • 65fc84b32e Better pid handling. Wayne Davison 2004-01-27 08:14:33 +00:00
  • 45e08edb08 Cast getpid() to a long for output. Wayne Davison 2004-01-27 08:02:31 +00:00
  • 05b7bab8e1 Better pid handling. Wayne Davison 2004-01-27 07:57:12 +00:00
  • 904817552d Fixed a comment. Wayne Davison 2004-01-27 07:48:57 +00:00
  • 6e195fe975 Tweaked the externs. Wayne Davison 2004-01-27 07:48:19 +00:00
  • 3eaf615f40 Percentage of file-count output was off by one. Wayne Davison 2004-01-27 06:51:39 +00:00
  • 6156e72f85 EXCLUDE PATTERNS is not just about syntax. J.W. Schultz 2004-01-27 05:00:43 +00:00
  • 73a4bdfd77 Mention the latest -x improvement. Also improved the description of one of my previous fixes. Wayne Davison 2004-01-27 03:49:54 +00:00
  • 4844449a5d Optimized the -x option by removing the skip_filesystem() call and using the new FLAG_MOUNT_POINT flag. Wayne Davison 2004-01-27 01:47:41 +00:00
  • ae289aec1e Added FLAG_MOUNT_POINT. Wayne Davison 2004-01-27 01:47:40 +00:00
  • 9e4c32ea54 Tweaked a comment. Wayne Davison 2004-01-27 01:27:37 +00:00
  • a5f9cff256 Improved the differentiation of the transmit flags from the live flags by naming the transmit flags with an XMIT_ prefix. Improved the names of two other flags, got rid of the LIVE_FLAGS mask, and shortened the flag storage in the flist struct (to save memory). Wayne Davison 2004-01-27 01:05:14 +00:00
  • d01d15e096 Use the new names for the transmit-flag defines. We also make sure that the FLAG_TOP_DIR flag doesn't get set in the live data for a non-directory (when it's used as a kluge to prevent a 0x00 byte being sent over the wire for the flag data). Wayne Davison 2004-01-27 01:05:13 +00:00
  • a53426441b Use the new names for the transmit-flag defines. Wayne Davison 2004-01-27 01:05:12 +00:00
  • 5d1966948e Fixed reference to -u that should have been -o. Wayne Davison 2004-01-26 22:35:04 +00:00
  • f673ea84b2 Back out bad refactor (thanks Wayne) J.W. Schultz 2004-01-26 20:54:02 +00:00
  • 64f21c31bf Mention new hard-link optimization. Wayne Davison 2004-01-26 04:21:59 +00:00
  • 520cf41711 Added defines (FLAG_HLINK_EOL, HL_CHECK_MASTER, and HL_SKIP) and changed the struct hlink to have an index into the hlink_list[] array instead of a head pointer. Wayne Davison 2004-01-25 22:32:11 +00:00
  • d38fc30563 We now link the hard-linked flist entries into a circular list, mark the last item with FLAG_HLINK_EOL, and save off an index for our master entry in the hlink_list[] array. Added the hard_link_check() function. Wayne Davison 2004-01-25 22:32:10 +00:00
  • 6dff599288 Use the new hard_link_check() function to figure out which one of the hard-linked files to send (when -H was specified, of course). Moved the call to do_hard_links() and the final directory-permissions scan into generate_files() from recv_files(). Wayne Davison 2004-01-25 22:32:09 +00:00
  • f746dda0a0 Moved the call to do_hard_links() and the final directory-permissions scan from recv_files() into generate_files(). Wayne Davison 2004-01-25 22:32:08 +00:00
  • 91a1e147ae Changed F_HEAD to F_HLINDEX. Wayne Davison 2004-01-25 22:32:07 +00:00
  • 40da904230 Tweaked a comment. Wayne Davison 2004-01-25 22:32:05 +00:00
  • 34fada3012 Tightened up code in skip_filesystem() J.W. Schultz 2004-01-25 22:11:09 +00:00
  • f91e01d9a5 Replaced an snprintf() call with pathjoin(). Wayne Davison 2004-01-24 22:12:58 +00:00
  • 3048b0a8ea The static last_in value in match_gid() needed to default to -2 so that we don't accidentally return a GID of 0 when we don't have the permissions to set it. Wayne Davison 2004-01-24 18:36:36 +00:00
  • d99b4ccf93 Another improvement in the "use chroot" section. Wayne Davison 2004-01-24 01:48:12 +00:00
  • 58811a0a38 Refer to I/O (not IO), ID (not id), and "an rsync" (not "a rsync"). Wayne Davison 2004-01-23 16:58:24 +00:00
  • cb290916be Improved the "use chroot" discussion on ID mapping. Wayne Davison 2004-01-23 16:55:40 +00:00
  • a2b0471f1d More changes to make the --owner and --group items clearer. Wayne Davison 2004-01-23 16:40:17 +00:00
  • bb18e7550c Use "an" in front of rsync, not "a". Wayne Davison 2004-01-23 09:34:04 +00:00
  • db2b5cb75f Tweaked the --help text to refer to I/O (not IO) and use "an" in front of rsync (not "a"). Wayne Davison 2004-01-23 09:32:50 +00:00
  • fa8c787d8b Improved the "use chroot" section to mention how to get user/group preservation by name (getting rid of the erroneous bit about the --numeric-ids option being implied). Wayne Davison 2004-01-23 09:30:45 +00:00
  • ec40899bb9 Improved comments on --owner and --groups, and removed misinformation on a chroot daemon (it does not imply --numeric-ids). Wayne Davison 2004-01-23 09:29:16 +00:00
  • b5accabaa7 Properly punctuate "etc." and changed all occurrences of "IO" to "I/O". Wayne Davison 2004-01-23 08:59:19 +00:00
  • 4e308a9526 Fixed two more misspelled words. Wayne Davison 2004-01-23 02:02:51 +00:00
  • 4d88810810 Some spelling corrections and other simple fixes. Wayne Davison 2004-01-23 01:36:59 +00:00
  • f321922214 When setting an flist entry's flags, mask it with LIVE_FLAGS. Wayne Davison 2004-01-22 18:39:32 +00:00
  • cab13afe8d A couple comment tweaks. Wayne Davison 2004-01-22 18:37:26 +00:00
  • 72fc7ec59b Made the getgroups() code a little more portable. This will hopefully make the chgrp test work on the NetBSD and OpenBSD systems where it is failing. Wayne Davison 2004-01-22 09:16:21 +00:00
  • 58743a87b8 Improved to add the default gid if it is missing from the list. Wayne Davison 2004-01-22 09:13:36 +00:00
  • 54bf456e85 Removed an obsolete comment. Wayne Davison 2004-01-22 09:05:09 +00:00
  • a24639bb36 Tweaked an argv-type variable so that it's a little clearer what the code is doing. Also added a comment. Wayne Davison 2004-01-22 04:40:33 +00:00
  • 3fef53645d Use the new f_name_to() calling syntax. Wayne Davison 2004-01-22 04:38:18 +00:00
  • 882e689312 - Ensure in make_file() that we can't make a name that overflows our buffers (note that receive_file_entry() already does this). - Changed f_name_to() to not do any length checking since it is now redundant. Wayne Davison 2004-01-22 04:38:17 +00:00
  • b0a93231cf Added more missing news. Wayne Davison 2004-01-22 02:02:00 +00:00
  • 0c819b76d6 New news. Wayne Davison 2004-01-22 01:23:43 +00:00
  • ce58b1b479 Size-check the --temp-dir string so we don't have to worry about it overflowing elsewhere in the code. Wayne Davison 2004-01-22 01:20:24 +00:00
  • a16d8f2b25 Improved a couple comments. Wayne Davison 2004-01-21 02:45:10 +00:00
  • 59187666b9 Use new push_dir() syntax. Wayne Davison 2004-01-20 17:46:31 +00:00
  • 808c57c343 - Use the new push_dir() and pop_dir() calling syntax. - The "olddir" handling changed to accommodate the above, and to avoid using malloc()/free(). Wayne Davison 2004-01-20 17:46:30 +00:00
  • 4af8fe4e78 - Changed push_dir() to not take a "save" arg and to return 1 or 0 for success or failure instead of a string pointer. The function also ensures that we don't overflow the curr_dir[] buffer. - Changed pop_dir() to not free() anything and to return 1 or 0 for success or failure. Wayne Davison 2004-01-20 17:46:29 +00:00
  • 4034cb3f71 Use new stringjoin() function. Wayne Davison 2004-01-20 05:35:57 +00:00
  • 6fc048f438 Find last '@' in the user@site string, just in case the username has a '@' in it. Wayne Davison 2004-01-20 05:27:09 +00:00
  • 5d2a707139 Use new stringjoin() and pathjoin() functions. Wayne Davison 2004-01-20 05:24:07 +00:00
  • 81d2b0ef9d Use new pathjoin() function. Wayne Davison 2004-01-20 05:15:14 +00:00
  • 248ed45fc6 Use new pathjoin() function. Wayne Davison 2004-01-20 05:09:36 +00:00
  • 893c4cc056 Use new stringjoin() function. Wayne Davison 2004-01-20 04:56:20 +00:00
  • a7725e6df9 Use new pathjoin() function. Wayne Davison 2004-01-20 04:53:59 +00:00
  • 368ad70e05 Added stringjoin() and pathjoin(). Wayne Davison 2004-01-20 04:43:49 +00:00
  • b7cee9498b Eliminate unneeded strlen after strlcpy. J.W. Schultz 2004-01-20 03:37:04 +00:00
  • 72d45525d2 Make sure that strlcpy() returns the right value when the bufsize is 0. Wayne Davison 2004-01-20 00:59:26 +00:00
  • 1fb8ec4b0d Fixed a bug in strlcat() where it would not properly detect a no-change condition if called with an initial string longer than the specified size limit (due to an unsigned var's inability to go negative). Wayne Davison 2004-01-20 00:29:49 +00:00
  • beb9368481 Make sure that the batch-prefix string isn't overly long (avoiding a potential problem in the batch-filename code). Wayne Davison 2004-01-19 23:33:02 +00:00
  • 981555bddb Actually, let's avoid snprintf() where possible. Wayne Davison 2004-01-19 23:28:57 +00:00
  • 9c7527085c Use snprintf() instead of strlcpy()+strlcat(). Wayne Davison 2004-01-18 21:22:49 +00:00
  • eddd5d129e A few minor string optimizations and a new complaint if we try to send a truncated filename. Wayne Davison 2004-01-17 19:45:26 +00:00
  • 26f76b7912 Got rid of an extra call to io_start_buffering_out(). Wayne Davison 2004-01-17 05:04:04 +00:00
  • 32eda0961e Unified the externs. Wayne Davison 2004-01-17 04:58:24 +00:00
  • 66964002df A fix for --cvs-exclude. Wayne Davison 2004-01-17 01:23:41 +00:00
  • 57469f6c31 Items read from a per-directory .cvsignore file should be added to the local_exclude_list, not the exclude_list. Wayne Davison 2004-01-17 01:16:49 +00:00
  • 13c7bcbb2b Output an error before we die if we get a wacko message from the receiver. Wayne Davison 2004-01-16 16:31:47 +00:00
  • d48c806560 Clarified the --delete-after descriptions. Wayne Davison 2004-01-15 17:45:53 +00:00
  • ad1a09a509 Clarified the --delete-after help text. Wayne Davison 2004-01-15 17:43:34 +00:00
  • d6631cf3a5 If we're a daemon talking with a pre-28 protocol, use FERROR for a vanished-file message (not FINFO). Wayne Davison 2004-01-15 08:56:33 +00:00
  • 5a8543b8b8 In two places: needed to use protocol_version, not PROTOCOL_VERSION. Wayne Davison 2004-01-15 08:39:25 +00:00
  • 19119cbd35 Changed version to "2.6.1cvs". Wayne Davison 2004-01-15 08:16:40 +00:00
  • 442743b83c Improved receiver/generator communications. Wayne Davison 2004-01-15 07:51:37 +00:00
  • 419896af47 - Define FULL_FLUSH and NORMAL_FLUSH. - Got rid of FNONE from logcode enum. - Created msgcode enum with MSG_DATA, MSG_REDO, MSG_DONE, etc. Wayne Davison 2004-01-15 07:42:27 +00:00
  • 0569a1339d - Got rid of the f_gen pipe. - Use new send_msg() call with MSG_DONE or MSG_REDO. Wayne Davison 2004-01-15 07:42:25 +00:00
  • f1e3656ee2 - Call io_flush() with its new FULL_FLUSH/NORMAL_FLUSH arg. - Got rid of the recv_pipe between the receiver and the generator. - Use new send_msg(MSG_DONE,...) call to signal the generator when the receiver is done. - Use the new get_redo_num() call in the generator to read the final -1 from the receiver. Wayne Davison 2004-01-15 07:42:21 +00:00
  • a644fc3cc4 - Moved err_list* stuff to io.c and renamed them to msg_list*. - Call the new send_msg() function to send a remote log message. Wayne Davison 2004-01-15 07:42:19 +00:00
  • d17e1dd2da - Moved the err_list* stuff here from log.c and renamed them msg_list*. - Renamed log_error_fd to msg_fd_out, and io_error_fd to msg_fd_in. - Added a redo_list* to keep track of any redo items that come over the message channel from the receiver to the generator. - The io_flush() and msg_list_push() functions now take an arg: NORMAL_FLUSH or FULL_FLUSH. The latter ensures that we don't lose any log messages that haven't gotten written from the msg_list. - Added a send_msg() function that log.c calls to send any remote log messages. It is also called to send the new MSG_REDO and MSG_DONE messages. Wayne Davison 2004-01-15 07:42:17 +00:00
  • b9b15fb165 We now call get_redo_num() instead of reading f_recv (which was removed). Wayne Davison 2004-01-15 07:42:15 +00:00
  • ef732c3b54 Call io_flush() with its new FULL_FLUSH option. Wayne Davison 2004-01-15 07:42:12 +00:00
  • baa4212ae1 If the do_lchown() fails and we weren't trying to change the user, the error now says that chgrp failed, not chown. Wayne Davison 2004-01-15 07:08:00 +00:00
  • 0be976ec0a Fixed a bug when a non-root user copies a GID=0 file with -g set and no permissions to set group 0. Wayne Davison 2004-01-15 07:06:45 +00:00
  • f7f10340d6 The HAS_INODE_DATA flag is no longer a part of the LIVE_FLAGS define. Wayne Davison 2004-01-15 02:25:38 +00:00
  • 68f9910d94 Explain the --progress output. Wayne Davison 2004-01-13 18:50:40 +00:00
  • fb6e0ea120 Give the user an idea of how far along in the transfer we are when using --progress. Wayne Davison 2004-01-13 18:25:03 +00:00
  • 97feb557ed Set stats.current_file_index. Wayne Davison 2004-01-13 18:22:43 +00:00
  • dc8293ff73 Added current_file_index. Wayne Davison 2004-01-13 18:22:13 +00:00
  • 785db4ced0 Merged a couple more f != -1 if sections. Wayne Davison 2004-01-13 06:27:30 +00:00
  • 5562deb169 Moved a couple externs. Wayne Davison 2004-01-13 05:13:57 +00:00
  • 983b1ed321 Merged some "if (f != -1)" checks, put the clean_flist() call in the right spot, and moved some externs. Wayne Davison 2004-01-13 05:11:56 +00:00
  • 548abf96ce Relocated some externs. Wayne Davison 2004-01-13 04:50:45 +00:00
  • f8ebdf9265 More hard-link stuff. Wayne Davison 2004-01-12 03:59:53 +00:00
  • aa23c22004 Changed the hard-link check. Wayne Davison 2004-01-12 03:50:07 +00:00