summaryrefslogtreecommitdiff
path: root/support/rrsync
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-01-07 16:38:56 -0800
committerWayne Davison <wayned@samba.org>2009-01-07 16:39:22 -0800
commit1fb6a4018d8b5dd76252be3aa4792d2a62d07a97 (patch)
tree01005f832f4595656ff5da3b52e965714b030632 /support/rrsync
parentfc4a695cddfc1b7705f1e1e3ea13108777b3a76a (diff)
downloadrsync-1fb6a4018d8b5dd76252be3aa4792d2a62d07a97.tar.gz
Avoid a server-side problem with -e is at the start of the short options.
(Bug #6020)
Diffstat (limited to 'support/rrsync')
-rw-r--r--support/rrsync3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/rrsync b/support/rrsync
index 65999750..0369bc65 100644
--- a/support/rrsync
+++ b/support/rrsync
@@ -143,7 +143,8 @@ while ($command =~ /((?:[^\s\\]+|\\.[^\s\\]*)+)/g) {
if ($_ eq '.') {
$in_options = 0;
} else {
- next if /^-$short_no_arg+(e\d*\.\w*)?$/o || /^-$short_with_num\d+$/o;
+ die "$0: invalid option: '-'\n" if $_ eq '-';
+ next if /^-$short_no_arg*(e\d*\.\w*)?$/o || /^-$short_with_num\d+$/o;
my($opt,$arg) = /^--([^=]+)(?:=(.*))?$/;
my $disabled;