summaryrefslogtreecommitdiff
path: root/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* make repeated --fuzzy option look into alt-dest dirs.Wayne Davison2011-11-231-16/+19
|
* Let's cast getpid() to an int instead of a long for snprintf().Wayne Davison2011-10-081-12/+7
|
* Fix a potential hang on an empty file list.Wayne Davison2011-09-111-1/+5
| | | | Fixes bug 8423.
* Make daemon-exclude errors more error-like.Wayne Davison2011-06-181-1/+1
| | | | Fixes bug 7765.
* Turn empty remote args into dot dirs.Wayne Davison2011-05-071-0/+5
|
* Fix --force with --one-file-system w/o --delete.Wayne Davison2011-02-221-0/+2
|
* Protect a remote filename that starts with a dash.Wayne Davison2010-12-231-1/+5
|
* Get rid of some trailing whitespace.Wayne Davison2010-06-191-1/+1
|
* Make an empty-string dest-dir the same as "." again.Wayne Davison2010-05-021-0/+4
|
* May as well use do_mkdir() directly these days.Wayne Davison2010-04-301-1/+1
|
* Don't set the umask to 0 any more: it's ugly and pointless.Matt McCutchen2010-04-241-3/+4
|
* More --timeout improvements, especially for the receiving side:Wayne Davison2010-01-021-5/+0
| | | | | | | | | | - The receiver now sends keep-alive messages to the generator when it is actively doing work and hasn't sent anything recently. This ensures that the generator won't timeout if the receiver is working hard. - The perform_io() code has improved keep-alive participation. - Allow the sender to send some keep-alive messages, which ensures that if it is in a lull, it can probe the socket.
* Improve --timeout method to take into account all I/O that is going on.Wayne Davison2009-12-191-0/+5
| | | | | | | | | | The receiving side also switches timeout handling from the receiver to the generator, which obviates the need for the sender to send any keep-alive messages at all (for protocol 31 and beyond). Given this setup, all keep-alive messages are now sent as empty MSG_DATA messages, with MSG_NOOP messages only being understood and (when necessary) acted upon to forward a keep-alive event to an older receiver. This is both safer and more compatible with older versions.
* Added an am_receiver variable.Wayne Davison2009-12-191-1/+3
|
* Free a strdup() in do_cmd() that checker was complaining about.Wayne Davison2009-12-131-2/+5
|
* Fix checker compile warning.Wayne Davison2009-12-121-1/+1
|
* Fix a hang that can happen when the sender is sending an extra file-listWayne Davison2009-12-121-0/+2
| | | | and no one is reading (i.e. do advantageous reading in perform_io()).
* Don't send MSG_ERROR_EXIT messages at the end of the transfer.Wayne Davison2009-12-121-0/+4
| | | | Added some debug output for MSG_ERROR_EXIT messages.
* Try to silence some warnings from "checker".Wayne Davison2009-11-071-1/+1
|
* Change the daemon-timeout conveyance into a protocol-31 message.Wayne Davison2009-10-271-0/+3
|
* Fixed some backward-compatibility issues with --files-from.Wayne Davison2009-10-241-2/+8
|
* Moved a few group-related functions with some minor tweaks;Wayne Davison2009-10-201-2/+3
|
* A major overhaul of I/O routines, creating perform_io().Wayne Davison2009-10-171-33/+33
| | | | | | | | | | | | | | | | | | Files-from data is now sent as multiplexed I/O so that it can mingle with any messages (such as debug output). Requires protocol 31. Protocol 31 no longer disables output verbosity in a couple instances that used to cause protocol issues. Got rid of MSG_* messages that have implied raw data that follows after them. We instead send a negative index value as a part of the raw data stream, which is guaranteed to be output together with the following data. This only affects the (in-progress) protocol 31 and the (self- contained) communication stream from the receiver to the generator. Added --debug=IO and improved --debug=FLIST. Some --debug=IO output requires --msgs2stderr to be used to see it (i.e. sending a message about sending a message would send another message, ad infinitum).
* Avoid stopping multiplexed out over the message fd.Wayne Davison2009-10-121-0/+4
| | | | | Use simpler multiplexed-out stopping method. Make sure we can't false-match a socket fd.
* Change the msg pipe to use a real multiplexed IO modeWayne Davison2009-10-021-9/+9
| | | | for the data that goes from the receiver to the generator.
* Define and use "our_gid" variable.Wayne Davison2009-09-021-0/+2
|
* Use typedefs for the filter structures.Wayne Davison2009-05-231-2/+2
|
* The suffix must be non-empty if the backup-dir is the same as the destWayne Davison2009-04-111-4/+2
| | | | dir.
* More backup improvements:Wayne Davison2009-04-111-0/+14
| | | | | | | | | | | | | | | - Changed get_backup_name() to verify the backup path, and make any missing directories. This avoids accidental use of a symlink as a dir in a backup path, and gets rid of any other non-dirs that are in the way. It also avoids the need for various operations to retry after calling make_bak_dir(), simplifying several pices of code. - Changed create_directory_path() to make_path(), giving it flags that lets the caller decide if it should skip a leading slash or drop the trailing filename. - Mention when we create the backup directory, so the user is not caught unaware when rsync uses a directory they didn't expect. - Got rid of some dir-moving backup code that is not used. - Added a little more backup-debug output.
* Ensure that the sender turns off any msg_fd_in use earlier.Wayne Davison2009-02-041-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().
* Fixed the delete statistics with --delete-delay and --delete-after.Wayne Davison2009-01-171-20/+21
|
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* Fixed a glitch when using -s with a remote-shell daemon.Wayne Davison2008-10-111-1/+1
|
* Enhanced the --stats output:Wayne Davison2008-09-261-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.
* Properly ignore source args on a --read-batch command.Wayne Davison2008-09-261-2/+2
|
* Split up the ifuncs.h file into 3 .h files.Wayne Davison2008-09-011-1/+1
|
* Output numbers in 3-digit groups by default (e.g. 1,234,567).Wayne Davison2008-09-011-20/+18
| | | | | Also improved the human-readable output functions, including adding the ability to output negative numbers.
* Improved the fix that ensures that the generator gets notified about anWayne Davison2008-08-311-5/+0
| | | | | I/O error for the incremental directory that generated the error. The PROTOCOL_VERSION was bumped to 31 to implement this.
* Added logic to the receiving side to ensure that the --delete-duringWayne Davison2008-08-021-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).
* Improved var-checker and tweaked all the issues it found.Wayne Davison2008-07-211-1/+1
|
* Include the array-size in array externs so that IBM's code-checkerWayne Davison2008-07-201-1/+1
| | | | can do more checking for us.
* Added a debug-helping option, --msgs2stderr, than should help allWayne Davison2008-07-201-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).
* Added a '%C' (MD5 checksum) flag for the output/logfile formatting.Wayne Davison2008-07-191-0/+10
|
* Changed human_num() to big_num() with an extra arg so that it canWayne Davison2008-07-171-9/+11
| | | | be used in place of all %.0f output idioms.
* Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison2008-07-131-19/+27
| | | | fine-grained output control (in addition to the coarse -v).
* Fixed the destination path check so that it cannot exclude aWayne Davison2008-05-311-3/+4
| | | | dot dir.
* Fixed a problem with how the daemon filters deal withWayne Davison2008-04-161-6/+14
| | | | a destination directory with a trailing slash.
* Improved the chdir() code:Wayne Davison2008-03-301-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().