summaryrefslogtreecommitdiff
path: root/support/rrsync
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2019-01-15 11:18:36 -0800
committerWayne Davison <wayned@samba.org>2019-01-15 11:18:36 -0800
commit2ad1c4e800d00244932b028c6c01e7d4090ce367 (patch)
tree48471c776e939d76ef0dff8c2b1580be11d768ab /support/rrsync
parent0da7ba57b5bee15deefa12a760ec310152e01919 (diff)
downloadrsync-2ad1c4e800d00244932b028c6c01e7d4090ce367.tar.gz
Improve write-only --sender check & handle 2 new options.
Diffstat (limited to 'support/rrsync')
-rw-r--r--support/rrsync5
1 files changed, 3 insertions, 2 deletions
diff --git a/support/rrsync b/support/rrsync
index ad4d434b..3bbca2e0 100644
--- a/support/rrsync
+++ b/support/rrsync
@@ -63,7 +63,7 @@ die "$0 reading from write-only server not allowed\n" if $only eq 'w' && $am_sen
our $short_disabled = 's';
our $short_no_arg = 'ACDEHIJKLORSWXbcdgklmnoprstuvxyz'; # DO NOT REMOVE ANY
-our $short_with_num = 'B'; # DO NOT REMOVE ANY
+our $short_with_num = '@B'; # DO NOT REMOVE ANY
# To disable a long-named option, change its value to a -1. The values mean:
# 0 = the option has no arg; 1 = the arg doesn't need any checking; 2 = only
@@ -73,6 +73,7 @@ our %long_opt = (
'backup-dir' => 2,
'block-size' => 1,
'bwlimit' => 1,
+ 'checksum-choice' => 1,
'checksum-seed' => 1,
'compare-dest' => 2,
'compress-level' => 1,
@@ -130,7 +131,7 @@ our %long_opt = (
'remove-sent-files' => $only eq 'r' ? -1 : 0,
'remove-source-files' => $only eq 'r' ? -1 : 0,
'safe-links' => 0,
- 'sender' => 0,
+ 'sender' => $only eq 'w' ? -1 : 0,
'server' => 0,
'size-only' => 0,
'skip-compress' => 1,