]> gitweb.fluxo.info Git - puppet-rsync.git/commitdiff
updated rrsync to work with rsync newer versions
authormh <mh@immerda.ch>
Wed, 15 Apr 2009 23:15:53 +0000 (23:15 +0000)
committermh <mh@immerda.ch>
Wed, 15 Apr 2009 23:15:53 +0000 (23:15 +0000)
files/rrsync/rrsync

index e950b1926e8b5480770c38dbc0aa28cf3e026df7..b0842001955a9102ba154340983367e7b8e58f85 100755 (executable)
@@ -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;