From: mh Date: Wed, 15 Apr 2009 23:15:53 +0000 (+0000) Subject: updated rrsync to work with rsync newer versions X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6cca98c828c7e7d91045a2a6bac7d831c7013723;p=puppet-rsync.git updated rrsync to work with rsync newer versions --- diff --git a/files/rrsync/rrsync b/files/rrsync/rrsync index e950b19..b084200 100755 --- a/files/rrsync/rrsync +++ b/files/rrsync/rrsync @@ -50,7 +50,7 @@ die "$0 -ro: sending to read-only server not allowed\n" if $ro && !$am_sender; # To disable a short-named option, add its letter to this string: our $short_disabled = ''; -our $short_no_arg = 'CDEHIKLORSWbcdgklmnoprtuvxz'; # DO NOT REMOVE ANY +our $short_no_arg = 'ACDEHIKLORSWXbcdgiklmnoprstuvxz'; # 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: @@ -135,7 +135,7 @@ while ($command =~ /((?:[^\s\\]+|\\.[^\s\\]*)+)/g) { if ($_ eq '.') { $in_options = 0; } else { - next if /^-$short_no_arg+$/o || /^-$short_with_num\d+$/o; + next if /^-($short_no_arg|e\d*\.\d*)+$/o || /^-$short_with_num\d+$/o; my($opt,$arg) = /^--([^=]+)(?:=(.*))?$/; my $disabled;