diff options
author | Wayne Davison <wayne@opencoder.net> | 2022-01-09 17:35:39 -0800 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2022-01-09 17:47:24 -0800 |
commit | 6b8db0f6440b28d26ef807d17517715c47e62bd9 (patch) | |
tree | 3031fb94837928f6afc8436aaa77c2c70a6fead4 /support/rrsync | |
parent | 3b2804c8158a32e3d3b232430e48955a7dfc9178 (diff) | |
download | rsync-6b8db0f6440b28d26ef807d17517715c47e62bd9.tar.gz |
Add an arg-protection idiom using backslash-escapes
The new default is to protect args and options from unintended shell
interpretation using backslash escapes. See the new `--old-args` option
for a way to get the old-style splitting. This idiom was chosen over
making `--protect-args` enabled by default because it is more backward
compatible (e.g. it works with rrsync). Fixes #272.
Diffstat (limited to 'support/rrsync')
-rwxr-xr-x | support/rrsync | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support/rrsync b/support/rrsync index 8ea76e05..629aa182 100755 --- a/support/rrsync +++ b/support/rrsync @@ -21,7 +21,7 @@ LOGFILE = 'rrsync.log' # NOTE: the file must exist for a line to be appended! # NOTE when disabling: check for both a short & long version of the option! -### START of options data produced by the cull_options script. ### +### START of options data produced by the cull-options script. ### # To disable a short-named option, add its letter to this string: short_disabled = 's' @@ -63,7 +63,7 @@ long_opts = { 'files-from': 3, 'force': 0, 'from0': 0, - 'fsync': 2, + 'fsync': 0, 'fuzzy': 0, 'group': 0, 'groupmap': 1, @@ -127,7 +127,7 @@ long_opts = { 'write-devices': -1, } -### END of options data produced by the cull_options script. ### +### END of options data produced by the cull-options script. ### import os, sys, re, argparse, glob, socket, time, subprocess from argparse import RawTextHelpFormatter |