From: Wayne Davison Date: Thu, 8 Jan 2009 00:38:56 +0000 (-0800) Subject: Avoid a server-side problem with -e is at the start of the short options. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/1fb6a4018d8b5dd76252be3aa4792d2a62d07a97 Avoid a server-side problem with -e is at the start of the short options. (Bug #6020) --- 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;