aboutsummaryrefslogtreecommitdiffstats
path: root/batch.c
Commit message (Collapse)AuthorAgeFilesLines
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Use S_IXUSR instead of the now-obsolete S_IEXEC.Wayne Davison2013-05-191-1/+1
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Add compatibility with an unmodified zlib.Wayne Davison2011-11-211-1/+1
|
* Refactorings to the filter code, most notably:Matt McCutchen2009-05-231-1/+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-2/+2
|
* Change filter MATCHFLGs to FILTRULEs.Wayne Davison2009-05-231-2/+2
|
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* Fixed a bunch of "warn_unused_result" compiler warnings.Wayne Davison2008-11-091-20/+37
|
* Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison2008-07-131-1/+1
| | | | fine-grained output control (in addition to the coarse -v).
* Include 2008 in the copyright years.Wayne Davison2008-03-011-1/+1
|
* Moved the batch option checking until after the protocol-versionWayne Davison2008-01-261-22/+12
| | | | | in the batch file is known. Also simplified the do_compress checking, which had some erroneous def_compress_level code.
* Improved option handling for protocol 30 batch files.Wayne Davison2008-01-191-2/+48
|
* Tweaking the license text a bit more.Wayne Davison2007-07-101-2/+3
|
* Switching to GPL 3.Wayne Davison2007-07-071-3/+2
|
* Further modifications to the copyright comment section.Wayne Davison2007-02-041-4/+3
|
* Got rid of the "tweaked" versions of the uid and gid vars.Wayne Davison2006-12-181-17/+2
|
* Changed flist_extra_ndx into flist_extra_cnt.Wayne Davison2006-12-051-3/+3
|
* - Typical tranfers now save 12-20 bytes per file because several varsWayne Davison2006-12-031-2/+17
| | | | | | | were moved out of file_struct into an optional member-var setup. - Renamed and reorganized the FLAG_* defines. - Use NDX_DONE instead of a literal -1 when sending/checking the end-of-phase index value.
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-6/+21
| | | | | | | - Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
* Got rid of some debug code.Wayne Davison2006-01-241-36/+0
|
* Got rid of calls to (the soon to vanish) safe_fname() function.Wayne Davison2006-01-131-6/+6
|
* Handle new def_compress_level setting.Wayne Davison2005-10-261-1/+18
|
* Also change --only-write-batch to --read-batch (in addition toWayne Davison2005-04-091-4/+5
| | | | changing --write-batch).
* - Fixed a bug in the saving of the --dirs option's state.Wayne Davison2005-03-271-10/+20
| | | | | - Added the saving of the --compress option's state. - Deal with the xfer_dirs var in a better way for pre-29 batches.
* Got rid of "fudged_recurse".Wayne Davison2005-03-141-6/+1
|
* Changes needed to use check_for_hostspec() in place of find_colon().Wayne Davison2005-03-011-4/+1
|
* No need to handle itemize_changes anymore.Wayne Davison2005-02-161-3/+0
|
* Ensure that -i is set consistent with the batch's data.Wayne Davison2005-02-161-1/+3
|
* Adding more calls to safe_fname().Wayne Davison2005-02-071-14/+16
|
* Call get_rule_prefix() with its new arg.Wayne Davison2005-02-041-1/+1
|
* - Fixed a problem with the setting of the --recurse option from theWayne Davison2005-02-021-1/+13
| | | | | | batch file. - Save the state of the --dirs option in the batch flags in a way that is compatible with older protocol versions.
* Refer to the old basedir variable as dir.root.Wayne Davison2005-02-011-4/+5
|
* - Use the "--filter=._-" option instead of --exclude-from=- if theWayne Davison2005-01-251-11/+18
| | | | | | | protocol being saved is >= 29. - Call the new get_rule_prefix() function to figure out the right rule prefix. - Strip out the --filter and -f options from the cached command-line.
* Renamed several exclude-related functions/variables using newWayne Davison2005-01-251-7/+7
| | | | filter terminology.
* Got rid of unused externs.Wayne Davison2004-08-021-2/+0
|
* Made the new option-twiddling message only output when verbose.Wayne Davison2004-07-241-3/+5
|
* Added write_stream_flags() to write the state of certain flags intoWayne Davison2004-07-241-0/+57
| | | | | | the batchfile and read_stream_flags() to read and twiddle the same flags. This ensures that the batchfile reading doesn't get confused about what data to expect from the socket.
* We now append the exclude list as a "here" document to the end ofWayne Davison2004-07-201-4/+33
| | | | the BATCH.sh file.
* Do a better job of writing out the BATCH.sh file (i.e. quote specialWayne Davison2004-07-191-25/+57
| | | | | characters and spaces in args, omit all the source args, omit the include/exclude args if we can).
* Fixed the argv munging to work properly regardless of whether theWayne Davison2004-07-191-5/+8
| | | | | user specified a trailing '=VALUE' or put the value in a separate arg.
* We no longer refer to a batch "prefix".Wayne Davison2004-07-151-3/+3
|
* My modified version of Chris Shoemaker's improved batch-file handling.Wayne Davison2004-07-151-259/+4
|
* Improved the write_batch_argvs_file() routine so that it doesn'tWayne Davison2004-07-141-41/+24
| | | | | need the character buffers and so that it properly removes the hostname from the destination arg.
* Changed rprintf() calls that included strerror() to use rsyserr().Wayne Davison2004-05-151-23/+16
|
* Other files use S_IWUSR instead of S_IWRITE, so use S_IWUSR and S_IRUSR.Wayne Davison2004-03-061-4/+4
|
* Make idev, hlink and file_struct + strings use allocationJ.W. Schultz2004-02-101-5/+3
| | | | pools.
* Start flist with a more reasonable size, grow it linearlyJ.W. Schultz2004-02-061-5/+2
| | | | | | once it reaches a largish size (16 million files) and make it actually match the comments so it may be used to initialize flists of known size (create_flist_from_batch()).
* Correct sizeof usage and other whitespace.J.W. Schultz2004-02-061-47/+44
|