summaryrefslogtreecommitdiff
path: root/batch.c
AgeCommit message (Collapse)AuthorFilesLines
2014-01-26Bump the year to 2014.Wayne Davison1-1/+1
2013-05-19Use S_IXUSR instead of the now-obsolete S_IEXEC.Wayne Davison1-1/+1
2013-01-19Update copyright year.Wayne Davison1-1/+1
2011-11-21Add compatibility with an unmodified zlib.Wayne Davison1-1/+1
2009-05-23Refactorings to the filter code, most notably:Matt McCutchen1-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.]
2009-05-23Use typedefs for the filter structures.Wayne Davison1-2/+2
2009-05-23Change filter MATCHFLGs to FILTRULEs.Wayne Davison1-2/+2
2009-01-03Update the copyright year.Wayne Davison1-1/+1
2008-11-09Fixed a bunch of "warn_unused_result" compiler warnings.Wayne Davison1-20/+37
2008-07-13Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison1-1/+1
fine-grained output control (in addition to the coarse -v).
2008-03-01Include 2008 in the copyright years.Wayne Davison1-1/+1
2008-01-26Moved the batch option checking until after the protocol-versionWayne Davison1-22/+12
in the batch file is known. Also simplified the do_compress checking, which had some erroneous def_compress_level code.
2008-01-19Improved option handling for protocol 30 batch files.Wayne Davison1-2/+48
2007-07-10Tweaking the license text a bit more.Wayne Davison1-2/+3
2007-07-07Switching to GPL 3.Wayne Davison1-3/+2
2007-02-04Further modifications to the copyright comment section.Wayne Davison1-4/+3
2006-12-18Got rid of the "tweaked" versions of the uid and gid vars.Wayne Davison1-17/+2
2006-12-05Changed flist_extra_ndx into flist_extra_cnt.Wayne Davison1-3/+3
2006-12-03- Typical tranfers now save 12-20 bytes per file because several varsWayne Davison1-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.
2006-04-25Updated the FSF's address to an even newer one.Wayne Davison1-3/+3
2006-04-25- Updated the address for the FSF in the opening comment.Wayne Davison1-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).
2006-01-24Got rid of some debug code.Wayne Davison1-36/+0
2006-01-13Got rid of calls to (the soon to vanish) safe_fname() function.Wayne Davison1-6/+6
2005-10-26Handle new def_compress_level setting.Wayne Davison1-1/+18
2005-04-09Also change --only-write-batch to --read-batch (in addition toWayne Davison1-4/+5
changing --write-batch).
2005-03-27- Fixed a bug in the saving of the --dirs option's state.Wayne Davison1-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.
2005-03-14Got rid of "fudged_recurse".Wayne Davison1-6/+1
2005-03-01Changes needed to use check_for_hostspec() in place of find_colon().Wayne Davison1-4/+1
2005-02-16No need to handle itemize_changes anymore.Wayne Davison1-3/+0
2005-02-16Ensure that -i is set consistent with the batch's data.Wayne Davison1-1/+3
2005-02-07Adding more calls to safe_fname().Wayne Davison1-14/+16
2005-02-04Call get_rule_prefix() with its new arg.Wayne Davison1-1/+1
2005-02-02- Fixed a problem with the setting of the --recurse option from theWayne Davison1-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.
2005-02-01Refer to the old basedir variable as dir.root.Wayne Davison1-4/+5
2005-01-25- Use the "--filter=._-" option instead of --exclude-from=- if theWayne Davison1-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.
2005-01-25Renamed several exclude-related functions/variables using newWayne Davison1-7/+7
filter terminology.
2004-08-02Got rid of unused externs.Wayne Davison1-2/+0
2004-07-24Made the new option-twiddling message only output when verbose.Wayne Davison1-3/+5
2004-07-24Added write_stream_flags() to write the state of certain flags intoWayne Davison1-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.
2004-07-20We now append the exclude list as a "here" document to the end ofWayne Davison1-4/+33
the BATCH.sh file.
2004-07-19Do a better job of writing out the BATCH.sh file (i.e. quote specialWayne Davison1-25/+57
characters and spaces in args, omit all the source args, omit the include/exclude args if we can).
2004-07-19Fixed the argv munging to work properly regardless of whether theWayne Davison1-5/+8
user specified a trailing '=VALUE' or put the value in a separate arg.
2004-07-15We no longer refer to a batch "prefix".Wayne Davison1-3/+3
2004-07-15My modified version of Chris Shoemaker's improved batch-file handling.Wayne Davison1-259/+4
2004-07-14Improved the write_batch_argvs_file() routine so that it doesn'tWayne Davison1-41/+24
need the character buffers and so that it properly removes the hostname from the destination arg.
2004-05-15Changed rprintf() calls that included strerror() to use rsyserr().Wayne Davison1-23/+16
2004-03-06Other files use S_IWUSR instead of S_IWRITE, so use S_IWUSR and S_IRUSR.Wayne Davison1-4/+4
2004-02-10Make idev, hlink and file_struct + strings use allocationJ.W. Schultz1-5/+3
pools.
2004-02-06Start flist with a more reasonable size, grow it linearlyJ.W. Schultz1-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()).
2004-02-06Correct sizeof usage and other whitespace.J.W. Schultz1-47/+44