Commit Graph

  • 48d704af52 Tru64 fix. Wayne Davison 2004-02-27 07:37:43 +00:00
  • ac7aa92290 Use new HAVE_SOCKADDR_SIN_LEN define (replaces HAVE_SOCKADDR_LEN). Wayne Davison 2004-02-27 07:22:40 +00:00
  • 0042f81894 We now set HAVE_SOCKADDR_SA_LEN and HAVE_SOCKADDR_SIN_LEN based on sockaddr.sa_len and sockaddr.sin_len, respectively (replacing HAVE_SOCKADDR_LEN). Wayne Davison 2004-02-27 07:22:39 +00:00
  • 2c836acb37 No longer needed. Wayne Davison 2004-02-26 04:03:44 +00:00
  • a1d8f29a3d A couple AC_DEFINE() changes so that we can do without acconfig.h. Wayne Davison 2004-02-26 04:03:35 +00:00
  • a174e1ed0f Tweaked some comments and some whitespace. Wayne Davison 2004-02-25 21:20:59 +00:00
  • 530adb7625 Configure addition. Wayne Davison 2004-02-23 20:09:14 +00:00
  • cd3fe9fb03 Allow the default (system) rsyncd.conf file to be specified via configure. Wayne Davison 2004-02-23 20:00:20 +00:00
  • a8edfd53d1 Trivial whitespace tweak. Wayne Davison 2004-02-23 19:23:53 +00:00
  • dbb665180c Shouldn't ignore .cvsignore. Wayne Davison 2004-02-23 18:19:13 +00:00
  • 9d78ed31a7 A couple fixes from Shinichi Maruyama. Wayne Davison 2004-02-23 07:03:03 +00:00
  • 89afe532d7 Mentioned the recent change in slash handling. Wayne Davison 2004-02-23 02:28:04 +00:00
  • c67d13866b Changed the literal 9000 into "OPT_REFUSED_BASE". Wayne Davison 2004-02-22 08:56:43 +00:00
  • 3b98b08c4d Another bug fix. Wayne Davison 2004-02-21 21:39:54 +00:00
  • 9c15534511 Got rid of the "refuse options" section. Wayne Davison 2004-02-21 21:37:14 +00:00
  • 55afbb522c Complain in the daemon log file if there is an unknown option in the "refuse options" value. Also changed the idiom used to mark refused options in the popt struct. Wayne Davison 2004-02-21 21:36:55 +00:00
  • 27ed20f7a0 Fixed the "refuse options" setting in the daemon after Fabrice Bellet identified what was wrong. Wayne Davison 2004-02-21 21:12:49 +00:00
  • f567e9b3d7 - Guard against and out-of-memory condition. - Don't use the NGROUPS_MAX define. Wayne Davison 2004-02-20 17:09:30 +00:00
  • 40ae4f93a0 Don't use NGROUPS_MAX define. Wayne Davison 2004-02-20 17:01:33 +00:00
  • 7a27e9b599 Don't use ENOMSG -- it's not portable. Wayne Davison 2004-02-18 22:33:21 +00:00
  • 62c9e6b3a5 Moved the EXDEV handling into robust_rename(). Wayne Davison 2004-02-17 23:13:10 +00:00
  • cfeed4da95 - If we return an error because of dry_run being set, we now set errno. - The do_mkstemp() routine now preserves the errno value from fchmod() if that call fails. - Improved the CHECK_RO macro stuff. Wayne Davison 2004-02-17 23:00:00 +00:00
  • 4068d8617d We no longer munge a double-leading slash in do_open() because we shouldn't generate a path with a double-leading slash anymore. Wayne Davison 2004-02-17 22:49:19 +00:00
  • 421c2a2448 Don't create a pathname that has two leading slashes (which we used to do when the root of the transfer was "/"). Wayne Davison 2004-02-17 21:57:44 +00:00
  • d1e7726460 Remove "Conditional -z for old protocols" because those old protocols are no longer supported. J.W. Schultz 2004-02-14 01:43:24 +00:00
  • 0596df00b3 Reordered the items inside the file_struct so that alignment padding should be minimized. Wayne Davison 2004-02-11 08:01:21 +00:00
  • 417c99f637 If --backup was specified, the links we remove are backed up. Wayne Davison 2004-02-11 05:03:04 +00:00
  • de0e225076 - Revised and optimized the directory-making code. - Optimized the keep_backup() code. Wayne Davison 2004-02-11 05:02:21 +00:00
  • e0391f8149 Added backup_dir_buf and backup_dir_remainder. Wayne Davison 2004-02-11 04:30:41 +00:00
  • 7de2483fbd Fixed a crash bug when keep_backup() calls make_file() and the lastdir pointer is no longer valid. Wayne Davison 2004-02-11 02:48:58 +00:00
  • 65d6212d03 Got rid of hard-link message (since I don't think it was ever output in older rsync versions). Wayne Davison 2004-02-11 02:33:17 +00:00
  • 4d4df3cd2b Another attempt at measuring the minimum alignment for a system. Wayne Davison 2004-02-10 23:35:12 +00:00
  • 62125b10c9 Simplified test for hardlink in make_backup debug message to avoid core-dump. J.W. Schultz 2004-02-10 23:23:09 +00:00
  • 81c3a3a86e Got rid of useless extern. Wayne Davison 2004-02-10 22:56:16 +00:00
  • 61d35e1844 Trying a different MINALIGN because of core dumps on the sparc-64 build-farm machines. Wayne Davison 2004-02-10 22:28:36 +00:00
  • 15f85b1f63 Revert pool_alloc's use of bomb if pool == NULL. J.W. Schultz 2004-02-10 21:11:24 +00:00
  • 5bf63a11f4 Keep in sync with protocol if idev data on stream but no hlink_pool. J.W. Schultz 2004-02-10 21:11:24 +00:00
  • 97a67bdfa9 If XMIT_HAS_IDEV_DATA is set in receive_file_entry(), we now bomb out if flist->hlink_pool isn't set (instead of neglecting to read the idev info). Wayne Davison 2004-02-10 17:53:52 +00:00
  • aa0b9ca174 If we call pool_alloc() on a NULL pool, bomb out with an error. Wayne Davison 2004-02-10 17:52:31 +00:00
  • b96efc2f67 Empty-line tweaks. Wayne Davison 2004-02-10 17:35:04 +00:00
  • be20dc3448 Changed a while loop to a for loop. Wayne Davison 2004-02-10 17:34:05 +00:00
  • cb869c26d9 Tweaked an if. Wayne Davison 2004-02-10 17:28:59 +00:00
  • 7cf8e8d05d Changed flist_init() to use offsetof(). Wayne Davison 2004-02-10 17:28:31 +00:00
  • 54fd3e5020 Added lib/pool_alloc.h to the HEADERS. Wayne Davison 2004-02-10 17:06:11 +00:00
  • 3e4916822d Dropped support for protocol versions less than 20 (2.3.0 released 15 Mar 1999) and activated warnings for protocols less than 25 (2.5.0 released 23 Aug 2001) J.W. Schultz 2004-02-10 03:54:47 +00:00
  • 7efdcf3218 Added allocation pool code. J.W. Schultz 2004-02-10 03:26:41 +00:00
  • 9935066b70 Make idev, hlink and file_struct + strings use allocation pools. J.W. Schultz 2004-02-10 03:23:37 +00:00
  • 6c2e5b56e4 Die if we overflowed the args[] array when building up the remote command in do_cmd(). Wayne Davison 2004-02-09 21:22:59 +00:00
  • 2289bf64cc The batch-options now set checksum_seed to the appropriate fixed value. Wayne Davison 2004-02-09 18:32:54 +00:00
  • b1bf649cba Set checksum_seed only if it is still zero. Wayne Davison 2004-02-09 18:32:53 +00:00
  • 8ee6eb7134 Made checksum_seed an extern. Wayne Davison 2004-02-09 18:32:52 +00:00
  • f98c60bfa8 Use asprintf() in server_options() (plus a few more whitespace tweaks). Wayne Davison 2004-02-09 18:10:57 +00:00
  • a5c1113971 Updated the sizeof syntax and tweaked some whitespace. Wayne Davison 2004-02-09 17:45:22 +00:00
  • 736f46d1d9 Got rid of unused true/false defines. Wayne Davison 2004-02-07 18:40:52 +00:00
  • a8f7e4b835 Made a couple comments a little clearer. Wayne Davison 2004-02-07 00:12:40 +00:00
  • 9352b0649b Got rid of unused string_area struct. Wayne Davison 2004-02-06 15:33:15 +00:00
  • a85906c756 Start flist with a more reasonable size, grow it linearly once it reaches a largish size (16 million files) and make it actually match the comments so it may be used to initialize flists of known size (create_flist_from_batch()). J.W. Schultz 2004-02-06 10:00:33 +00:00
  • 8aa81e06e6 Update TODO to reflect recent changes. J.W. Schultz 2004-02-06 07:26:15 +00:00
  • 1f9ae80a3e Fixed the indentation in init_flist(). Wayne Davison 2004-02-06 07:19:57 +00:00
  • 71020fc3aa Correct sizeof usage and other whitespace. J.W. Schultz 2004-02-06 04:51:09 +00:00
  • 7b74bba15e Added a total memory allocated (allmem) line to show_malloc_stats. J.W. Schultz 2004-02-06 01:56:25 +00:00
  • e5fbaa713a Cause all three processes to report memory stats when -vv --stats J.W. Schultz 2004-02-05 03:27:54 +00:00
  • 6609a9f17e Mention a couple more changes. Wayne Davison 2004-02-05 02:56:57 +00:00
  • 5204e853e1 Now that the long-standing chgrp bug is fixed, go back to -vvv from -vvvv. Wayne Davison 2004-02-05 01:37:08 +00:00
  • 01363a24e2 Fixed a problem handling GID_NONE in match_gid(). Wayne Davison 2004-02-05 01:32:38 +00:00
  • d49def4832 - Fixed a bug using --numeric-ids as non-root when the receiver does not have permissions to set one or more of the gids. - If the add_[ug]id() routine couldn't find a name for an ID, we still note the ID in our list of IDs so that we don't try to look it up again (and again). (The name-less IDs are stripped when sending the IDs from the sender to the receiver.) - Created a better add_to_list() function that handles the linking of the new node into the list (rather than the caller doing it). - Added new internal functions for some receiver-side work that needed to be done in multiple places (the recv_add_[ug]id() functions). - We output debug info even for ID mappings that have no names. This make the list complete and also notes which gids get mapped to -1 (GID_NONE). - Turned several while loops into for loops. Wayne Davison 2004-02-05 01:07:23 +00:00
  • 4836c3eece Added new extern. Wayne Davison 2004-02-05 00:46:32 +00:00
  • 9f7b8c3b8f Only call add_uid() or add_gid() if numeric_ids is not set. Wayne Davison 2004-02-05 00:44:11 +00:00
  • ade7292aee Moved a function. Wayne Davison 2004-02-04 20:09:21 +00:00
  • dbd8811b85 If a gid doesn't have a name on the originating system, the receiver won't see it in the list of IDs to remap. That means that we need to call the is_in_group() function from inside match_gid() to know if we can set the group or not (if we're not root). Wayne Davison 2004-02-04 19:25:11 +00:00
  • 05118158f4 Improved the trailing comment. Wayne Davison 2004-02-04 18:24:41 +00:00
  • 1df395f7c2 Use the new HAVE_GETGROUPS define. Wayne Davison 2004-02-04 17:49:36 +00:00
  • 5fdf2e7063 Added function check for getgroups. Wayne Davison 2004-02-04 17:21:48 +00:00
  • 6fe05820ff Use MY_UID() instead of getuid(). Wayne Davison 2004-02-04 17:06:07 +00:00
  • 670d8abf80 Use MY_GID() instead of getgid(). Wayne Davison 2004-02-04 17:05:44 +00:00
  • b2bffbb2ca Added two defines: MY_UID() and MY_GID(). Wayne Davison 2004-02-04 17:04:58 +00:00
  • 13a6d667d2 Added getegid to the functions we check. Wayne Davison 2004-02-04 16:45:26 +00:00
  • 1be77f8336 Added geteuid to the functions to check. Wayne Davison 2004-02-04 16:33:34 +00:00
  • 187e9c24f1 Another improvement to the debug info we output. Wayne Davison 2004-02-04 16:27:47 +00:00
  • eddeaf76f8 Set the "max verbosity" global to 9. Wayne Davison 2004-02-04 07:32:48 +00:00
  • 33e9d10d2a Use the new lp_max_verbosity() value to limit the server's "verbose" value. Wayne Davison 2004-02-04 07:32:12 +00:00
  • 46f7dc3bf6 Added "max verbosity" global parameter that allows you to configure a higher debug level instead of the default of level-l verbosity. Wayne Davison 2004-02-04 07:31:29 +00:00
  • 555b0e20f7 Tweaked the new debug-logging strings. Wayne Davison 2004-02-04 07:24:13 +00:00
  • a57dfe710d Turned on 4 -v options for some build-farm testing. Wayne Davison 2004-02-04 06:15:24 +00:00
  • 53adbd7a3d If we encounter an error, output the rsyncd.log file, if it exists. Wayne Davison 2004-02-04 05:34:29 +00:00
  • 17f033b725 Temporarily switch to 4 -v options. Wayne Davison 2004-02-04 03:58:19 +00:00
  • cefed3e8dc Delay the output the (verbose > 3) list of files until we've had a chance to map the uid/gid info in the receiver. Wayne Davison 2004-02-04 03:52:51 +00:00
  • 84fa865c0c Output some debug info if verbose > 3. Wayne Davison 2004-02-04 03:50:16 +00:00
  • f05f993eb7 If we're dumping the file list (i.e. verbose > 3), mention the uid and/or gid (depending on applicability). Wayne Davison 2004-02-04 03:28:22 +00:00
  • e90cdb8adf Changed the -x code to allow -L to copy a file on another filesystem that is pointed to by a symlink on our exclusive filesystem. Wayne Davison 2004-02-04 03:25:18 +00:00
  • 4250941710 Fixed a dropped '-'. Wayne Davison 2004-02-04 03:01:32 +00:00
  • a2687b64a2 Added a little more compatibility code for non-standard systems. Wayne Davison 2004-02-03 23:28:19 +00:00
  • c284f34a49 Some indentation fixes and the removal of some superfluous parens. Wayne Davison 2004-02-03 23:04:25 +00:00
  • 5f5be796b0 Changed a couple sizeof calls and improved some string handling in the {send,recv}_exclude_list() calls. Wayne Davison 2004-02-03 23:01:58 +00:00
  • 5cb374364b Modified sizeof usage and eliminated trailing whitespace. Wayne Davison 2004-02-03 22:48:32 +00:00
  • f15256e156 Added some temporary code to try to figure out what is going wrong on one NetBSD box in our build farm. Wayne Davison 2004-02-03 20:01:26 +00:00
  • ce37eb2d83 If verbose > 2, mention it if we're setting the uid or the gid. Wayne Davison 2004-02-03 20:00:35 +00:00
  • 0d6e308b51 correct sizeof usage. J.W. Schultz 2004-02-03 06:21:56 +00:00
  • b1dab2363a Made hard-link sending compatible with pre-28 protocols again. Wayne Davison 2004-02-03 04:21:15 +00:00
  • bd6abc4939 Corrected sizeof usage: sizeof obj sizeof (type) J.W. Schultz 2004-02-03 03:42:49 +00:00