summaryrefslogtreecommitdiff
path: root/main.c
AgeCommit message (Collapse)AuthorFilesLines
2009-02-04Ensure that the sender turns off any msg_fd_in use earlier.Wayne Davison1-1/+0
This avoids a problem where an extra message from the sender could give the generator time to start sending data that will not be understood by the sender's use of read_msg_fd().
2009-01-17Fixed the delete statistics with --delete-delay and --delete-after.Wayne Davison1-20/+21
2009-01-03Update the copyright year.Wayne Davison1-1/+1
2008-10-11Fixed a glitch when using -s with a remote-shell daemon.Wayne Davison1-1/+1
2008-09-26Enhanced the --stats output:Wayne Davison1-3/+58
- Mention how many files were created (protocol >= 29). - Mention how many files were deleted (new in protocol 31). - Follow the file-count, created-count, and deleted-count with a break-out list of each count by type.
2008-09-26Properly ignore source args on a --read-batch command.Wayne Davison1-2/+2
2008-09-01Split up the ifuncs.h file into 3 .h files.Wayne Davison1-1/+1
2008-09-01Output numbers in 3-digit groups by default (e.g. 1,234,567).Wayne Davison1-20/+18
Also improved the human-readable output functions, including adding the ability to output negative numbers.
2008-08-31Improved the fix that ensures that the generator gets notified about anWayne Davison1-5/+0
I/O error for the incremental directory that generated the error. The PROTOCOL_VERSION was bumped to 31 to implement this.
2008-08-02Added logic to the receiving side to ensure that the --delete-duringWayne Davison1-0/+5
code will not delete in a directory prior to receiving an I/O error for that directory (or not receiving it, as the case may be).
2008-07-21Improved var-checker and tweaked all the issues it found.Wayne Davison1-1/+1
2008-07-20Include the array-size in array externs so that IBM's code-checkerWayne Davison1-1/+1
can do more checking for us.
2008-07-20Added a debug-helping option, --msgs2stderr, than should help allWayne Davison1-1/+2
messages to be seen in a situation where rsync is dying (as long as stderr is a viable output method for the remote rsync).
2008-07-19Added a '%C' (MD5 checksum) flag for the output/logfile formatting.Wayne Davison1-0/+10
2008-07-17Changed human_num() to big_num() with an extra arg so that it canWayne Davison1-9/+11
be used in place of all %.0f output idioms.
2008-07-13Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison1-19/+27
fine-grained output control (in addition to the coarse -v).
2008-05-31Fixed the destination path check so that it cannot exclude aWayne Davison1-3/+4
dot dir.
2008-04-16Fixed a problem with how the daemon filters deal withWayne Davison1-6/+14
a destination directory with a trailing slash.
2008-03-30Improved the chdir() code:Wayne Davison1-13/+12
- Renamed push_dir() to change_dir() and revised it a little so that it can chdir() to a relative path without an intervening chdir() back to the staring path. - Renamed push_pathname() to change_pathname() and revised it to take different args and to only call path_is_daemon_excluded() on a new path (not a revisit of a file's already-checked path). - Fixed change_pathname() to set the right pathname value when a chdir() call fails. - Set orig_dir once outside of the change_pathname() function. - Got rid of pop_dir().
2008-03-24Don't send daemon-config filter-action messages back to the user.Wayne Davison1-4/+4
2008-03-24Improved --dirs/--no-dirs/--list-only option handling:Wayne Davison1-11/+0
- Moved setting of list_only and xfer_dirs from main.c to options.c. - Fixed the ability of the user to force --no-dirs. - Added the --old-dirs/--old-d option to make it easier to interact in list-only mode with an older rsync. - Suggest the use of --old-d instead of "-r --exclude='/*/*'".
2008-03-20Some improvements to the file-name cleaning code:Wayne Davison1-2/+2
- Removed the CFN_KEEP_LEADING_DOT_DIR flag for clean_fname(). - Explicitly add an implied dot-dir to the transfer rather than keeping a leading a "./" prefix as a part of a relative pathname. - Added the CFN_KEEP_DOT_DIRS flag for clean_fname(). - Added the SP_KEEP_DOT_DIRS flag for sanitize_path(). - Call clean_fname() a couple more times.
2008-03-20Changed the name of the server_filter_list to beWayne Davison1-6/+6
daemon_filter_list, for improved clarity.
2008-03-18Reject a daemon-excluded destination.Wayne Davison1-0/+8
2008-03-17Attempting to silence some more "checker" warnings.Wayne Davison1-1/+1
2008-03-15Fixed the use of --protect-args (-s) with a daemon.Wayne Davison1-46/+9
2008-03-01Include 2008 in the copyright years.Wayne Davison1-1/+1
2008-02-09Make do_recv() reset copy_unsafe_links too (just like it does forWayne Davison1-1/+2
copy_links and copy_dirlinks).
2008-01-26Improved a comment.Wayne Davison1-1/+1
2008-01-26When removing a file/dir that is owned by us but does not haveWayne Davison1-1/+3
owner-write permission, set it before the removal.
2008-01-19Output (BATCH ONLY) rather than (DRY RUN) for --only-write-batch.Wayne Davison1-1/+1
2007-12-16Fixed the check_filter() calls that might be checking an absolute pathWayne Davison1-10/+9
in "use chroot = no" mode against a daemon's exclude restriction.
2007-12-15Check on the alternate destination dirs and report any problems.Wayne Davison1-37/+41
2007-11-28Adding --contimeout=SECONDS option.Wayne Davison1-0/+7
2007-11-22New logging categories added to allow differentiation betweenWayne Davison1-2/+2
transfer errors, normal errors, and warnings. New messages are translated into old FERROR/FINFO categories for older protocols.
2007-11-20Got rid of the unused symlink parameter to sanitize_path().Wayne Davison1-2/+2
2007-11-09When performing a --dry-run, output a "(DRY RUN)" reminder on theWayne Davison1-2/+3
last line of the verbose summary text.
2007-10-27When listing a bare module name w/o -r, make sure we list theWayne Davison1-1/+1
contents of the module's root directory.
2007-10-16Call set_allow_inc_recurse() for situations that don't call server_options().Wayne Davison1-0/+2
2007-10-10Conditionalize the call to setup_iconv().Wayne Davison1-2/+10
2007-10-07Reposition the call to setup_iconv() so that it gets called only onceWayne Davison1-1/+6
is a local_server copy, and so that arg-parsing code doesn't interfere with the sending of a remote charset value.
2007-10-07Set xfer_dirs when we set list_only.Wayne Davison1-3/+9
2007-09-30Allow additional remote args to contain an identical hostname insteadWayne Davison1-9/+24
of requiring it to be empty. This allows for the easy use of braces: rsync -av host:file{1,2} /dest/
2007-09-23Fixed a crash bug in get_local_name() when the file list is empty.Wayne Davison1-1/+2
2007-09-22Moved inline functions from rsync.h into ifuncs.h.Wayne Davison1-0/+1
2007-09-18- Make use of new iconvbufs() function.Wayne Davison1-21/+37
- 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.
2007-09-15We set FLAG_DIR_CREATED on a dot dir that got created byWayne Davison1-2/+2
get_local_name() rather than using the (now removed) new_root_dir global.
2007-09-15- Parse hard-link info as soon as we get it in inc_recurse mode.Wayne Davison1-2/+10
- Improve the chances of the generator finding a match for a hard-link file in inc_recurse mode.
2007-09-09- If the user specifies a source arg with a hostspec in it in a local-Wayne Davison1-58/+117
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.
2007-09-03Changes to allow hard-linking to work in inc_recurse mode.Wayne Davison1-2/+3