Commit Graph

  • 4f4b2f0927 The device-handling code is no longer omitted based on HAVE_MKNOD (this is because do_mknod() might be using a different function to handle fifos and sockets without the help of mknod(). Wayne Davison 2004-10-01 06:58:23 +00:00
  • da6eb9d123 Improved do_mknod() so that it handles creating a fifo file and a socket file when mknod() itself does not. Wayne Davison 2004-10-01 06:56:14 +00:00
  • 1b15e07e99 Make sure that all programs that use syscall.o also include lib/compat.o so that we can use strlcpy(). Wayne Davison 2004-10-01 06:53:26 +00:00
  • e49d720081 - Check if struct sockaddr_un has a sun_len member. - Check if mknod() can make a fifo file. - Check if mknod() can make a socket file. Wayne Davison 2004-10-01 06:51:34 +00:00
  • 3267d6a9ce Some systems need do_mkstemp() to use setmode() to set O_BINARY. Wayne Davison 2004-10-01 02:34:22 +00:00
  • 3ba2c330e1 Check for the setmode() function. Wayne Davison 2004-10-01 02:31:10 +00:00
  • 618c8a73db Preparing for release of 2.6.3 v2.6.3 Wayne Davison 2004-09-30 16:36:42 +00:00
  • aa0ea373cd Mention the enhancement that was made (quite a while ago) to the daemon's wildcard-expansion limit (formerly 1000 items, now memory limited). Wayne Davison 2004-09-30 10:46:43 +00:00
  • 6c3fda83ba Refined the text of a few of the news items. Wayne Davison 2004-09-30 09:58:39 +00:00
  • a3571c6cce - Mention the fix for lost output with 2>&1. - Prepare the file for the 2.6.3 final release. Wayne Davison 2004-09-30 09:37:38 +00:00
  • 6fcedb7dbe Mention the (anticipated) 2.6.3 release date. Wayne Davison 2004-09-30 09:36:29 +00:00
  • 18882701d2 Set our stderr output to blocking I/O to avoid any loss of output. Wayne Davison 2004-09-29 17:58:07 +00:00
  • 30c041f9ad Changed the errors concerning the secrets file to output with FLOG instead of FERROR. Wayne Davison 2004-09-24 17:04:05 +00:00
  • be7cf82299 - Make sure that match_address() always restores the "tok" string, even on error. - Turned the various FERROR messages into (the more proper) FLOG. Wayne Davison 2004-09-24 16:50:07 +00:00
  • fde045cd77 Turned the various FERROR messages into (the more proper) FLOG. Wayne Davison 2004-09-24 16:39:41 +00:00
  • 183150b741 Added some more --inplace info (i.e. it implies --partial and conflicts with 3 basis-file-affecting options). Wayne Davison 2004-09-23 21:15:04 +00:00
  • a2570930e8 Made the refused-option message clearer, like Paul suggested. Wayne Davison 2004-09-23 17:39:05 +00:00
  • fdb6716c0f Create a FIFO using mkfifo. Wayne Davison 2004-09-23 16:34:43 +00:00
  • a20a88d235 Assume that gettimeofday() takes two arguments when cross-compiling. Wayne Davison 2004-09-23 16:00:44 +00:00
  • 48d3ff94c9 Only output major/minor info for a character/block device, not for a FIFO or a socket. Wayne Davison 2004-09-23 05:33:48 +00:00
  • a33857da09 Mention that --partial-dir now sets an exclude that helps to avoid losing the partial data when deleting, and avoid copying any partial data from the sender. Wayne Davison 2004-09-22 04:14:43 +00:00
  • 13791b1eeb If the partial-dir value is relative, add a directory-exclude for it to the end of the user's exclude list. Wayne Davison 2004-09-22 04:12:13 +00:00
  • 9a5e37fca8 In get_exclude_tok(), if XFLG_DIRECTORY was passed in the xflags, set MATCHFLG_DIRECTORY in the mflags we return. Wayne Davison 2004-09-22 04:11:15 +00:00
  • 3e976df0fb Added XFLG_DIRECTORY define. Wayne Davison 2004-09-22 04:10:10 +00:00
  • 42afed9c1a Preparing for release of 2.6.3pre2 v2.6.3pre2 Wayne Davison 2004-09-21 16:10:35 +00:00
  • 37c36e2692 Mention the daemon-socket-connection change. Wayne Davison 2004-09-21 15:47:20 +00:00
  • 7fbc7031f4 Mentioned a couple more changes. Wayne Davison 2004-09-21 15:31:33 +00:00
  • 9f004a9ea9 The delete_one() function no longer needs to handle the case where it thinks it is removing a directory and it is really removing a symlink. Wayne Davison 2004-09-21 09:24:06 +00:00
  • 23f4587f2b - Turned readlink_stat() into a static function. - Made readlink_stat() no longer honor keep_dirlinks. - The make_file() function now checks keep_dirlinks late in the function so that it only transforms a symlink to a local dir into a directory if the receiver also has a directory by that name. This makes the use of --delete with --keep-dirlinks work much better. Wayne Davison 2004-09-21 09:24:02 +00:00
  • 4d8f5b0ae7 - Fixed a problem with the $bakdir value. - Made the files have better contents to copy. - Also test --backup without --backup-dir. Wayne Davison 2004-09-20 19:50:04 +00:00
  • 89389a29ef Output a backup message when verbose > 1 and we did a copy prior to an --inplace update. Wayne Davison 2004-09-20 19:47:59 +00:00
  • 29fe3961ab Output the same backup-message prefix when verbose > 1 regardless of the setting of --backup-dir. Wayne Davison 2004-09-20 19:46:45 +00:00
  • 4e8a085ac9 Use $diffopt instead of -u. Wayne Davison 2004-09-20 05:17:57 +00:00
  • fb22c2774d Got rid of a superfluous static buffer. Wayne Davison 2004-09-20 05:01:38 +00:00
  • 7d059d4c37 A simple test of the backup functionality. Wayne Davison 2004-09-20 04:59:01 +00:00
  • 9715c5899a Improved a comment. Wayne Davison 2004-09-20 04:17:42 +00:00
  • cc07f21211 Mention the new RSYNC_PARTIAL_DIR environment variable. Wayne Davison 2004-09-18 17:37:54 +00:00
  • b4d1e854ef Document the new RSYNC_PARTIAL_DIR environment variable. Wayne Davison 2004-09-18 17:35:20 +00:00
  • 075aa18fd4 Look for the RSYNC_PARTIAL_DIR environment variable when --partial was specified (and --partial-dir was not). Wayne Davison 2004-09-18 17:34:56 +00:00
  • e0204f5621 Mention that older rsync versions had a problem with --link-dest and how to work around it. Wayne Davison 2004-09-18 01:49:19 +00:00
  • a9ac4411e5 Mention the latest changes. Wayne Davison 2004-09-17 16:53:51 +00:00
  • 50b31539c2 - Added the ability to parse a literal IPv6 address in an "rsync:" URL (e.g. rsync://[2001:638:500:101::21]:873/module/dir). - Improved a couple --files-from error messages. Wayne Davison 2004-09-17 16:50:53 +00:00
  • 56194bcd95 When outputting the flist info (in a debug-level of verbosity) we now mention the UID of the file when we are the sender (as well as when we are root). Wayne Davison 2004-09-17 16:39:34 +00:00
  • eb8ffa9040 Actually, since the close calls shouldn't fail (now that listener is properly set to -1 on close), we don't really need to play the save-errno game after all. Wayne Davison 2004-09-16 17:22:31 +00:00
  • a7a1cc2c75 Make sure that /etc and /bin actually are readable before we try to list them. Wayne Davison 2004-09-16 17:16:36 +00:00
  • ab217f7ffa - Set "listener" to -1 after we close it so that the error-handler doesn't try to re-close it. - Set blocking I/O before the second (final) connect() call. Wayne Davison 2004-09-16 17:09:46 +00:00
  • a20c9893e4 Don't try to optimize-away the sending of the --delete option if --delete-after was specified (since we don't know what the protocol version will be yet). Wayne Davison 2004-09-08 07:33:06 +00:00
  • 3bb400ca14 If --backup was used with --inplace, we don't limit the basis-file matches (as we normally would) because the receiver is using the backup-file as the basis-file. Wayne Davison 2004-09-07 21:45:19 +00:00
  • cd6aa5b5c0 When --backup is used with --inplace, we make a copy of the destination file into its backup spot while generating the checksums. Wayne Davison 2004-09-07 21:44:02 +00:00
  • dc55d7bdab If we're making backups with --inplace, use the backup file as the basis file while still updating the real destination file inplace. Wayne Davison 2004-09-07 21:34:26 +00:00
  • 8b115ac8dc Turn off make_backups during the redo phase, just like the receiver. Wayne Davison 2004-09-07 21:32:36 +00:00
  • c94e4afbfa Moved the code that determines the backup filename into a new function named get_backup_name(). Wayne Davison 2004-09-07 21:29:26 +00:00
  • 6566d205e2 Made full_write() non-static. Wayne Davison 2004-09-07 21:26:26 +00:00
  • e484f0cc04 W mustn't backup an inplace file in finish_transfer(). Wayne Davison 2004-09-07 20:37:36 +00:00
  • bd397b8cba Reject the use of --compare-dest or --link-dest with --inplace (it will take extra code to suppor this). Wayne Davison 2004-09-07 20:36:36 +00:00
  • f8c8ef9eac When we say we're skipping a non-regular file, actually skip it. Wayne Davison 2004-09-07 19:49:09 +00:00
  • 72c19bb3de A minor optimization to the partial-dir code. Wayne Davison 2004-09-07 17:03:51 +00:00
  • 89f7eff382 Fix the case where a partial-dir file exists but the destination file does not. Wayne Davison 2004-09-07 16:50:07 +00:00
  • b90a6d9ff6 Mention that --whole-file interferes with the reuse of a --partial-dir file. Wayne Davison 2004-09-07 16:49:10 +00:00
  • 584ba4ebae Fixed a typo Paul pointed out. Wayne Davison 2004-09-05 21:30:00 +00:00
  • ba3db4795e Allow the use of the --exclude*/--include* options to a server process again, but make sure that the user didn't specify a server-excluded file for one of the --*-from options. Wayne Davison 2004-08-26 17:39:48 +00:00
  • 59d73bf3d2 Some fixes & clarifications for the BATCH MODE section. Wayne Davison 2004-08-18 07:50:36 +00:00
  • 919ca3a3cc Few few more minor improvements to the existing change items. Wayne Davison 2004-08-18 07:49:03 +00:00
  • 5886edfac2 Corrected/enhanced a comment. Wayne Davison 2004-08-18 07:00:17 +00:00
  • d414962af4 One more NEWS tweak. Wayne Davison 2004-08-12 21:02:13 +00:00
  • 8fb7db245a Mention the security fix. Wayne Davison 2004-08-12 20:58:33 +00:00
  • 6f0fc27e33 Got rid of one item. Wayne Davison 2004-08-12 20:48:05 +00:00
  • 9c54ad58f8 Preparing for release of 2.6.3pre1 v2.6.3pre1 Wayne Davison 2004-08-12 20:06:57 +00:00
  • f55c2dfc03 One last minor tweak to clean_fname(). Wayne Davison 2004-08-12 20:04:47 +00:00
  • 675ef1aa3a Tweaked the USAGE section a tad and added an ADVANCED USAGE section that discusses how to request multiple names from a remote rsync. Wayne Davison 2004-08-12 19:31:23 +00:00
  • ef57235623 Improved the build rule for getfsdev and added getfsdev.o to the files we cleanup. Wayne Davison 2004-08-12 18:59:03 +00:00
  • d66d07e883 If system won't let us set chmod bits, fall back to testing without them set. Wayne Davison 2004-08-12 18:51:35 +00:00
  • b92693daba - Made clean_flist()'s collapsing of ".." dirs optional by adding a "BOOL collapse_dot_dot" arg. - Improved some comments. Wayne Davison 2004-08-12 18:20:14 +00:00
  • 58b1999e08 Call clean_flist() with its new "collapse_dot_dot" arg. Wayne Davison 2004-08-12 18:20:07 +00:00
  • 8e5f029e02 One (hopefully) last change to the sanitize_path() code. Wayne Davison 2004-08-12 10:13:45 +00:00
  • 2d41264e9e Simplified sanitize_path() logic a little. Wayne Davison 2004-08-12 09:32:16 +00:00
  • 82c6be7edf More improvements and a couple missing items. Wayne Davison 2004-08-12 01:27:26 +00:00
  • 0219d4dfba Improved a comment. Wayne Davison 2004-08-12 00:58:01 +00:00
  • 391516da51 Got rid of a comment that became inapplicable. Wayne Davison 2004-08-12 00:52:58 +00:00
  • 1d6b8f9ad2 - Call sanitize_path() with updated args. - Added count_dir_elements() function. - Changed the args for sanitize_path() so that the caller can request the value for the rootdir and so that the caller tells us the current subdir depth instead of sending us a string that we have to figure it out from. - Make sure that sanitize_path() doesn't mis-parse multiple adjacent slashes. Wayne Davison 2004-08-11 23:41:06 +00:00
  • 10796f4b6e Call sanitize_path() with updated args. Wayne Davison 2004-08-11 23:41:03 +00:00
  • 33ffd7c37d - Set the var lastdir_depth when setting lastdir. - Call sanitize_path() with updated args. Wayne Davison 2004-08-11 23:41:00 +00:00
  • 21d1e929a0 Ignore new getfsdev executable. Wayne Davison 2004-08-11 17:33:52 +00:00
  • d0bc3520de Make the text of the --times (-t) option more correct on what happens if it is omitted. Wayne Davison 2004-08-11 17:24:37 +00:00
  • 9f18657889 A minor improvement in check_one_exclude(). Wayne Davison 2004-08-10 18:15:33 +00:00
  • c16d69b292 Mention the early-chmod change. Wayne Davison 2004-08-09 20:58:26 +00:00
  • ebeacb36fb Set each file's permissions and modtime before it gets renamed. Wayne Davison 2004-08-09 20:57:10 +00:00
  • 6558854dbe Do some simple tests with various read-only and set[ug]id files. Wayne Davison 2004-08-09 20:52:35 +00:00
  • 7d9d5d9478 Added a rule for building getfsdev and for requiring it to run "test". Wayne Davison 2004-08-09 20:51:44 +00:00
  • 630f548ff4 Made robust_rename() return a 1 if it had to copy the file. Wayne Davison 2004-08-09 20:48:38 +00:00
  • 100b62bb69 Output a device string for each file given on the command-line. Wayne Davison 2004-08-09 20:46:54 +00:00
  • e012b94f21 Fixed a bug in clean_fname() that could sometimes leave a "dir/.." sequence uncollapsed. Wayne Davison 2004-08-07 20:56:41 +00:00
  • 3104620cf0 Made clean_fname() return the length of the string. Wayne Davison 2004-08-06 22:36:55 +00:00
  • ebdd24d6d0 An improved clean_fname() routine that is more efficient and will also collapse ".." dirs that aren't at the start of the path. Care was taken to ensure that the cleaning of a name that goes over the socket is done in the same way as the old code (because both sides call clean_fname() on those file-list names). This ensures compatibility with older rsync versions. Wayne Davison 2004-08-06 21:24:14 +00:00
  • 7cd72c79ec Set "eob" correctly in add_exclude_file(). Wayne Davison 2004-08-05 22:58:17 +00:00
  • 84a6379565 Merged alloc_sanitize_path() into sanitize_path(), adding an extra arg that indicates the destination dir for the resulting path (if the dest is NULL, a buffer will be allocated) and having it return a value. Wayne Davison 2004-08-05 21:57:11 +00:00
  • 0a5f12720e Use the new sanitize_path() calling syntax. Wayne Davison 2004-08-05 21:57:09 +00:00
  • 73f7af0e88 If dry_run is > 1 then the destination directory was missing, so we set stat_errno to ENOENT and statret to -1 without calling stat(). Wayne Davison 2004-08-05 18:18:36 +00:00
  • e5a96f0f54 In get_local_name(), if we would have created the destination dir but were prevented by dry_run being set, increment dry_run so that the generator knows that all the files are missing. Wayne Davison 2004-08-05 18:17:44 +00:00
  • d73e7f6edd In set_refuse_options(): make sure we scan the whole list of options and avoid complaining about a wild-card spec that actually matches one or more options. Wayne Davison 2004-08-04 21:20:34 +00:00