Commit Graph

  • 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
  • 96eeda0324 Fix for memset bug found by buildfarm. Wayne Davison 2004-02-02 22:35:07 +00:00
  • 4c4266d9c9 Change to try to debug a failure on the build farm. Wayne Davison 2004-02-02 22:18:23 +00:00
  • 54e87b4b06 Don't warn about lack of -l support if we're the sender -- we just won't send the receiver any symlinks. Wayne Davison 2004-02-02 21:33:10 +00:00
  • 44e9e221f3 - Call init_flist(). - Got rid of the symbolic-links-warning code (it was not right, and it is now handled in options.c). Wayne Davison 2004-02-02 21:33:06 +00:00
  • 61dec11ae0 - Use as little memory as possible for the file_struct (saves another 3 bytes per file). - Made the idev struct allocated by the group-malloc again (J.W. suggested the proper way to align it for all systems). - Added init_flist(). Wayne Davison 2004-02-02 21:33:03 +00:00
  • 5009de7d2d Added comment about the position of file_list's "flags" var. Wayne Davison 2004-02-02 21:32:56 +00:00
  • 67f3feebcb Don't free link_u.idev. Wayne Davison 2004-02-02 21:32:52 +00:00
  • b22260749f Use "%H:%M:%S" instead of "%T" in strftime() call since it looks to be more portable. Wayne Davison 2004-02-02 21:02:13 +00:00
  • 06d76beb28 Clarify the safe/unsafe symlink options in the usage text. Wayne Davison 2004-02-02 18:25:37 +00:00
  • 7af4227ac2 Clarify the various safe/unsafe symlink options. Wayne Davison 2004-02-02 18:23:09 +00:00
  • 9312b7325e Go back to using malloc() for the hard-link data structure (for now at least). Wayne Davison 2004-02-02 07:06:54 +00:00
  • c6edb381f5 Free the hlink data again. Wayne Davison 2004-02-02 07:06:50 +00:00
  • a1d55ad095 Make sure that the idev struct's data is 4-byte aligned. Wayne Davison 2004-02-02 06:52:49 +00:00
  • a289addd96 - Changed the file-list allocation to alloc all the memory we need with one call, not with several mallocs and strdups. - Got rid of string_area() stuff (as suggested in the "@todo"). - Enhanced free_file() to optionally free the whole struct or to clear it (since we don't need to do both). - Don't zero out the other flist data when we're about to free it. Wayne Davison 2004-02-02 05:06:36 +00:00
  • 13c5b46361 Don't free the hlink data (it is not separately allocated anymore). Wayne Davison 2004-02-02 05:06:35 +00:00
  • f3af206d8d Changed args to make_file() and free_file(). Wayne Davison 2004-02-02 05:06:34 +00:00
  • df0054ab13 Added CLEAR_STRUCT and FREE_STRUCT defines. Wayne Davison 2004-02-02 05:06:33 +00:00
  • 0d162bd17c Added some missing #if SUPPORT_HARD_LINK and #if SUPPORT_LINK directives. Wayne Davison 2004-02-01 17:37:14 +00:00
  • e1add89334 - Fixed the bug where the --daemon option would squelch all option errors for later parameters. - Complain if someone passes us -l and we don't support symlinks. Wayne Davison 2004-02-01 17:29:41 +00:00
  • 22d49dc429 Changed the rdev code to have both an "rdev" variable (which always has the full device value) and an "rdev_high" variable (which zeros the lower byte in the last rdev value). Wayne Davison 2004-02-01 16:28:31 +00:00
  • 1aa4caf318 One more improvement to the 0-flag-byte avoidance algorithm. Wayne Davison 2004-01-31 22:40:55 +00:00
  • 306ffb8c71 A small optimization to the symlink-send code, and an extra sanity check to the symlink-receive code. Wayne Davison 2004-01-31 21:01:01 +00:00
  • 0a98201164 Fixed the test to ensure that we don't send a flag-byte of 0 to the receiver when transferring the file list. Wayne Davison 2004-01-31 20:24:52 +00:00
  • e0870f1d7a One more minor variable-name change. Wayne Davison 2004-01-31 11:36:03 +00:00
  • 1923b1fce4 Switched a buffer name in make_file() to make the code a little more similar to what is in receive_file_entry(). Wayne Davison 2004-01-31 11:32:30 +00:00
  • 5dc4003e63 Fixed the optional sanitization of the files_from arg. Wayne Davison 2004-01-30 16:14:46 +00:00
  • 37c817eb81 OK, "find ... -print0 | xargs -0 ..." wasn't portable. This is. Wayne Davison 2004-01-28 01:39:29 +00:00
  • 284d628a7c Got rid of indeterminacy in the overlapping-files. Wayne Davison 2004-01-28 00:37:55 +00:00
  • ff3184ca1e A couple more unsigned char changes to silence compiler warnings on signed-char systems (like Solaris). Wayne Davison 2004-01-28 00:04:57 +00:00
  • 12865a9762 New test to make sure that merging files from multiple directories continues to work. Wayne Davison 2004-01-27 23:56:00 +00:00
  • ea847c6232 Use who_am_i() to qualify some debug messages. Wayne Davison 2004-01-27 23:13:15 +00:00
  • b695f2423d Set the am_generator flag. Use who_am_i(). Wayne Davison 2004-01-27 23:13:14 +00:00
  • c3e5e5851b New function: who_am_i() returns "sender", "receiver", or "generator". Wayne Davison 2004-01-27 23:13:13 +00:00
  • 4337c8f856 Added "am_generator". Wayne Davison 2004-01-27 23:13:12 +00:00
  • 4c7e46079d Don't free lastdir! It is still needed by the flist basedir pointers. Also, output the basedir pointer when dumping the flist for debugging. Wayne Davison 2004-01-27 23:00:47 +00:00
  • 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