summaryrefslogtreecommitdiff
path: root/rsync.h
Commit message (Collapse)AuthorAgeFilesLines
* Receiver now rejects invalid filenames in filelist.Wayne Davison2014-04-131-0/+1
| | | | | | | If the receiver gets a filename with a leading slash (w/o --relative) and/or a filename with an embedded ".." dir in the path, it dies with an error (rather than continuing). Those invalid paths should never happen in reality, so just reject someone trying to pull a fast one.
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Add IS_MISSING_FILE(statbuf) macro.Wayne Davison2014-01-191-0/+2
|
* Preparing for release of 3.1.0v3.1.0Wayne Davison2013-09-281-1/+1
|
* Add an implementation of getpass for systems that lack one.Wayne Davison2013-05-191-0/+4
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Fix --compress data-duplication bug.Wayne Davison2011-11-211-1/+1
|
* Fix reading side of fake-symlink bug 7109.Wayne Davison2011-06-181-1/+1
|
* Check if sender file changed before allowing a remove.Wayne Davison2011-06-181-0/+8
| | | | Fixes bug 7691.
* Check for linux/falloc.h header file.Wayne Davison2011-05-161-0/+2
|
* Applying the preallocate patch.Wayne Davison2011-04-041-0/+15
|
* Avoid re-setting (and sending) xattrs on a hard-linked file w/the same xattrs.Wayne Davison2011-03-261-1/+1
| | | | Improved the xattrs testing to include hard-linking.
* Updated a comment to match a 3.0.x change.Wayne Davison2011-01-291-1/+1
|
* Avoid changing file_extra_cnt during deletion.Matt McCutchen2011-01-291-0/+1
| | | | | | | | | | | The I/O code can receive incremental file-list chunks during deletion, and their OPT_EXTRA fields would get corrupted when file_extra_cnt is incremented. Instead of temporarily enabling uid_ndx to find out whether the user owns a file, have make_file() set a flag for that purpose. Applied with a few minor tweaks by Wayne. Fixes bug 7936.
* Some minor variable and flag cleanup.Wayne Davison2011-01-291-1/+5
|
* Fix issues with unchanged_attrs() for symlinks.Wayne Davison2010-12-181-0/+8
|
* If we create an off_t type, define SIZEOF_OFF_T.Wayne Davison2010-09-061-0/+2
|
* Add --omit-link-times and use CAN_SET_SYMLINK_TIMES less.Wayne Davison2010-08-261-0/+4
|
* Fix accessors F_LENGTH() and F_MOD_NSEC().Wayne Davison2010-06-261-2/+2
|
* More --timeout improvements, especially for the receiving side:Wayne Davison2010-01-021-1/+5
| | | | | | | | | | - 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-1/+1
| | | | | | | | | | 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.
* Change the handling of circular buffers to not waste 4 bytesWayne Davison2009-11-231-0/+2
| | | | all the time (we only waste from 1-3 bytes some of the time).
* More improvements for abnormal exits.Wayne Davison2009-11-081-1/+1
|
* Added notifications about error-exit values:Wayne Davison2009-11-071-1/+2
| | | | | | | | | | - The receiver notifies the generator if it is exiting with an error, and then, if it is a server, waits around for the generator to die. This ensures that the client side has time to read the error. - The generator or sender will notifiy the other side of the transfer of an error-exit value if protocol 31 is in effect. This will get rid of some "connection unexpectedly closed" errors that are really expected events due to a fatal exit on the other side.
* Change the daemon-timeout conveyance into a protocol-31 message.Wayne Davison2009-10-271-1/+2
|
* Fixed some backward-compatibility issues with --files-from.Wayne Davison2009-10-241-0/+7
|
* Give iconvbufs() an ICB_INIT flag.Wayne Davison2009-10-231-0/+1
|
* A protocol 31 daemon will inform the client about its timeout settingWayne Davison2009-10-201-1/+1
| | | | so that the client will be able to cooperate with keep-alive.
* A major overhaul of I/O routines, creating perform_io().Wayne Davison2009-10-171-8/+7
| | | | | | | | | | | | | | | | | | 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).
* Add support for transferring & setting nsec time values.Wayne Davison2009-09-071-12/+17
|
* Always use lutimes() if it is available.Wayne Davison2009-09-071-0/+4
|
* Have --fake-super turn a symlink into a file whenWayne Davison2009-09-021-0/+3
| | | | NO_SYMLINK_XATTRS is defined.
* Have the sender use dead time to pad out the file list.Wayne Davison2009-08-221-1/+2
|
* Refactorings to the filter code, most notably:Matt McCutchen2009-05-231-4/+1
| | | | | | | | | | | | | | | | | | | | | | - Improve function name: parse_rule -> parse_filter_str (to make the similarity with parse_filter_file clearer, and better indicate that it can parse multiple rules when FILTRULE_WORD_SPLIT is specified). - In preparation for rule prefixes containing information beyond the rflags, change the code to pass around a full "template" filter_rule instead of just rflags. Callers of parse_filter_{str,file} that want to specify only rflags can use rule_template(rflags) . - Remove the MODIFIERS_* strings and instead hand-code the condition under which each modifier is valid. This should make it easier to see that the conditions are correct. - Tighten up default modifiers on merge rules: - Disallow "!" because it isn't useful. - If the merge rule specifies a side via "s" or "r", the rules in the file cannot also specify a side via "s", "r", "hide", etc. [Patch was changed by Wayne a bit prior to application.]
* Use typedefs for the filter structures.Wayne Davison2009-05-231-7/+7
|
* Change filter MATCHFLGs to FILTRULEs.Wayne Davison2009-05-231-26/+26
|
* Change sending/receiving/storing of the rdev value for special files.Wayne Davison2009-04-261-1/+1
| | | | | | | | Since the value is not needed, protocol 31 no longer sends it, while older protocols are optimized so the sender just sends a valid rdev value as efficiently as possible. The receiver no longer caches an rdev value for special files, and the generator will always pass a 0 rdev value to do_mknod() for special files. Fixes bug #6280.
* More backup improvements:Wayne Davison2009-04-111-0/+4
| | | | | | | | | | | | | | | - 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.
* Added --disable-iconv-open option for configure to turn off all useWayne Davison2009-02-141-1/+1
| | | | | of the iconv_open() function. Implies --disable-iconv (which turns off the --iconv option). Fixes bug #6107.
* Use a varint when sending the error_code.Wayne Davison2009-01-171-1/+1
|
* Fixed the delete statistics with --delete-delay and --delete-after.Wayne Davison2009-01-171-1/+3
|
* Send the --stats option for proper del-stats operation.Wayne Davison2009-01-141-1/+1
|
* Improved the backup code:Wayne Davison2009-01-031-0/+1
| | | | | | | | - Backups do not interfere with an atomic update (when possible). - Backing up a file will remove a directory that is in the way and visa versa. - Unify the backup-dir and non-backup-dir code in backup.c. - Improved the backup tests a little bit.
* Make delete_item() public, moving it into delete.c.Wayne Davison2009-01-031-0/+16
|
* Adding hashtable debugging output (--debug=hash).Wayne Davison2008-10-151-1/+2
|
* Enhanced the --stats output:Wayne Davison2008-09-261-3/+5
| | | | | | | - 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.
* Moved the flist_ndx_{push,pop}() routines from io.c into util.c.Wayne Davison2008-09-261-0/+9
|
* Several fixes for merge file handling:Matt McCutchen2008-09-011-0/+1
| | | | | | | | | | | | | | | - Free a mergelist's parent_dirscanned filters the last time it is popped or as soon as the filters are discarded due to the "n" modifier. Aside from not leaking memory, this is needed to clean up any mergelists defined during the parent_dirscan to avoid crashing by trying to restore nonexistent state for them in pop_local_filters. - Make push_local_filters save the current mergelist_cnt, and make pop_local_filters assert that it has the correct number of mergelists before restoring their state. - Assert that mergelists get deactivated in strict LIFO order to catch any glitches as soon as they happen. Free linked lists of filters in reverse order to make that the case. - Add a bunch of mergelist-related debug output (--debug=filter2).
* Improved the fix that ensures that the generator gets notified about anWayne Davison2008-08-311-3/+4
| | | | | I/O error for the incremental directory that generated the error. The PROTOCOL_VERSION was bumped to 31 to implement this.
* When using --iconv, if a server-side receiver can't convert a filename,Wayne Davison2008-08-021-0/+2
| | | | it now outputs the name back to the client without mangling the charset.