Commit Graph

  • 4f3c1df6c3 Made list more complete. Wayne Davison 2007-09-30 07:34:33 +00:00
  • eb8f5c74e1 Got rid of some SPACE-TAB sequencs in the indentation. Wayne Davison 2007-09-30 07:30:48 +00:00
  • a960239f39 Allow additional remote args to contain an identical hostname instead of requiring it to be empty. This allows for the easy use of braces: rsync -av host:file{1,2} /dest/ Wayne Davison 2007-09-30 07:14:16 +00:00
  • 5621e5105a Moved become_daemon() into clientserver.c. Wayne Davison 2007-09-30 06:57:12 +00:00
  • a1d2685b08 - Moved become_daemon() here from socket.c and made it static. - Call lp_load() before we call become_daemon(). - Output an error to stderr if we fail to open/parse the config file. - Added a create_pid_file() static function and call it earlier in the startup sequence. Wayne Davison 2007-09-30 06:57:07 +00:00
  • 0f6b4909db Improved --acls, --xattrs, and --fake-super. Wayne Davison 2007-09-29 17:01:01 +00:00
  • b0ca7d2500 Specify a better SMB_ACL_VALID_NAME_BITS value for OS X. Wayne Davison 2007-09-29 16:06:40 +00:00
  • 7ed6bc53b9 Added get_xattr_acl(), set_xattr_acl(), and del_def_xattr_acl(). Wayne Davison 2007-09-29 16:06:37 +00:00
  • f57ab2f718 When running with --fake-super, get/put ACLs from/to an xattr and don't range-check the incoming values. Wayne Davison 2007-09-29 16:06:34 +00:00
  • 5ebb7935d2 Tweaked a variable name. Wayne Davison 2007-09-29 04:35:26 +00:00
  • c50a9076e1 Added support for OS X testing using chmod +a and ls. Wayne Davison 2007-09-29 02:26:23 +00:00
  • d417c51669 - Added OS X ACL support. - Simplified some of the ge/set calling sequences. - Got rid of SMB_ACL_PERMSET_T. Wayne Davison 2007-09-28 21:54:11 +00:00
  • 5b934f5133 Added OS X ACL support, using slightly tweaked sys_acl_*() functions. Wayne Davison 2007-09-28 21:54:07 +00:00
  • 49ea69b3ff We enable ACL compilation on OS X by default now. Wayne Davison 2007-09-28 21:54:01 +00:00
  • 578219bed5 Determine the previous version number in a more reasonable fashion. Wayne Davison 2007-09-26 17:43:57 +00:00
  • 2e4a3d17b4 Some improvements and fixes for the upcoming release. Wayne Davison 2007-09-26 14:57:52 +00:00
  • b4b24520f6 Added (conditional) include of stdint.h. Wayne Davison 2007-09-23 22:31:14 +00:00
  • 13710874ce Changed "statx" to "stat_x" to try to work around a build problem on AIX. Wayne Davison 2007-09-23 22:19:55 +00:00
  • 7341ee2dfd Fixed a crash bug in get_local_name() when the file list is empty. Wayne Davison 2007-09-23 21:54:03 +00:00
  • e0cfd15bcc Fixed a glitch in the sending of mount-point dirs in inc_recurse mode. Wayne Davison 2007-09-23 21:46:51 +00:00
  • 5a47354882 Added a stub function for make_bak_dir(). Wayne Davison 2007-09-23 21:05:15 +00:00
  • f5b532b144 Added an option to copy_file() that tells it to try to make a backup directory if the open of the dest file fails. Wayne Davison 2007-09-23 21:03:46 +00:00
  • c0dba635ba The --inplace code now properly handles creating a backup when the --whole-file and/or --read-batch options are specified. Wayne Davison 2007-09-23 21:03:41 +00:00
  • e1ac7791fe Changed make_bak_dir() to take a const char *. Wayne Davison 2007-09-23 21:03:38 +00:00
  • 5b3f6a2730 Use make_bak_dir() if we get ENOENT while trying to open an inplace backup file. Wayne Davison 2007-09-23 19:45:22 +00:00
  • f203266889 Made make_bak_dir() global. Wayne Davison 2007-09-23 19:45:19 +00:00
  • 21914d8135 Made clean_flist() only duplicate *_DIR_* flags on a dropped dir when the kept entry is also a dir. Wayne Davison 2007-09-23 19:45:00 +00:00
  • 200aec7db4 Avoid a checker warning about unfreed memory. Wayne Davison 2007-09-23 19:10:10 +00:00
  • a15c4b38b5 Fix a glitch in the handling of the last path element in a -R path with a trailing slash. Wayne Davison 2007-09-23 16:02:33 +00:00
  • 40e383765a - Don't allow -x to drop implied directories. - Improved the code that tries to avoid scanning the same dir twice in a row to not drop any relnamecache entries. Wayne Davison 2007-09-23 15:46:11 +00:00
  • 5441088298 Added the relnamecache structure and improved some variable names. Wayne Davison 2007-09-23 14:35:12 +00:00
  • d0a6cdb62e Make sure that the dirs we are merging have the same timestamps. Wayne Davison 2007-09-23 02:18:57 +00:00
  • 19531e1f74 Got rid of some unneeded externs. Wayne Davison 2007-09-23 02:03:20 +00:00
  • 6f0805f564 Moved list-only output from flist.c to generator.c so that it works properly even in inc_recurse mode. Got rid of double output, weird output order, and outputting of implied dirs w/--no-implied-dirs. Wayne Davison 2007-09-23 02:00:53 +00:00
  • 6191429b50 Added a missing "void" to the arg-spec of setup_iconv(). Wayne Davison 2007-09-23 01:18:03 +00:00
  • 89b76bac1f Added a test to make sure that merging relative items continues to work right. Wayne Davison 2007-09-23 00:30:40 +00:00
  • 0758b2db30 Document the change to how --releative works. Wayne Davison 2007-09-22 22:57:50 +00:00
  • 74db1f1498 Always send implied dirs as dirs. Wayne Davison 2007-09-22 22:37:52 +00:00
  • 4f802c6637 Fixed a just-introduced glitch in directory creation with --no-implied-dirs. Wayne Davison 2007-09-22 21:51:08 +00:00
  • 33a04593ee We now forward the --no-implied-dirs option to the receiving side, just in case we end up talking protocol 30 in inc_recurse mode. Wayne Davison 2007-09-22 21:43:19 +00:00
  • 6303f9a25f The latest --relative --no-implied-dirs code in inc_recurse mode sends us a normal sequence of dirs, and we just skip the implied ones. Wayne Davison 2007-09-22 21:43:15 +00:00
  • 3932c42373 Using relative with incremental recursion now results in a normal sequence of directories in the hierarchy, and works properly when merging things from multiple sources. Wayne Davison 2007-09-22 21:43:11 +00:00
  • bc5df0f4e6 Fixed name of PTR_EXTRA_CNT (was PTR_EXTRA_LEN). Wayne Davison 2007-09-22 21:43:08 +00:00
  • 4b163f00c2 - Incremented the SUBPROTOCOL_VERSION to 9. - Fixed name of PTR_EXTRA_CNT (was PTR_EXTRA_LEN). - Added F_DIR_RELS_P() to support --relative in inc_recurse mode. Wayne Davison 2007-09-22 21:43:05 +00:00
  • f07992739a Added ifuncs.h. Wayne Davison 2007-09-22 18:07:44 +00:00
  • c605c2cdbd Tweaked opening comments. Wayne Davison 2007-09-22 18:07:17 +00:00
  • 1b42f628f4 Moved inline functions from rsync.h into ifuncs.h. Wayne Davison 2007-09-22 16:52:58 +00:00
  • 5dafe360de Moving inline functions into its own .h file. Wayne Davison 2007-09-22 16:46:49 +00:00
  • 6619d5fcc1 Added some stub functions for compilers not smart enough to get rid of static inline functions that are not called. Wayne Davison 2007-09-22 14:18:32 +00:00
  • b960483e99 Avoid affecting the proto.h file. Wayne Davison 2007-09-22 14:16:48 +00:00
  • dd4a039515 Added some stub functions for compilers not smart enough to get rid of static inline functions that are not called. Wayne Davison 2007-09-18 19:53:50 +00:00
  • 229554084d Added missing "#ifdef ICONV_OPTION" conditionals. Wayne Davison 2007-09-18 18:46:03 +00:00
  • 4a1edb63dd If iconv_t isn't needed, define it as an "int" so that our proto.h file can be parsed. Wayne Davison 2007-09-18 18:45:59 +00:00
  • 3170b20967 Mention that a negative max-connections value disables the module. Wayne Davison 2007-09-18 14:18:45 +00:00
  • d34cd639fc If max-connections is < 0, disable the module. Wayne Davison 2007-09-18 14:14:22 +00:00
  • 236df01b15 One final tweak. Wayne Davison 2007-09-18 14:11:25 +00:00
  • 21cafc50cc Some minor improvements in claim_connection(). Wayne Davison 2007-09-18 14:09:38 +00:00
  • de80679b67 Switching to --no-i-r from --no-ir. Wayne Davison 2007-09-18 14:04:46 +00:00
  • 27999abab4 Document the changed name of --no-i-r. Wayne Davison 2007-09-18 14:03:41 +00:00
  • 82f37486a1 Mention the --protect-args (-s) option and how it interacts with --iconv and --files-from. Wayne Davison 2007-09-18 01:29:36 +00:00
  • 7820fa949f Relocated the setting of ic_ndx. Wayne Davison 2007-09-18 01:14:33 +00:00
  • 2ac9793064 - Added new iconvbufs() conversion function that is now used for our --iconv support. - Moved the setup of the ic_ndx value to compat.c. Wayne Davison 2007-09-18 01:11:57 +00:00
  • a4453606cc - Improved -s support. - Handle setup_iconv() call in parse_arguments() so it gets set early. Wayne Davison 2007-09-18 01:11:54 +00:00
  • 71605b0f4d - Make use of new iconvbufs() function. - Convert protected args when -s and --iconv are active. - Simplified the splitting of args between normal and protected. - Relocated setup_iconv() call so that it takes effect earlier. Wayne Davison 2007-09-18 01:11:49 +00:00
  • ba525f770c - Make use of new iconvbufs() function. - Convert remote --files-from filenames when -s and --iconv are active. Wayne Davison 2007-09-18 01:11:45 +00:00
  • 2509753fd3 Make use of new iconvbufs() function. Wayne Davison 2007-09-18 01:11:42 +00:00
  • 5688c74d25 - Setup the ic_ndx value here with the other FOO_ndx values. - Don't disable inc_recurse due to --no-implied-dirs. - Set filesfrom_convert bool. Wayne Davison 2007-09-18 01:11:35 +00:00
  • 2ac081ff60 - Added an xbuf type for use in the --iconv and --files-from code. - Incremented the SUBPROTOCOL_VERSION. Wayne Davison 2007-09-18 01:11:32 +00:00
  • 5d3e5f641d Improved -s and support cvs's -e30.8 version idiom. Wayne Davison 2007-09-17 06:02:09 +00:00
  • a0f29ed824 Make sure that the hashed hard-link numbers from different file lists can't overlap in inc_recurse mode. Wayne Davison 2007-09-17 01:45:44 +00:00
  • 0b515981fc Changed print_child_argv() to take its prefix message as an arg. Wayne Davison 2007-09-16 21:41:42 +00:00
  • 2e8259bb0b Disable -s by default. Wayne Davison 2007-09-16 02:42:55 +00:00
  • d274524317 Adding knowledge of some new options. Wayne Davison 2007-09-15 21:10:35 +00:00
  • 71845bd2a0 That should have been -s. Wayne Davison 2007-09-15 21:10:18 +00:00
  • bdd53557a8 Force knowledge the -p option, since it gets passed specially. Wayne Davison 2007-09-15 21:08:08 +00:00
  • d6ca255c21 - Fixed a bug in the passing of the --max-delete option. - Added --no-i-d as a shorter no-implied-dirs. - Changing to --no-i-r instead of --no-ir. Wayne Davison 2007-09-15 20:54:31 +00:00
  • 2dc7b91dd2 Handle inheritance of SGID bit on dirs marked with FLAG_DIR_CREATED. Wayne Davison 2007-09-15 19:58:15 +00:00
  • 288b12eefe We set FLAG_DIR_CREATED on a dot dir that got created by get_local_name() rather than using the (now removed) new_root_dir global. Wayne Davison 2007-09-15 19:58:12 +00:00
  • f7d6dce6c8 - Fixed an inc_recurse problem with implied dirs not getting created with the right attributes and getting omitted from the output. - Got rid of the directory touch-up pass in inc_recurse mode again. This requires us to create any missing directories early, but we still report on what happened in the normal course of the transfer sequence. - Use the FLAG_DIR_CREATED flag instead of (the removed) new_root_dir global. Wayne Davison 2007-09-15 19:58:09 +00:00
  • 48a481c4d0 Changed FLAG_DIR_CHANGED to FLAG_DIR_CREATED. Wayne Davison 2007-09-15 18:43:36 +00:00
  • 8db8eacbdd - If two duplicate directories have identical outside-the-transfer paths, we only scan one of them in inc_recurse mode. - When unduplicating directories in inc_recurse mode, dump the ealier directory if it is implied. Wayne Davison 2007-09-15 17:29:25 +00:00
  • e8e9e12c3a Reverting last change for a re-think. Wayne Davison 2007-09-15 17:00:41 +00:00
  • 6e6daf5ac6 Fixed a problem with duplicate dirs being unduplicated in the list: in inc_recurse mode, we must keep the last dir of the duplicates. Wayne Davison 2007-09-15 16:32:38 +00:00
  • e73eed8563 Added more local-network IPs to the "hosts allow" rsyncd config so that the FreeBSD machine in the compile farm can test. Wayne Davison 2007-09-15 15:50:59 +00:00
  • da1319128a - Parse hard-link info as soon as we get it in inc_recurse mode. - Improve the chances of the generator finding a match for a hard-link file in inc_recurse mode. Wayne Davison 2007-09-15 15:40:57 +00:00
  • f2179fd370 The server should not wait around for an extra end-of-run message. Wayne Davison 2007-09-15 15:36:04 +00:00
  • 969cdffbea Prevent a server from outputting an end-of-run message about its error-code that cannot be sent successfully. Wayne Davison 2007-09-15 15:30:45 +00:00
  • 3b7bcaaf34 Got rid of duplicate error when push_pathname() fails. Wayne Davison 2007-09-15 15:27:56 +00:00
  • 4abe379c05 Added an "ndx" arg to all the finish_hard_link() calls. Wayne Davison 2007-09-10 06:15:28 +00:00
  • c980db5f08 - Simplified the flist-spanning gnum logic in match_gnums(). - Don't use hlink_flist in hard_link_check(). - Made the prev_name logic in hard_link_check() better. - Added an "ndx" arg to the finish_hard_link() call. Also, set the prev value of any prior entries to the first finished item (which ensures that any item that follows a re-shuffled item (which was waiting for a transferred file to finish) can find the FIRST+DONE item. Wayne Davison 2007-09-10 06:15:25 +00:00
  • c35d6e3522 Added --no-protect-args and --no-s. Wayne Davison 2007-09-09 07:58:19 +00:00
  • 044dc29307 - Made glob_expand_one() public. - Tweaking the calling syntax for glob_expand(). Wayne Davison 2007-09-09 07:53:22 +00:00
  • 7a4addaa74 Added the --protect-args (-s) option, and made parse_arguments() clear out an old popt context before starting a new one. Wayne Davison 2007-09-09 07:53:18 +00:00
  • f7e5068d94 - If the user specifies a source arg with a hostspec in it in a local- source transer, complain and exit. This can help to find option problems were an arg to an option turns into a local-source arg, and the real remote-source arg will now get rejected rather than attempting to find a file with a colon in its name. - We now support the ability to specify more than one remote arg using the ":FILENAME" idiom for additional remote filenames. - If the --protect-args (-s) option was specified, we send just the "--server -s" options to the remote rsync when it is starting, and then the real args are sent over the socket. Wayne Davison 2007-09-09 07:53:15 +00:00
  • 67b8f3dfe7 - Renamed read_line() to be read_line_old(). - Renamed read_filesfrom_line() to read_line() and added args to allow the caller to control how it works. - Added a new function, read_args(), that reads args from a file descriptor (using read_line()) and expands any wildcards in them. This function has relocated daemon code (from clientserver.c) and is also used by the new --protect-args (-s) option. The new code also got rid of an extra strdup() that wasn't needed. Wayne Davison 2007-09-09 07:53:12 +00:00
  • 95a44066da Call the renamed read_line() function (was read_filesfrom_line()). Wayne Davison 2007-09-09 07:53:08 +00:00
  • 7909e65f83 - Made start_socket_client() and start_inband_exchange() take a variable number of remote args. - We now exchange a "VERSION.SUBVERSION" value in the initial @RSYNCD message. This is backward compatible with pre-protocol 30 rsyncs, and fixes a problem where rsync daemons weren't checking if they were speaking a compatible pre-release protocol. - Moved the protocol-handling code (which was in two places) into a new function: exchange_protocols(). - Protocol 30 now sends/receives the daemon args using NULLs as a separator rather than a newline. - Moved the arg-reading code into a new function in io.c: read_args(). Wayne Davison 2007-09-09 07:53:05 +00:00
  • f74a3d813b Call the renamed read_line_old() function (was read_line()). Wayne Davison 2007-09-09 07:53:02 +00:00
  • ac59386027 Used a couple "#if SUBPROTOCOL_VERSION != 0" conditionals. Wayne Davison 2007-09-09 07:52:59 +00:00
  • 73a649b7cb Tweaked the pretend-ssh script. Wayne Davison 2007-09-08 20:16:28 +00:00