From 1fb6a4018d8b5dd76252be3aa4792d2a62d07a97 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 7 Jan 2009 16:38:56 -0800 Subject: [PATCH] Avoid a server-side problem with -e is at the start of the short options. (Bug #6020) --- support/rrsync | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.34.1