Commit Graph

  • 314f459161 - Made readlink_stat() and link_stat() optionally follow a symlink to a dir. This fixes deletions inside "kept" symlinked dirs. - Call link_stat() with its new arg (for --keep-dirlinks support). Wayne Davison 2004-06-11 07:40:57 +00:00
  • 83926d3cae Make sure that keep_dirlinks is turned off for the sender. Wayne Davison 2004-06-11 07:40:54 +00:00
  • 6218c7bf42 - Moved --keep-dirlinks code over to flist.c. - Call link_stat() with its new arg (for --keep-dirlinks support). Wayne Davison 2004-06-11 07:40:51 +00:00
  • 566fce3237 Made delete_one() handle a failed rmdir on a symlink when --keep-dirlinks was specified. Wayne Davison 2004-06-11 07:40:48 +00:00
  • 373ef16010 Call link_stat() with its new arg (for --keep-dirlinks support). Wayne Davison 2004-06-11 07:40:45 +00:00
  • ea76e76104 In set_filesystem(), call do_stat(), not link_stat() to ensure that we get the directory behind it all. Wayne Davison 2004-06-11 05:02:59 +00:00
  • 9fd62d1588 The mkdir code should be using do_stat(), not do_lstat() to copy each existing dir's mode & owner info. Wayne Davison 2004-06-10 16:43:52 +00:00
  • b7061c82b4 Allow the argv list the daemon uses for globbing its args to grow. Wayne Davison 2004-06-09 21:51:07 +00:00
  • 6fb812f747 Removed some excessive parens. Wayne Davison 2004-06-09 21:43:28 +00:00
  • 40e8d11e64 Mentioned a couple more bugfixes. Wayne Davison 2004-06-09 21:42:33 +00:00
  • 73042aae5b Restore UNUSED() macro (the prior problems that prompted me to remove it appear to have been a build-farm bug). Wayne Davison 2004-06-09 21:41:21 +00:00
  • e5ce3bcf2c Needed to enclose the new symlink-warning code in an "#if SUPPORT_LINKS" conditional. Wayne Davison 2004-06-09 19:23:56 +00:00
  • c399d22a19 Renamed read_unbuffered() to readfd_unbuffered() so that it matches writefd_unbuffered(). Wayne Davison 2004-06-09 03:07:50 +00:00
  • 1ea087a794 - Made the maximum-fd computation prior to a select() use the same idiom in both the read and write code (also use a better variable name). - Made the bytes-available code at the end of the select() loop use the same flow of control in the read and the write code. Wayne Davison 2004-06-08 22:18:04 +00:00
  • 00bdf89977 Improved a comment in read_msg_fd() and made the byte-reading code in read_timeout() a little better. Wayne Davison 2004-06-08 16:23:54 +00:00
  • 0bb4d17634 Improved rwrite() in two ways: - We no longer assume that the buffer is null terminated (daemon mode would ignore the len when logging a message). - Errors in daemon mode are now sent to both the log and the user. Wayne Davison 2004-06-07 22:51:14 +00:00
  • f9c6b3e7d6 Increase the size of the message-receving buffer for error messages sent from the receiver to the generator. Wayne Davison 2004-06-07 22:47:01 +00:00
  • 9e5a5ddb4c Changed a few FINFO messages to FLOG. Wayne Davison 2004-06-07 22:33:01 +00:00
  • 8c0d6a8432 Got rid of some am_daemon games in option_error(). Wayne Davison 2004-06-07 22:05:22 +00:00
  • 553f93758a Updated some exclude information that has changed. Wayne Davison 2004-06-07 21:40:11 +00:00
  • a4a7e64c19 Don't report a "file vanished" error if a symlink points to nowhere and -L was specified. Wayne Davison 2004-06-07 19:59:20 +00:00
  • 22832c30a0 Updated a couple things. Wayne Davison 2004-06-06 20:41:01 +00:00
  • 1a21666286 Tell folks to go to the bug-tracking page to report bugs. Wayne Davison 2004-06-06 20:36:56 +00:00
  • 4033b80b51 - Got rid of some useless calls to msg_list_push(). - Added a couple checks to ensure that the receiver doesn't mix two clashing kinds of writes on the msg_fd_out pipe. - Made sure that the read code in the receiver flushes the msg_fd_out pipe, if needed. Wayne Davison 2004-06-06 19:15:58 +00:00
  • 99218d821b If the user specifies a small io_timeout value, lower select_timeout. Wayne Davison 2004-06-06 19:02:40 +00:00
  • e626b29e10 Make sure our select calls don't sleep for over one minute at a time, even when io_timeout is a longer value (though the code in options.c might set it to a shorter value if io_timeout is small). Wayne Davison 2004-06-06 19:02:09 +00:00
  • f89b936801 Don't use single-line "if (condition) statement;" idiom. Wayne Davison 2004-06-06 18:36:22 +00:00
  • 17f59e818d Mention changes to the patches dir. Wayne Davison 2004-06-05 21:23:59 +00:00
  • b5bd5542eb Neatened up some of the glob-expand code and made a few other minor tweaks. Wayne Davison 2004-06-05 20:26:56 +00:00
  • 2e94e70e2b Some superficial code tweaks. Wayne Davison 2004-06-05 19:59:03 +00:00
  • 4e1f385711 Mentioned new --keep-dirlinks option. Wayne Davison 2004-06-05 16:19:02 +00:00
  • 716e73d483 New --keep-dirlinks option. Wayne Davison 2004-06-05 16:16:30 +00:00
  • 5b36173d11 Mention new SSH_* vars. Wayne Davison 2004-06-03 17:20:33 +00:00
  • b2ef4f6134 The daemon-over-ssh code now looks for $SSH_CONNECTION and $SSH2_CLIENT as well as $SSH_CLIENT to figure out the remote IP address. Wayne Davison 2004-06-03 17:20:21 +00:00
  • c7be6dec11 - Added older news from NEWS file. - Added missing releases from the Partial Protocol History section. Wayne Davison 2004-06-01 21:27:52 +00:00
  • bd1574b208 Moved older news to OLDNEWS. Wayne Davison 2004-06-01 21:27:12 +00:00
  • f376e67420 Got rid of an unneeded character pointer in send_file_entry(). Wayne Davison 2004-05-29 21:21:17 +00:00
  • ef0bc0abff Mention the --bwlimit change. Wayne Davison 2004-05-28 19:42:06 +00:00
  • 71e586304b Improvements to make --bwlimit work better. Wayne Davison 2004-05-27 22:09:31 +00:00
  • 3c74c3a358 Set a new variable, bwlimit_writemax, based on the value of the bwlimit option. Wayne Davison 2004-05-27 21:51:53 +00:00
  • edad5898f2 Got rid of a superfluous call to gettimeofday(). Wayne Davison 2004-05-24 22:59:16 +00:00
  • fa0c1939ed The various include/exclude options are not used on the server side, so if someone is trying something funny, just quit. Wayne Davison 2004-05-24 18:38:05 +00:00
  • 9a5ade185c Made full_fname()'s char-pointer arg const. Wayne Davison 2004-05-24 08:10:22 +00:00
  • f1dd0f27cb - Properly quote the $excl references. - Moved the creation of our .cvsignore exclude file. Wayne Davison 2004-05-24 00:16:07 +00:00
  • f9e5a0cde2 Improved the depth calculation in sanitize_path() so that it properly handles a trailing slash, a leading slash, and an empty string. Wayne Davison 2004-05-23 23:46:56 +00:00
  • ead751c62b Moved a couple lines. Wayne Davison 2004-05-22 19:29:53 +00:00
  • 0058c58edd A few minor improvements to the existing items. Wayne Davison 2004-05-22 19:24:24 +00:00
  • 221ddb9456 Fixed a typo in the sending of the --checksum-seed option to the server. Wayne Davison 2004-05-22 06:09:22 +00:00
  • 65e2487096 Fixed the comment for get_exclude_tok(). Wayne Davison 2004-05-22 05:32:20 +00:00
  • 0501f36390 Tweaked the alloc/realloc code in flist_expand(). Wayne Davison 2004-05-21 23:22:14 +00:00
  • 96981b9cff Tell rsync to preserve permissions. Wayne Davison 2004-05-21 10:06:09 +00:00
  • f51e87f5ad Another new option. Wayne Davison 2004-05-21 10:00:21 +00:00
  • cb213f1c1b Got rid of a compiler warning (which was only output by certain compilers). Wayne Davison 2004-05-21 09:59:49 +00:00
  • c8d895de26 Added the --checksum-seed option. Wayne Davison 2004-05-21 09:44:32 +00:00
  • e51094b721 - Improved option_error() to make sure that the user sees the error in daemon mode. - Got rid of some repetitious outputting of the same error-message. Wayne Davison 2004-05-21 09:41:38 +00:00
  • b03bded70b Document a couple more changes. Wayne Davison 2004-05-21 09:29:17 +00:00
  • ee1df1ccae If --backup was specified without a --backup-dir, don't preserve the directory timestamps. Wayne Davison 2004-05-21 08:43:03 +00:00
  • bc6ebcd248 Moved a few externs. Wayne Davison 2004-05-21 08:40:25 +00:00
  • ba582f753a Changed sum_init() to take a seed value as an arg instead of always using checksum_init. This fixes an authentication problem in server mode (as pointed out by Craig Barratt). Wayne Davison 2004-05-21 08:27:04 +00:00
  • cbd85b472e - Mention the change to the daemon-mode's exclude handling. - Mention the new "write only" daemon-config option. - Fixed another entry to refer to the right files. Wayne Davison 2004-05-19 22:20:56 +00:00
  • 7a92ded39a Added the "write only" option to the daemon config file. Wayne Davison 2004-05-19 22:19:19 +00:00
  • 831f05df51 A few minor text improvements. Wayne Davison 2004-05-18 09:54:52 +00:00
  • 0d94a6a66c Added a little more quoting. Wayne Davison 2004-05-18 09:47:42 +00:00
  • 3e35c34b6b Output a message when we skip a server-excluded file. Wayne Davison 2004-05-18 08:50:17 +00:00
  • 03a9ca0a97 Document the latest changes. Wayne Davison 2004-05-18 01:13:14 +00:00
  • 6f481bb0e0 - Use fromdir, todir, and tmpdir instead of FROM, TO, and TMP. - Added chkdir. - Quote the dir expansions to avoid problems with spaces. - Added "exclude = foobar.baz" the the rsync.conf file we create. Wayne Davison 2004-05-18 00:41:55 +00:00
  • f98cc5685d Test that a config-file-specified exclude works right. Wayne Davison 2004-05-18 00:41:51 +00:00
  • 9135621ff9 Quote the dir expansions to avoid problems with spaces. Wayne Davison 2004-05-18 00:41:49 +00:00
  • 8624daa7f8 - Use fromdir and todir instead of FROM and TO. - Quote the dir expansions to avoid problems with spaces. Wayne Davison 2004-05-18 00:41:46 +00:00
  • 3051c46dc3 - Use $suitedir to find rsync.fns. - Use tmpdir instead of TMP. Wayne Davison 2004-05-18 00:41:43 +00:00
  • e920830ec5 Use $suitedir to find rsync.fns. Wayne Davison 2004-05-18 00:41:40 +00:00
  • 7892e5ac77 - Use $suitedir to find rsync.fns. - The values of fromdir, todir, and chkdir are already set. Wayne Davison 2004-05-18 00:41:38 +00:00
  • b0e9bafc78 - Use $suitedir to find rsync.fns. - The values of fromdir and todir are already set. Wayne Davison 2004-05-18 00:41:35 +00:00
  • 44aa070770 Removing obsoleted test.sh file (we used the runtests.sh framework for some time now). Wayne Davison 2004-05-18 00:32:36 +00:00
  • 97f9dcae6a If the server has excluded a file, we now exclude it from being uploaded as well as downloaded. Wayne Davison 2004-05-18 00:14:10 +00:00
  • 8cbf495a57 Renamed free_exclude_list() to clear_exclude_list(). Wayne Davison 2004-05-16 23:54:12 +00:00
  • c1b29492c5 Moved the setting of ret->match_flags up a little in make_exclude(). Wayne Davison 2004-05-16 14:08:34 +00:00
  • 669a31924e - Save some memory in each exclude_struct item by dumping the "include" and "directory" ints and using bits in the match_flags value instead. - Added defines for the new match-flag values, including a new one that lets get_exclude_tok() properly return an indication that it parsed the list-clearing token. Wayne Davison 2004-05-16 07:28:24 +00:00
  • 5e972dcf34 - Switched the "include" and "directory" ints into bits in match_flags. - Made some length vars unsigned. Wayne Davison 2004-05-16 07:28:21 +00:00
  • 8fcdc444df - Improved rsyserr() to prefix RSYNC_NAME (as the TODO requested), to construct the string in a better manner, and to have a buffer big enough to hold a full MAXPATHLEN filename plus some error text. - Fixed some comments referring to vsprintf() returning -1 -- our configuration process now ensures that we replace such a function with our own lib version. Wayne Davison 2004-05-15 19:31:16 +00:00
  • 619d21ffc9 - Complain about an exclude that was too long and then dump it (used to be silently truncated). - Include extra space in our exclude-reading buffers so that we can fit a 2-char prefix and a trailing slash and still handle a MAXPATHLEN name. Wayne Davison 2004-05-15 19:31:13 +00:00
  • d62bcc17f3 Changed rprintf() calls that included strerror() to use rsyserr(). Wayne Davison 2004-05-15 19:31:10 +00:00
  • 982e05bbd5 Changed rprintf() calls that included strerror() to use rsyserr(). Wayne Davison 2004-05-15 19:31:10 +00:00
  • a3c8b36863 Added rsyserr(). Wayne Davison 2004-05-15 19:31:05 +00:00
  • 630e3c408b Whitespace tweaks. Wayne Davison 2004-05-15 19:09:42 +00:00
  • 1082b52bd4 Changing if (!write_batch) in front of send_exclude_list() to if (!read_batch) -- fixes hang. Wayne Davison 2004-05-15 18:51:21 +00:00
  • 914f3066bb Added a "gen" rule to remake various generated files: configure, config.h.in, proto.h, rsync.1, and rsyncd.conf.5 . Wayne Davison 2004-05-15 00:48:11 +00:00
  • de91e75724 In the debug output, distinguish between a user-requested clearing of the exclude list and the popping of the local exclude list that occurs when we finish each subdir. Wayne Davison 2004-05-14 21:23:41 +00:00
  • 384431886a Changed PERMS_SKIP_TIME to PERMS_SKIP_MTIME. Wayne Davison 2004-05-13 18:51:22 +00:00
  • 82b302d928 Got rid of some useless externs. Wayne Davison 2004-05-13 18:41:17 +00:00
  • 4ecc9e6b64 The finish_transfer() call takes an arg that specifies if we should set the modtime or not on the finished file. It calls set_perms(), which now takes a flag arg that allows us to specify if we want to skip the modtime modification. Wayne Davison 2004-05-13 07:08:25 +00:00
  • 55e50d890b If the file did not transfer correctly, only save it if --partial was specified. We also skip the setting of the modtime too on a partial copy (that way the partial file won't be confused with an up-to-date copy of the original). Wayne Davison 2004-05-13 07:08:22 +00:00
  • 6e86c951d7 Call finish_transfer() with its new arg. Also put the externs at the top and got rid of some trailing whitespace. Wayne Davison 2004-05-13 07:08:18 +00:00
  • c41b52c487 Use the new PERMS_REPORT flag when calling set_perms(). Wayne Davison 2004-05-13 06:55:01 +00:00
  • 5c6fc4a6a3 Added PERMS_REPORT and PERMS_SKIP_TIME. Wayne Davison 2004-05-13 06:53:23 +00:00
  • edecdad54d If we got a read-error on a file, make sure that the whole-file checksum we send to the receiver is wrong (so they won't save the bogus file). Wayne Davison 2004-05-13 06:46:20 +00:00
  • 5291364f1d Don't force the modtime on our backup dirs -- the dirs in the backup hierarchy should have their own timestamps. Wayne Davison 2004-05-13 06:34:03 +00:00
  • 41cc97ae64 In send_files(), changed the name of the map_struct variable from "buf" to "mbuf" (so that it wouldn't be so similar to the "buff" variable nor use a name that is more typically a char* buffer). Wayne Davison 2004-05-11 19:53:16 +00:00
  • bf2b7ddfc5 Use memset() to initialize a new map_struct. Wayne Davison 2004-05-11 19:46:56 +00:00
  • eb0cbdaa90 Got rid of an unused extern. Wayne Davison 2004-05-11 17:25:16 +00:00