Wayne Davison
453914e35b
Update the copyright year.
2015-08-08 12:47:03 -07:00
Wayne Davison
dfa5b49110
Bump the year to 2014.
2014-01-26 09:29:15 -08:00
Wayne Davison
94073d20e4
Use S_IXUSR instead of the now-obsolete S_IEXEC.
2013-05-19 22:01:29 +00:00
Wayne Davison
7e1a9c4d79
Update copyright year.
2013-01-19 11:05:53 -08:00
Wayne Davison
7da17144fd
Add compatibility with an unmodified zlib.
2011-11-21 09:22:14 -08:00
Matt McCutchen
c8fa85b23b
Refactorings to the filter code, most notably:
...
- 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-23 11:20:40 -07:00
Wayne Davison
7b6c5c7794
Use typedefs for the filter structures.
2009-05-23 09:07:43 -07:00
Wayne Davison
b32d425451
Change filter MATCHFLGs to FILTRULEs.
2009-05-23 09:07:35 -07:00
Wayne Davison
b3bf9b9df9
Update the copyright year.
2009-01-03 10:57:14 -08:00
Wayne Davison
9411292489
Fixed a bunch of "warn_unused_result" compiler warnings.
2008-11-09 18:56:21 -08:00
Wayne Davison
951e826b75
Added the --info=FLAGS an --debug=FLAGS options, which allows
...
fine-grained output control (in addition to the coarse -v).
2008-07-13 20:51:08 -07:00
Wayne Davison
d3d07a5e86
Include 2008 in the copyright years.
2008-03-01 12:01:41 -08:00
Wayne Davison
a7c1fa0049
Moved the batch option checking until after the protocol-version
...
in the batch file is known. Also simplified the do_compress
checking, which had some erroneous def_compress_level code.
2008-01-26 11:58:17 -08:00
Wayne Davison
da01d2e843
Improved option handling for protocol 30 batch files.
2008-01-19 11:21:07 -08:00
Wayne Davison
8e41b68e8f
Tweaking the license text a bit more.
2007-07-10 13:55:49 +00:00
Wayne Davison
4fd842f98d
Switching to GPL 3.
2007-07-07 05:33:14 +00:00
Wayne Davison
ba2133d6ad
Further modifications to the copyright comment section.
2007-02-04 14:54:58 +00:00
Wayne Davison
658a63694b
Got rid of the "tweaked" versions of the uid and gid vars.
2006-12-18 06:56:23 +00:00
Wayne Davison
f0fbf1d670
Changed flist_extra_ndx into flist_extra_cnt.
2006-12-05 15:59:49 +00:00
Wayne Davison
82ad07c418
- Typical tranfers now save 12-20 bytes per file because several vars
...
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-12-03 06:44:16 +00:00
Wayne Davison
e7c67065c0
Updated the FSF's address to an even newer one.
2006-04-25 23:51:12 +00:00
Wayne Davison
0f78b81511
- Updated the address for the FSF in the opening comment.
...
- 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-04-25 20:23:34 +00:00
Wayne Davison
c738605098
Got rid of some debug code.
2006-01-24 21:40:43 +00:00
Wayne Davison
45c49b52a4
Got rid of calls to (the soon to vanish) safe_fname() function.
2006-01-13 21:17:09 +00:00
Wayne Davison
3cc185a088
Handle new def_compress_level setting.
2005-10-26 16:48:07 +00:00
Wayne Davison
d630f53e0d
Also change --only-write-batch to --read-batch (in addition to
...
changing --write-batch).
2005-04-09 18:59:44 +00:00
Wayne Davison
e7f7064cc5
- Fixed a bug in the saving of the --dirs option's state.
...
- 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-27 05:02:49 +00:00
Wayne Davison
0a39837a62
Got rid of "fudged_recurse".
2005-03-14 17:30:10 +00:00
Wayne Davison
4d3abf1360
Changes needed to use check_for_hostspec() in place of find_colon().
2005-03-01 01:15:59 +00:00
Wayne Davison
9b40e44ef4
No need to handle itemize_changes anymore.
2005-02-16 17:01:59 +00:00
Wayne Davison
41961db0bd
Ensure that -i is set consistent with the batch's data.
2005-02-16 08:10:38 +00:00
Wayne Davison
4875d6b64d
Adding more calls to safe_fname().
2005-02-07 20:36:43 +00:00
Wayne Davison
dd667c2301
Call get_rule_prefix() with its new arg.
2005-02-04 21:12:56 +00:00
Wayne Davison
6bf822649b
- Fixed a problem with the setting of the --recurse option from the
...
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-02 09:40:45 +00:00
Wayne Davison
2b1366635d
Refer to the old basedir variable as dir.root.
2005-02-01 09:21:28 +00:00
Wayne Davison
8261047b1e
- Use the "--filter=._-" option instead of --exclude-from=- if the
...
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-25 12:13:53 +00:00
Wayne Davison
7842418b7b
Renamed several exclude-related functions/variables using new
...
filter terminology.
2005-01-25 10:39:14 +00:00
Wayne Davison
acd0299243
Got rid of unused externs.
2004-08-02 04:50:33 +00:00
Wayne Davison
6a48e792c1
Made the new option-twiddling message only output when verbose.
2004-07-24 16:51:16 +00:00
Wayne Davison
d3e182af09
Added write_stream_flags() to write the state of certain flags into
...
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-24 16:38:49 +00:00
Wayne Davison
73f0ce69e7
We now append the exclude list as a "here" document to the end of
...
the BATCH.sh file.
2004-07-20 17:07:55 +00:00
Wayne Davison
e7a69008e6
Do a better job of writing out the BATCH.sh file (i.e. quote special
...
characters and spaces in args, omit all the source args, omit the
include/exclude args if we can).
2004-07-19 08:27:17 +00:00
Wayne Davison
b462781fd0
Fixed the argv munging to work properly regardless of whether the
...
user specified a trailing '=VALUE' or put the value in a separate
arg.
2004-07-19 00:53:49 +00:00
Wayne Davison
9b3318b0df
We no longer refer to a batch "prefix".
2004-07-15 16:27:02 +00:00
Wayne Davison
b9f592fbf5
My modified version of Chris Shoemaker's improved batch-file handling.
2004-07-15 02:20:08 +00:00
Wayne Davison
01966df4f7
Improved the write_batch_argvs_file() routine so that it doesn't
...
need the character buffers and so that it properly removes the
hostname from the destination arg.
2004-07-14 07:20:18 +00:00
Wayne Davison
d62bcc17f3
Changed rprintf() calls that included strerror() to use rsyserr().
2004-05-15 19:31:10 +00:00
Wayne Davison
7e5cb90983
Other files use S_IWUSR instead of S_IWRITE, so use S_IWUSR and S_IRUSR.
2004-03-06 07:45:52 +00:00
J.W. Schultz
9935066b70
Make idev, hlink and file_struct + strings use allocation
...
pools.
2004-02-10 03:23:37 +00:00
J.W. Schultz
a85906c756
Start flist with a more reasonable size, grow it linearly
...
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-06 10:00:33 +00:00