Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc4a695
)
Avoid a server-side problem with -e is at the start of the short options.
author
Wayne Davison
<wayned@samba.org>
Thu, 8 Jan 2009 00:38:56 +0000
(16:38 -0800)
committer
Wayne Davison
<wayned@samba.org>
Thu, 8 Jan 2009 00:39:22 +0000
(16:39 -0800)
(Bug #6020)
support/rrsync
patch
|
blob
|
blame
|
history
diff --git
a/support/rrsync
b/support/rrsync
index
6599975
..
0369bc6
100644
(file)
--- 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;